Rank: Newbie
Groups: Registered
Joined: 3/4/2016(UTC) Posts: 1  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
|
|
|
|
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);
|
|
|
|
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.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close