It is convenient, especially for specification documents, to have linenumbers in the left-margin. Though easy to do in MS-WORD, I could find no straight-forward way to add line numbers for XML generated spec. docs.
SO I decided to try-out a combination. And it works great. Here are the steps.
- Generate HTML from your XML input.
- Open the HTML document in MS-WORD.
- Select "View" --> "Print Layout"
- Select "File" --> "Page Setup" --> "Layout"
- Click on "Line Numbers" button.
- Enable "Add Line numbering". Select appropriate options. It is possible to have line numbers on specific portions of the document.
- Click on "OK" on all active panels.
- Convert the MS-WORD file to PDF
That's it.