Print Page | Close Window

AddImageFromFile doesn't work in some PDFs files

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3817
Printed Date: 25 Apr 24 at 9:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: AddImageFromFile doesn't work in some PDFs files
Posted By: DetoloX
Subject: AddImageFromFile doesn't work in some PDFs files
Date Posted: 24 May 20 at 5:17PM
Hi, I am adding an image to a PDF file. I select the PDF file dinamically but  I have specially 2 PDFs where the image is not showing. 

The code is the same the image is the same and I am using differents PDFs but all of them have the same size. And curiosly if I use a PDF image extractor the image is there.

It could be posible that there is a PDF version problem?
Or.. is posible that the image in this 2 cases is created above the other staff? In  a lower layer?

I have no idea why is this happening.



Replies:
Posted By: Ingo
Date Posted: 24 May 20 at 9:44PM
Hi Detolox,

the pdf-files you're mentioning are rotated (what you see in the reader is not the original orientation).
If you do only the AddImage the image will be on a position out of view.
Try a CombineContentStream and a NormalizePage before the AddImage and it will work.
I'm pretty sure ;-)

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk