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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > Sample Code
  New Posts New Posts RSS Feed - PHP sample code
  FAQ FAQ  Forum Search   Register Register  Login Login

PHP sample code

 Post Reply Post Reply
Author
Message
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 393
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Topic: PHP sample code
    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;
?>
Back to Top
panner View Drop Down
Beginner
Beginner
Avatar

Joined: 13 Dec 14
Location: Canada
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote panner Quote  Post ReplyReply Direct Link To This Post Posted: 14 Dec 14 at 1:12AM
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store