You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Евгений Король <ff...@gmail.com> on 2021/08/26 02:20:36 UTC

Get DPI

Hello. How i can get DPI value of raster image PDImageXObject when i
processing PDF file?

Re: Get DPI

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 27.08.2021 um 06:22 schrieb Евгений Король:
> Hello. I think that DPI is value of inserted on PDF image. I would like to
> get DPI of original image. Before transformations of matrix.


You can't, unless the image is a JPEG (and maybe JPG2000), which are 1:1 
in the PDF. And then only if the image has this information in its metadata.

Tilman



>
> чт, 26 авг. 2021 г., 22:46 Tilman Hausherr <TH...@t-online.de>:
>
>> Am 26.08.2021 um 04:20 schrieb Евгений Король:
>>> Hello. How i can get DPI value of raster image PDImageXObject when i
>>> processing PDF file?
>>>
>>
>> https://stackoverflow.com/questions/5472711/dpi-of-image-extracted-from-pdf-with-pdfbox
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Re: Get DPI

Posted by Евгений Король <ff...@gmail.com>.
Hello. I think that DPI is value of inserted on PDF image. I would like to
get DPI of original image. Before transformations of matrix.

чт, 26 авг. 2021 г., 22:46 Tilman Hausherr <TH...@t-online.de>:

> Am 26.08.2021 um 04:20 schrieb Евгений Король:
> > Hello. How i can get DPI value of raster image PDImageXObject when i
> > processing PDF file?
> >
>
>
> https://stackoverflow.com/questions/5472711/dpi-of-image-extracted-from-pdf-with-pdfbox
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Get DPI

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 26.08.2021 um 04:20 schrieb Евгений Король:
> Hello. How i can get DPI value of raster image PDImageXObject when i
> processing PDF file?
>

https://stackoverflow.com/questions/5472711/dpi-of-image-extracted-from-pdf-with-pdfbox


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org