Scripting a TeX document - (or other way to number pdf pages)

Xander Pirdy xander.pirdy at gmail.com
Tue Apr 13 02:52:58 UTC 2010


On Mon, Apr 12, 2010 at 6:57 PM, Patton Echols <p.echols at comcast.net> wrote:
> I am working on a modification to the script found here:
>
> http://forums.debian.net/viewtopic.php?t=30598
>
> The purpose is to "page number" an existing PDF document.  Part of the
> process requires a pdf document with the page numbers in the appropriate
> place.  The script author made his manually using OO.  What I would like
> to do is to script the process.  One of the commentators to the script
> said that he made his using LaTeX. (Which I know nothing about).
>
> The documentation I have been able to find is massive and frankly I
> don't  quite know where to begin.
>
> What I would like to do is to feed a script a PDF and have it calculate
> the number of pages "$n", then the script would create the "page number"
> pdf with pages $n, and the correct text, font, color, leading zeros,
> etc.  (Example "Page PE - 00001")
>
>  So here are the questions:
>
> If this is something that can be done with LaTeX? (tex-live)
>
> Nodding in the direction of "RTFM" is there a recommended "FM?" (and
> pointers about what I should be reading!)
>
> Is there another way of doing the above that would be more
> straightforward / scriptable?

This is not ideal but the only really useful solution I could find was
http://www.foldr.org/~michaelw/log/programming/lisp/add-pdf-page-numbers.
It really might not help, but is worth looking at. Another thing that
I was thinking is that if there are no page numbers currently it might
be worth it to print it from the standard pdf viewer, to a new pdf
document, as their might be an option for adding page numbers in the
printing process (depends on the tool that you use). Another, but more
complex looking solution is
http://forums.debian.net/viewtopic.php?t=30598. Good luck and post
back what you find out, since this answer seems prevalent on the
internet but is rarely accompanied by an answer.
-Xander
>
> Thanks
>
> --PE
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list