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

Notification

Icon
Error

Options
Go to last post Go to first unread
tal_mcmahon@hotmail.com  
#1 Posted : Friday, March 4, 2016 9:36:57 AM(UTC)
tal_mcmahon@hotmail.com

Rank: Newbie

Groups: Registered
Joined: 3/4/2016(UTC)
Posts: 1
United States
Location: Wisconsin

Hello all,
Somewhat of a newbie in the PDF world so please explain in small words. :)

I am using Pdfium to convert pdf into images and it has been working great. I am using this bit of code:

page.Render(bmp, 0, 0, width, height, PageRotate.Normal, renderflags);

I have just discovered a pdf that has mostly text on it (an invoice) with the exception of one particular field. This field appears to be an embedded image. Long story short, when I convert the page to an image, the field is lost. If i were to compare it to something it is like the filed is in a different layer above the page. Like if you have layers in PhotoShop.

I have looked at the actual PDF object and do not see anything obvious on the page like "Layers". I tried a search on here but am afraid I do not have enough of the correct jargon to even ask properly.
Is there:
1) a way to "Flatten" a page?
2) a way to detect when this is the case to handle it in a different way?

Thanks in advance

Tal
Paul Rayman  
#2 Posted : Saturday, March 5, 2016 5:26:29 AM(UTC)
Paul Rayman

Rank: Administration

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

Thanks: 8 times
Was thanked: 130 time(s) in 127 post(s)
Hi!

try this:

page.Render(bmp, 0, 0, width, height, PageRotate.Normal, renderflags);
page.RenderForms(bmp, 0, 0, width, height, PageRotate.Normal, renderflags);

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.