« Using SAXON to apply XSL transform | Main | Fine observations on Screen capture under Windows »

Adding Line Numbers to a PDF generated from XML

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.


  1. Generate HTML from your XML input.

  2. Open the HTML document in MS-WORD.

  3. Select "View" --> "Print Layout"

  4. Select "File" --> "Page Setup" --> "Layout"

  5. Click on "Line Numbers" button.

  6. Enable "Add Line numbering". Select appropriate options. It is possible to have line numbers on specific portions of the document.

  7. Click on "OK" on all active panels.

  8. Convert the MS-WORD file to PDF


That's it.

About

This page contains a single entry from the blog posted on June 12, 2003 3:17 PM.

The previous post in this blog was Using SAXON to apply XSL transform.

The next post in this blog is Fine observations on Screen capture under Windows.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33