Print Page | Close Window

"Catastrophic Failure" GetTextHeight

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


Topic: "Catastrophic Failure" GetTextHeight
Posted By: shelby
Subject: "Catastrophic Failure" GetTextHeight
Date Posted: 13 Jan 06 at 5:22PM
Using following colde
 
 QP.LoadFromFile(server.mappath("2006-January12-1a.pdf"))
 Doc1 = QP.SelectedDocument
 QP.SelectDocument(Doc1)
 'QP.MergeDocument(Doc2)
 
 qp.setorigin(1)
 FontID = QP.ADDSTANDARDFONT(4)
 call qp.SelectFont(FontID)
 call qp.settextsize(18)
 QP.DrawText 13 , 15, "Hello World!"
 qp.combinelayers
 qp.compresscontent
 qp.settemppath(server.mappath("/temp"))
 response.write qp.gettemppath() & "<br>"
 'call qp.renderdocumenttofile(72,1,1,1,server.mappath("test.jpg"))
 rslt1 = qp.gettextheight()
I get catastrophic failure at last line of listing
 


-------------
To Err is to try. To fail is to err and not try again



Replies:
Posted By: shelby
Date Posted: 13 Jan 06 at 5:24PM
MY BAD!!!!   Had to move CompressContent to below text activity.

-------------
To Err is to try. To fail is to err and not try again



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