Print Page | Close Window

Tiff 2 PDF

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=731
Printed Date: 19 May 24 at 12:19PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Tiff 2 PDF
Posted By: vorber
Subject: Tiff 2 PDF
Date Posted: 17 May 07 at 4:59AM

QP.UnlockKey ("")
QP.Unlocked

QP.NewDocument
For n = 1 To QP.GetImagePageCount(tiff_file)
dd = QP.AddImageFromFile(tiff_file, n)
Call QP.SelectImage(dd)
Call QP.SelectPage(n)
Call QP.DrawScaledImage(20, 750, 0.3)
Next
Call QP.SaveToFile(pdf_file)
Set QP = Nothing
 
Is there anythinf wrong? Why the output only has the first page of tiff file?
thanks.



Replies:
Posted By: marian_pascalau
Date Posted: 17 May 07 at 8:14PM
You have to watch out on your for statement. The AddImageFromFile function is just adding a new image to current page and not a page with a new image. Before you call AddImage you have to call NewPage on PDF document.
 
Before all you have to watch out that QuickPDF has by default a default page (emty page.


Posted By: vorber
Date Posted: 19 May 07 at 8:12AM
Thanks marian, it works now.
New problem ,there are many blank pages in the result.  i tyied many times with the same problem , is this a bug?


Posted By: Ingo
Date Posted: 19 May 07 at 1:31PM
Hi!

Please have a look in the document...
Are there pages only with images?
Are there complete pages with scanned (it's an image, too) papers?
If not this seems to be the known rendering problems...

Best regards,
Ingo



Posted By: marian_pascalau
Date Posted: 19 May 07 at 6:02PM
Hey Vorber, you should send your file to support(at)quickpdf.org


Posted By: rogerad
Date Posted: 17 Jun 07 at 11:52PM
i had same problem
 my gif  images convert as blank pages
 i have to use another component to convert gif images to pdf files


-------------
roger adams



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