Вопрос

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?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top