Print Page | Close Window

Can't load image into 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=937
Printed Date: 04 Apr 26 at 4:48AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Can't load image into PDF
Posted By: garrochaman
Subject: Can't load image into PDF
Date Posted: 26 Aug 08 at 2:47PM

I'm trying to load an image into my PDF for an ASP page but ever returns 0 value.

the code is:
Dim PDF
 Set PDF = Server.CreateObject("iSED.QuickPDF")
  
 Call PDF.UnlockKey("xxxxxxxxx")
 
 Call PDF.NewDocument()
 Call PDF.NewPages(200)
 Call PDF.SelectPage(1)
 Call PDF.SetOrigin(1) 
 Call PDF.SetTextSize(11)
 TTFHelv = PDF.AddStandardFont(4)
 TTFHelvB = PDF.AddStandardFont(5)
 TTFSnapITC = PDF.AddType1Font(server.MapPath("pdfs/SnapITC_.pfm"))
 idImage = PDF.AddJPEGFromFile("imagen.jpg")
 Call PDF.SelectImage(idImage)
 
i try to see the value of "idImage" and inser this line before the last one
 
 response.write("Image id: "&idImage)
 
and always returns 0
 
can you help me please.



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