English | 日本
C++ PDF
Shopping Cart Contact Us Java PDF
Adobe C++
C# PDF

Create PDF Applications in PHP

A few lines of PHP code are all it takes to convert Word to PDF for your .NET application:

05 ...
06  // get the name of the input PDF
07   $inputFile = "C:\\PHP\\Test1.docx";
08    
09   // get the name of the output MS-WORD file
10   $outputFile = "C:\\PHP\\Test1.pdf";
11    
12   try
13     {
14   $oLoader = new COM("easyPDF.Loader.8");
15       $oPrinter = $oLoader->LoadObject("easyPDF.Printer.8");
16       $oPrintJob = $oPrinter->PrintJob;
17       $oPrintJob->PrintOut ($inputFile, $outputFile);
18       print "Success";
19     }
20   
21   catch(com_exception $e)
22     {
23       Print "error code".$e->getcode(). "\n";
24       print $e->getMessage();
25     }
26 ...

Comprehensive PHP PDF API features

BCL easyPDF SDK comes with all the PDF features that you may need in developing enterprise .NET server applications:

  • Create PDF
  • Process PDF
  • Rasterize PDF

Write PHP Program to Rasterize PDF

05 ...
06   // get the name of the input PDF
07   $inputFile =  "Test1.pdf";
08    
09   // get the name of the output Image
10   $outputFile = "Out.jpg";
11    
12   try
13   {
14     $oConv = new COM("easyPDF.PDFConverter.8");
15     $tImag = $oConv->PDF2Image;
16     $tImag->ImageFormat = 1; //Jpeg
17     $tImag->Convert($inputFile, $outputFile);
18     print "Success";
19   }
20   
21   catch(com_exception $e)
22   {
23     Print "error code".$e->getcode(). "\n";
24     print $e->getMessage();
25   }
26 ...

 

Download Free Trial

Request Pricing

Complete PDF Features
  • “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
  • “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 - 2018 , BCL Technologies.
All other trademarks are the property of their respective owners.