English | 日本
BCL Technologies
Shopping CartContact Us
BCL easyPDF SDK

Process and Manipulate PHP in PDF

Benefits

  • PDF page manipulation features, such as Merging, Splitting, Rotating, Deleting, Extracting, Optimizing.
  • PDF bookmarking features, such as appending and deleting bookmarks from existing PDF.
  • Embed elements inside current PDF, such as note, text, hyperlink, file attachment, custom annotation.
  • Get PDF information, such as metadata, page size, rotation, count, version.
  • Modify PDF security settings, such as getting signature information, checking encryption, changing password.
  • Extract text from PDF.

Code Snippets

  • Read the PDFProcessor Object Specification
    This object lets 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)

Merging PDF Files

...

  // 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

...
// 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

...
 // 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();
	}
...
                  

 

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
-
 
BCL
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.