We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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:
http://www.aspose.com/docs/display/wordsjava/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:
http://www.aspose.com/docs/display/wordsjava/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:
http://www.aspose.com/docs/display/wordsjava/How+to++Convert+a+Document+to+PDF

I hope, this helps.

Best regards,