Convert Document to PHP in PDF
- Convert printable documents to PDF at high speed.
- Support for 64-bit versions of Windows Server 2003 / 2008 / Vista / 7
- PDF/A Standard support for long term archiving of electronic documents.
- PDF/X Standard support for exchange of print-ready PDF files in printing/advertising industries.
- XPS Support (Supports XPS to PDF conversion. Requirement: .NET Framework 3.0 or above).
- Automatic and CSS-driven pagination (smarter page break, developers can also manually control whether they want to have page break or not).
- Automatically handle any exception or error message that may occur in converting HTML and Office documents (Word, Excel, PowerPoint, Visio) to PDF.
- Support many PDF features such as Font Embedding & Subsetting, Image compression, Metadata, PDF Security (e.g. set permission to print, edit), Digital Signature & Stamping, Watermark, PDF Viewer setting.
- Control printer settings such as graphic resolution & scaling, paper orientation & size, printer color.
// 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";
$oLoader = new COM("easyPDF.Loader.8");
$oPrinter = $oLoader->LoadObject("easyPDF.Printer.8");
$oPrintJob = $oPrinter->PrintJob;
$oPrintJob->PrintOut ($inputFile, $outputFile);
Print "error code".$e->getcode(). "\n";
Preparing Your Server
- Step 1: Loader Setup
The Loader Object is a helper object to enable easyPDF SDK on the server-side environment. It eliminates many of the server-side configurations that you would otherwise have to deal with.
- Step 2: Microsoft Office Setup
This example shows how to make Microsoft Word ready for server use. All you need to do here is to make sure that there are no pop-up dialogs from Office products during PDF conversion.
- Step 3: COM Security Setup
To make the easyPDF SDK objects run properly on the server-side environment.
Download Free Trial
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