Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Can I use Quick PDF Library with PHP?

Question

Can I use Quick PDF Library with PHP?

Answer

Yes, Quick PDF Library can be used with PHP -- as long as it's on a Windows machine and you use the ActiveX version of the library. Here is a quick example:

<?php 
$fileName = "DrawText.pdf"; 
$qp = new COM("QuickPDFAX0717.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; 
?>

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum