Print Page | Close Window

ASP RenderDocumentToFile: Blank images !

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


Topic: ASP RenderDocumentToFile: Blank images !
Posted By: beowax
Subject: ASP RenderDocumentToFile: Blank images !
Date Posted: 17 Oct 06 at 6:14AM
Hi,

I started a sript witch have to make an image with every page of a uploaded PDF, but the generated images are always blank !!! Can you help me ?

Here is my code :

      'Path to the file
      FichierCatalogue = "c:/upload/myFile.pdf"

      'Creating QuickPDF Object
      Dim QP
      Set QP = Server.CreateObject("iSED.QuickPDF")
      Call QP.UnlockKey(PDFLicence)

      'Opening the PDF
      QP.LoadFromFile(FichierCatalogue)

      'Rendering the images
      QP.RenderDocumentToFile(72, 1, QP.PageCount, 1, Server.MapPath("/upload/") & "/page-.jpg")=0

I also tried with GetPagePreview, RenderPageToString and i still have each page as a blank jpeg... Help !!!

Regards,
Antoine



Replies:
Posted By: beowax
Date Posted: 17 Oct 06 at 10:13AM
Problem solved, added a "QP.SelectPage 1" ;)



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