Hello,
I'm usind PHPDOCX 10 Premium and would like to transform an existing docx with comments to PDF.
I tried TranformDocument, TransformDocAdvPDF and TransformDocAdvDOMPDF but in all cases I only have "[COMMENT x]" (x = number 1,....) "links" in the generated PDF. These "[COMMENT x]" links are blue and underlined but do not have any action.
My code:
$outfile = 'test.pdf';
$infile = 'test.docx';
require_once 'CreateDocx.php';
require_once 'dompdf/autoload.inc.php';
$dompdf = new Dompdf\Dompdf();
$transform = new TransformDocAdvDOMPDF($infile);
$transform->setDOMPDF($dompdf);
$transform->transform($outfile);
or
$outfile = 'test.pdf';
$infile = 'test.docx';
require_once 'CreateDocx.php';
$docx = new \CreateDocx();
$docx->transformDocument($infile, $outfile, 'native', array('stream' => false));
Am I missing anything?
Thank you
Christian