Print Page | Close Window

quick PDF Lite

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=1610
Printed Date: 06 May 25 at 7:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: quick PDF Lite
Posted By: dmtulsa
Subject: quick PDF Lite
Date Posted: 20 Oct 10 at 3:34PM
I'm just starting with this so please go easy on me. I'm using the lite version 7.19 and I did register it. The code is in powerbasic ver 9.x. My question is can I open a PDF file and display it with this version? I see nothing in the reference guide about rendering.

LoadFromFile returns a 0 so maybe there are some steps I'm missing.

#INCLUDE Once "..\modules\QuickPDFLite0719.inc"
Global QPL As QuickPDFLite0719IPDFLibrary  'line 41 of include file

''''Form load 
Function FORM1_WM_CREATE ( _
                         hWndForm As Dword, _      ' handle of Form
                         ByVal UserData As Long _  ' optional user defined Long value
                         ) As Long
 Local Result As Long

' Get a reference and set the properties
QPL = newcom $PROGID_QuickPDFLite0719PDFLibrary 'Line 16 of include file

End Function



''''button click
Function FORM1_COMMAND1_BN_CLICKED ( _
                                   ControlIndex     As Long,  _  ' index in Control Array
                                   hWndForm         As Dword, _  ' handle of Form
                                   hWndControl      As Dword, _  ' handle of Control
                                   idButtonControl  As Long   _  ' identifier of button
                                   ) As Long

Local DocID As Long
Local Result As Long
Local imgFile As String
Local ImageID As Long
Local MyPDF As String
Local FontID As Long
Local FontMain As Long
MyPDF = "c:\Projects\QuickPDFLite\release\mypdf.pdf"
If IsFalse(IsObject(QPL)) Then
   MsgBox "Unable to create an object refrence."
   Exit Function
End If
         
result = QPL.loadFromFile(mypdf)
'result = QPL.DAOpenFile("c:\Projects\QuickPDFLite\release\AD8302.pdf")
MsgBox Str$(result)
End Function





Maybe this can't even be done in the lite version but I doubt it. What I need to do is open a pdf and display it

Thank you
Doug





Replies:
Posted By: Rowan
Date Posted: 21 Oct 10 at 10:56AM
Hi Doug,

Quick PDF Library Lite does not include any of the rendering functions required to display PDF files. This functionality is only available in the commercial version of the library.

In the version 7.21 reference guide a list of the functions supported in the Lite edition can be found on page 641 in the "Appendix C: Functions available in the Lite Edition" section.

Cheers,
- Rowan.



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