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

Notification

Icon
Error

New Topic Post Reply
Options
Go to last post Go to first unread
dra  
#1 Posted : Monday, December 4, 2017 10:47:12 PM(UTC)
Quote
dra

Rank: Newbie

Groups: Registered
Joined: 12/4/2017(UTC)
Posts: 3

Thanks: 1 times
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.
Paul Rayman  
#2 Posted : Tuesday, December 5, 2017 1:09:20 AM(UTC)
Quote
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
thanks 1 user thanked Paul Rayman for this useful post.
dra on 12/5/2017(UTC)
dra  
#3 Posted : Tuesday, December 5, 2017 8:24:10 PM(UTC)
Quote
dra

Rank: Newbie

Groups: Registered
Joined: 12/4/2017(UTC)
Posts: 3

Thanks: 1 times
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?
Quick Reply Show Quick Reply
Users browsing this topic
Guest (2)
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.