Reputation: 6731
im using the php-pdtfk-toolkit found @t github.com/bensquire/php-pdtfk-toolkit, to merge multiple pdfs, the basic example is
$pdftk=new pdftk();
$pdftk->setInputFile(array("filename" => 'example.pdf', 'start_page' => 2));
$pdftk->setInputFile(array("filename" => 'example2.pdf', 'rotation' => 100));
$pdftk->_renderPdf();
if i had a pdf as a string, there is a way to use pdftk without creating temporary file?
Upvotes: 1
Views: 769
Reputation: 157967
No it is not possible. The package is just a wrapper around the pdftk binary. pdftk expects filenames and so does the PHP package
Upvotes: 1