Hi,
Is it possible to convert a DOCX to a PDF without losing the line numbers? They're quite important so we can't afford to lose them.
Thanks,
Harry
Hi,
Is it possible to convert a DOCX to a PDF without losing the line numbers? They're quite important so we can't afford to lose them.
Thanks,
Harry
Hello,
What do you mean by 'line numbers'? Please post a screenshot or a docx example.
Regards.
Hi again,
To save some time, I will just show the code that generates it. If you NEED a screenshot/file, I will upload in due course.
$lineNumberingOptions = array(
'countBy' => 5,
'start' => 1,
'restart' => 'newPage'
);
$docx->addLineNumbering($lineNumberingOptions);
Thanks,
Harry
Hi,
I have uploaded the file here: http://www.sendspace.com/file/r7izks
I edited the text to lorem ipsum as I cannot share, but it's only to show the line numbers.
Thanks,
Harry
Hi,
If you don't use Odfconverter to do the transformation:
$docx->transformDocx('pages-word2-output-1-This-is-my-amazing-title.docx', 'example_text.pdf', null, array('odfconverter' => false));
The PDF will include the line numbering. We're going to check OdfConverter to find any issue but this is a quick solution if your documents don't use complex tables.
Regards.