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: image file size
Date Mon, 06 Jul 2009 07:19:27 GMT
> Is there a way to get the potential file size of an image extracted from a
> PDF without writing it out?  
No, the file size depends on the following parameters (and perhaps others I forgot in my list):

- file format
- compression
- compression level
- resolution
- page size

Especially the compression part varies the file size. The only way to predict the potential
size is not to use any compression, but I guess you don't want that, do you?

Andreas Lehmkühler

View raw message