PDA

View Full Version : Script to print unopened PDF documents


jereece
05-30-2003, 05:28 AM
I have bee searching high and low for a script I can use on a document index page so that the viewer can print a document without having to open the document first. All the documents will be in PDF.

For example lets say I have a table with the following columns:

Doc. No. | Doc. Title | Approval Date | Print

In the Doc. No. column there will be links to open the document. However, I want to have a link or better yet a printer image in the last column so that the viewer can click to send the document to the printer. There will be maybe up to a hundred documents listed in this table and each will have it's own print icon or link.

I am a little bit of a rookie here, so any help on a script to do this is much appreciated.

Jim

glenngv
05-30-2003, 08:03 AM
I'm sure it's not possible with javascript. But I'm not sure if it's possible at all in server-side. Try reading this link, Creating a PDF with ASP (http://www.15seconds.com/issue/990902.htm), which links to Acrobat FDF Toolkit (http://partners.adobe.com/asn/acrobat/forms.jsp) API.

jereece
05-30-2003, 06:00 PM
Let me make sure I communicated my need properly. The files will already be in PDF format, so I am not looking for a script to convert them. Actually the format of the document is not important. I am only looking for a script to print whichever documents in the list the users wants without having to open each one first.

Thanks,
Jim

glenngv
05-31-2003, 08:17 AM
Originally posted by jereece
Let me make sure I communicated my need properly. The files will already be in PDF format, so I am not looking for a script to convert them. Actually the format of the document is not important. I am only looking for a script to print whichever documents in the list the users wants without having to open each one first.

Thanks,
Jim

Sorry for not being clear. I provided that links in a hope you'll find some ideas about what you need. I know the first link won't exactly solve your problem. I just thought that the PDF API link might have that print function you want, without opening the file.