logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
DarkyUK Posted: Wednesday, April 21, 2021 4:16:32 AM(UTC)
 
Originally Posted by: Paul Rayman Go to Quoted Post
Originally Posted by: DarkyUK Go to Quoted Post
Is there a way to check the image resolution without extracting the image?


What is "Image Resolution"? You can get the size of the image in pixels.
Just list the page objects and read the corresponding property. Please follow the class diagram here.


Thanks Paul, I think we can work it out from that. Image resolution is typically dots or pixels per inch, so ppi or dpi.

Thanks for your help.

Cheers, Andy

Paul Rayman Posted: Wednesday, April 21, 2021 4:13:30 AM(UTC)
 
Originally Posted by: DarkyUK Go to Quoted Post
Is there a way to check the image resolution without extracting the image?


What is "Image Resolution"? You can get the size of the image in pixels.
Just list the page objects and read the corresponding property. Please follow the class diagram here.
https://pdfium.patagames...rkingSDK_PageObjects.htm
DarkyUK Posted: Wednesday, April 21, 2021 3:26:43 AM(UTC)
 
Originally Posted by: Paul Rayman Go to Quoted Post
Hi,

You can try to enumerate all the objects on the page and check the IsEmbedded flag of the Font property of the text object.


Thanks Paul,

Is there a way to check the image resolution without extracting the image?

Cheers, Andy
Paul Rayman Posted: Tuesday, April 20, 2021 4:09:22 PM(UTC)
 
Hi,

You can try to enumerate all the objects on the page (here's an example: https://pdfium.patagames.com/help/html/WorkingSDK_PageObjects.htm ) and check the IsEmbedded flag of the Font property of the text object.
DarkyUK Posted: Tuesday, April 20, 2021 5:59:59 AM(UTC)
 
Hi Guys,

Hope you are all well and keeping safe?

I'm after a bit of advise, I am sure this will be possible with PDFium but I cannot figure out how.....

We have a requirement to do some basic PreFlight checks on PDF files prior to printing, really simple things like making sure all required fonts are embedded and also that any images used in the PDF are over a certain resolution, for example 300dpi.

In the future we might want to enhance this to also check objects are not outside the printable border of the page, but thats another topic for another day.

Is there a way to list the font usage and fonts embedded in the pdf to do a comparison? Also can the images resolutions be access or would they need to be extracted first?

Thanks

Andy