in reply to line number in PDF

Laying-out PDF documents is a big pain in the a**. Interesting as PDF::API2, it still requires you to do a lot of low level placement of various bits and pieces, so I have basically given up on it and now use LateX to lay-out my PDF documents.

The LaTeX lineno package can add such linenumbers automatically.

And as LateX files are pure text files, I make them with Template::Toolkit! (see, there was a Perl-link)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: line number in PDF
by srikrishnan (Beadle) on Mar 31, 2009 at 04:01 UTC
    Thanks for your reply. But the original PDFs has been already created using QUARK or InDesign + or 3B2. Now the requirement is only to add line numbers straight opp +osite to each line on the right side margin.