How to Add Line Numbers With Code?

Hi all,

I already asked the same question in the mail group but there was no answer. Just in case some couldn’t see, I’ll try my luck here also.

I’m converting documents(usually .docx) to .pdf files in my ubuntu server 12.04.

I’m using terminal commands because I’m doing it on PHP code.

Here’s code I use:

<?php
$myCommand = "libreoffice -headless -convert-to pdf:writer_pdf_Export *.docx";
exec ($myCommand);
?>

I saw that it’s possible to add line numbers like this: http://help.libreoffice.org/Writer/Adding_Line_Numbers

Can I insert line numbers with a terminal code in Ubuntu, too?

Thanks in advance.

Hi @kublaios,

Sounds like this may not be currently possible via the command-line. Please file an enhancement bug and provide as much information as possible. Don’t forget to mark your bug as an ‘enhancement’. The QA team will be happy to help you triage your feature request in the bugtracker.

Please post a link to any bugs you file in a comment below using the format “fdo#123456”.

Thanks!