pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Lehmkühler" <andr...@lehmi.de>
Subject Re: page coverage
Date Mon, 06 Jul 2009 07:10:55 GMT
>         Is there any easy and quick way in PDFBox to check the percentage of
> a page covered by its contents?
I'm afraid it isn't easy because there are many different parameters which have an influence
on that fact:

- is it a text or graphical content
- if it is text, what fontsize is used
- what elements are part of the background which aren't part of the calculation

Perhaps it would work for you if you just count the pixel which are set if you have a look
at the image produce by convertToImage?

BR
Andreas Lehmkühler

Mime
View raw message