Line numbers on each page

Hello,

Would it be possible to “show” line numbers with conversion to pdf from word, html, other formats?

Thank you,

Hi Igor,

Thanks for your inquiry. Sure, you can achieve this by using the PageSetup.LineStartingNumber, PageSetup.LineNumberRestartMode, PageSetup.LineNumberDistanceFromText and PageSetup.LineNumberCountBy properties:
https://reference.aspose.com/words/java/com.aspose.words/PageSetup

Best regards,

Hello Awais,

Thank you for the quick reply.

Would it be possible to do it with only html to pdf conversion?

Thank you,

Igor.

Hi Igor,

Thanks for your inquiry. Yes, when you convert HTML to PDF and use the properties mentioned in my previous post, the resultant PDF will contain line numbering. Please let us know if we can be of any further assistance.

Best regards,

Hello Awais,

I cannot find the methods you refered in Aspose.PDF for Java. Would you provide a link, please?

Thank you,

Igor.

Hi Igor,

Thanks for your inquiry. These properties can be found in Aspose.Words for Java API. Please refer to the following documentation page:
https://reference.aspose.com/words/java/com.aspose.words/PageSetup

Please note that with Aspose.Words for Java, you can easily render any Microsoft Word document or Html/Mhtml/Text file to PDF format. I would suggest you please see the code mentioned in the following article:
https://docs.aspose.com/words/java/convert-a-document-to-pdf/

I hope, this helps.

Best regards,