Planet PDF Forum Archive

Planet PDF ForumThis is from our 160,000 page PDF discussion forum archive one & two spanning 1999-2011. Use the filters on our Advanced Search page to search archive only. Head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions.


Previous | Next | (P-PDF) Acrobat 6.0


Topic: Internet/Intranet PDF Batch Printing, 1 Attachments
Conf: (P-PDF) Acrobat 6.0, Msg: 110829
From: chicks
Date: 5/4/2004 04:00 AM

Attached file is installer and "c" source code for a very simple method to batch print PDF files over the internet or intranet. Dozens of files can be batch printed using Adobe Reader.

Requires Reader 6.x installed (Win2K, XP only) on the client side.

Clients simply download and run "setup.exe" from your server, which will install pdphelper, and associate the ".pdp" extension and mime type with pdphelper.

On the server side, simply create a ".pdp" file or stream, and set "Content Type" to "application/x-pdfprint". If serving from stream, make sure to create a dummy file name with ".pdp" extension.

The .pdp file requires two keys per line (see test.pdp):
url=
printer=

PdpHelper will parse each line of the .pdp, download the PDF from the url, and launch Adobe Reader with the "print" or "printto" verbs. If the value after the "printer=" key is empty, it will print to the default printer.

A simple servlet doGet usage example:

[CODE]
public void doGet ( ... ) {

ByteArrayOutputStream myPdp;

// Build the .pdp stream here from user-selected files
...

// Let the browser know the content type
response.setContentType("application/x-pdfprint");

// Set a dummy file name
String pdpFileName = "pdpTest.pdp";
response.setHeader("Content-Disposition", "filename=\"" + pdpFileName + "\";

// Let the browser know the file's length
response.setContentLength(myPdp.size());

ServletOutputStream out = response.getOutputStream();
myPdp.writeTo(out);
out.flush();

}

[/CODE]

Click to open!PdpHelper(3).zip
(293,556 bytes)


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Two Passwords Are Better Than One: The Low-Down On PDF Security

For people who don't spend their time looking at PDF files in text editors*, PDF security is a sometimes misunderstood beast.

For example, those document restrictions that PDF files sometimes have -- no Printing, Content Copying, Page Extraction, etc -- are essentially useless unless the PDF also has a User Password.

January 09, 2014
Platinum Sponsor



Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.