Product: PDFNET
Product Version: PDFNET VERSION - 9.4080503
Fails with PHP Fatal error: Uncaught TypeError: No matching function for overloaded ‘PDFDoc_Save’ in
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I’ve written a simple test script - below - that takes a file $in and should write it to $out - this works on php7.4 but fails on php 8
\PDFNet::SetPersistentCachePath(TMP_DIR . '/pdftron');
\PDFNet::SetTempPath(TMP_DIR);
\PDFNet::Initialize(PDFTRON_LICENCE_CONVERTER);
$output->writeLn('PDFNET VERSION - ' . \PDFNet::getVersion());
$pdfdoc = new \PDFDoc();
\Convert::OfficeToPDF($pdfdoc, $in, null);
$pdfdoc->Save($out, \SDFDoc::e_linearized, null);
Fails with PHP Fatal error: Uncaught TypeError: No matching function for overloaded ‘PDFDoc_Save’