문제

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