Merging encrypted PDFs

Jan 5, 2012 at 5:04 PM

Hi, I just found this PDF merger. I'd love to get this working due to it's incredible simplicity, but on my first try I received this error in the browser window when I ran the PHP script: "FPDF error: File is encrypted!"

We're using TCPDF to create our PDFs and we're not implementing any encryption in the code.

Here's the code I used:

require_once('PDFMerger/PDFMerger.php');
	
$pdf = new PDFMerger;
	
$pdf->addPDF('output-1.pdf')
	->addPDF('output-2.pdf')
	->merge('file','merged.pdf');

The source and merged files are in the same folder as the script for now...