Pergunta

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?

Foi útil?

Solução

No it is not possible. The package is just a wrapper around the pdftk binary. pdftk expects filenames and so does the PHP package

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top