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)
dra Posted: Tuesday, December 5, 2017 8:24:10 PM(UTC)
 
Thanks.
I have done some testing.
Now, I can get the PdfImageObject and add new PdfImageObject.

I have two more questions.

1.
I found that some images in our pdf files are not in the "PageObjects" collection.
I guess it is because the images are not stored at the page level but stored deeper in the hierarchy in form XObjects.
Can PDFium also extract and replace this type of images?

2.
We need to replace the high resolution image in pdf by low resolution image.
I found that "PdfPageObjectsCollection" only have "InsertObject" function.
Can I replace the existing PdfImageObject rather than add a new one?
Paul Rayman Posted: Tuesday, December 5, 2017 1:09:20 AM(UTC)
 
dra Posted: Monday, December 4, 2017 10:47:12 PM(UTC)
 
Hi,

We have some PDFs which have high resolution image (eg 300 dpi).
I need to extract the high resolution images and downsample the images to low resolution images (eg 72 dpi).
Then replace the high resolution image in PDF by the low resolution image.
Can PDFium.NET accomplish this?

Thanks.