Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
PHP sample code |
Post Reply |
Author | |
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Posted: 06 May 09 at 8:20PM |
Some basic PHP code that might be useful for anyone who wants to use Quick PDF Library with PHP. Full instructions on how to get setup with PHP and Quick PDF can be found here.
<?php $fileName = “DrawText.pdf”; $qp = new COM(”QuickPDFAX0713.PDFLibrary”); $validKey = $qp->UnlockKey(”…”); if ($validKey == 1) { echo “License validation successful!”; echo “<br />”; echo “Valid license key: “; echo $qp->LicenseInfo; echo “<br />”; } else { echo “License validation failed!”; echo “<br /><br />”; } $qp->DrawText(100, 500, “Hello World!”); $result = $qp->SaveToFile($fileName); if ($result == 1) { echo “File was successfully saved to disk.”; echo “<br /><br />”; } else { echo “File could not be saved to disk.”; echo “<br /><br />”; } $qp = null; ?> |
|
panner
Beginner Joined: 13 Dec 14 Location: Canada Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi Rowan
I know it's been awhile since you posted this code example.. Has the Quick Basic Library changed in how this could be done. I've tried your example in XAMPP and I can't get the code to run. It stops and the error code says it can't locate the Quick PDF Library DLL "Fatal error: Class 'COM' not found in C:\xampp\htdocs\QBpdf\index.php on line 7" I've registered the DLL's and entered my "key" and I've tried this with two dlls -- QuickPDFAX0815.dll and DebenuPDFLibraryAX0911.dll Any help or guidance would help.... Ron |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store