English | 日本
C++ PDF
Shopping Cart Contact Us Java PDF
easy PDF SDK –help your PHP create PDF in best quality
Php Create PDF

Use PHP to Create PDF Applications quickly and simply

Would you like to let your PHP application manage and create PDF documents with excellent quality? Want to generate PDF documents in PHP with speed and accuracy? easyPDF SDK is the best solution for your enterprise needs. Review it now! No multi-volume manuals or advanced programming skills are needed. Our complimentary help desk is ready to assist you in integration. A few lines of PHP code are all it takes to convert Word, Excel, HTML or any other document to PDF:

...
 // get the name of the input PDF
  $inputFile = "C:\\PHP\\Test1.docx";
  
  // get the name of the output MS-WORD file
  $outputFile = "C:\\PHP\\Test1.pdf";
  
  try
    {
     $oLoader = new COM("easyPDF.Loader.8");
      $oPrinter = $oLoader->LoadObject("easyPDF.Printer.8");
      $oPrintJob = $oPrinter->PrintJob;
      $oPrintJob->PrintOut ($inputFile, $outputFile);
      print "Success";
    }
 
  catch(com_exception $e)
    {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
    }
...

Boost your PHP to PDF application performance with BCL easyPDF SDK and its PHP API. Let your development process be simple and quick.

Download the PHP PDF Converter and use the code samples in PHP to create PDF today!

Comprehensive PHP PDF API features for programming PDF

BCL easyPDF SDK comes with all the PDF features that you may need in developing enterprise server applications. It provides a set of high-level PHP APIs which let you convert a majority of documents to PDF, modifies existing PDF files, converts PDFs to numerous image formats and populates PDF form fields.

BCL easyPDF SDK can be used to develop server or desktop applications, and works great with both 32-bit and 64-bit Windows. It has been developed to handle large server-side loads. Nothing but three lines of PHP code is needed to create PDF documents and generate multiple PDF reports on a daily basis.

Start converting documents to PDF in PHP today! Download PHP PDF API and start free trial!

Learn how to create, merge, split and rasterize PDF files in PHP

easyPDF SDK provides you with PHP code samples to help you create high-quality PDF's within minutes of installing easyPDF. You can work with most of the MS Office documents. If you are having some difficulties with the integration, BCL experts are always ready to assist you and show you how to use PHP to create PDF with the best accuracy ever.

  • Create PDF
  • Process PDF
  • Rasterize

Create PDF using PHP in Server Applications

To create PDF in PHP with accuracy and multiple features, install easyPDF SDK first and then use the following Code Snippet within your server application:


...
 // get the name of the input PDF
  $inputFile = "C:\\PHP\\Test1.docx";
  
  // get the name of the output MS-WORD file
  $outputFile = "C:\\PHP\\Test1.pdf";
  
  try
    {
       $oLoader = new COM("easyPDF.Loader.8");
      $oPrinter = $oLoader->LoadObject("easyPDF.Printer.8");
      $oPrintJob = $oPrinter->PrintJob;
      $oPrintJob->PrintOut ($inputFile, $outputFile);
      print "Success";
    }
 
  catch(com_exception $e)
    {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
    }
...   
 

Write PHP Programs to Process and Manipulate PDF (Merging PDFs, Splitting PDF, Extracting Text from PDF, etc)

PDF Processor Object let you do post-processing of existing PDF files (such as merging multiple PDF files into one, splitting one PDF file into two, and encrypting/decrypting a PDF file) using PHP and many other programming languages.

Merging PDF Files

Merging multiple PDF files in PHP is an easy task if you use the following Code Snippet:

...
 // get the name of the input PDFs
  $inputFile1 =  "Test1.pdf";
  $inputFile2 =  "Test2.pdf";
  
  // get the name of the output PDF
  $outputFile = "TestMerge.pdf";
  
   try
   {
      $oProc = new COM("easyPDF.PDFProcessor.8");
      $oProc->Merge ($inputFile1, $inputFile2, $outputFile);
      print "Success";
   }
 
   catch(com_exception $e)
   {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
   }
...
    

Splitting PDF

When you need to split one PDF to many other, this PHP Code Snippet does the job:

...
 // get the name of the input PDF
  $inputFile =  "TestMergeBatch.pdf";
  
  // get the name of the output PDFs
  $outputFile1 = "TestSplit1.pdf";  
  $outputFile2 = "TestSplit2.pdf";
  
  try
   {
      $oProc = new COM("easyPDF.PDFProcessor.8");
      $oProc->Split ($inputFile, $outputFile1, $outputFile2, 1);
      print "Success";
   }
 
   catch(com_exception $e)
   {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
   }
...

Extracting Text from PDF

Extract a text from PDF in PHP newer was so easy. Following code helps a lot:

...
// get the name of the input PDF
  $inputFile =  "C:\\PHP\\Test1.pdf";
  
  // get the name of the output text file
  $outputFile = "C:\\PHP\\TestExtractText.txt";
  
   try
   {
      $oProc = new COM("easyPDF.PDFProcessor.8");
      $oProc->ExtractText ($inputFile, $outputFile);
      print "Success";
   }
 
   catch(com_exception $e)
   {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
   }
...

Rasterizing PDF

Write a PHP Program to Rasterize PDF

Use PHP to rasterize PDF precisely and with no errors. Install BCL easyPDF SDK and use the given Code Sample.

...
  // get the name of the input PDF
  $inputFile =  "Test1.pdf";
  
  // get the name of the output Image
  $outputFile = "Out.jpg";
  
   try
   {
      $oConv = new COM("easyPDF.PDFConverter.8");
      $tImag = $oConv->PDF2Image;
      $tImag->ImageFormat = 1; //Jpeg
      $tImag->Convert($inputFile, $outputFile);
      print "Success";
   }
 
   catch(com_exception $e)
   {
      Print "error code".$e->getcode(). "\n";
      print $e->getMessage();
   }
...

 

easy PDF SDK team helps users manage PDF with PHP 24/7

 easyPDF SDK setup was very straightforward, unlike our experience with other products. We wrote just a few lines of code to start using it.” Read the case study

M. David Stone,

PC Magazines

 We evaluated many PDF tools and drivers. We even wrote our own. Except for BCL’s easyPDF SDK, all had limitations we couldn’t live with. Some only converted from MS Office and not very well. Others could not do annotation or text stamping on PDF documents. None were as easy to use and as easy to integrate Read the case study  




 
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.