PDF Server YAFPC-Appliance Forum

Welcome! Topics in this Forum are answered by the Author from time to time. Spam is removed daily!

You can subscribe to this discussion group using an RSS feed reader.

File names redux

I would like to use a specific field from a specific line in my PDF file to build the file name, and I have a working script with sed and awk to extract the needed field.

Did I misunderstand, however, that I can build a filename from the PDF file contents? The documentation makes reference to the "Document title," but I didn't see that explained.

I'm using YAFPC as a remote print queue on an AIX system, and I am printing to the queue using the enscript command. For example:

  enscript -dpdf filename

where 'pdf' is the queue name.  So, 'filename' is my 'Document title'?

Thanks,
Andrew Cyr
Permalink Send private email Andrew Cyr 
September 23rd, 2009 5:26pm
The filename is built from the "document title" given by the printing application. If you look at a PostScript file (with text editor) you will find a line looking like this:

%%Title: (Some Document Title Here)

This line is used by YAFPC to build the filename from.

I don't know much about enscript. But looking at the man page I would try the "-t" option first.

W.U.
Permalink Send private email Wolfgang Ullrich 
September 24th, 2009 9:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics