Question

My company is moving to a new system which has a very poor printing system in place but it does create PDF's on the file system.

My Boss has asked me to create an application to print all the PDF's based on a JOB number.

I've gotten the filesystem search working, I have used the acrobat sdk to open each file and find certain strings to determine which pages go where.

The problem I'm dealing with is that the Acrobat SDK doesn't seem to support choosing printer settings.

My first thought was no big deal I just change the default windows printer and just change the tray so the invoice part and equipment listing go to white paper from tray 1, and the remittance goes to tray 2 on blue paper.

It seems like the printdocument in .net can handle alot of printer settings but I'm not sure if a PDF can be used with a print document.

Looking for any advice or assistance.

Thanks,

Joshua

Was it helpful?

Solution

I found the answer was to use Win32.

Here was the website that helped me get through some of the hurdles:

http://edinkapic.blogspot.com/2011/01/how-to-set-printer-default-paper-bin-in.html

OTHER TIPS

The underlying problem is that PDFs are combination of vector graphics for the text and bitmapped images. It all needs to be rendered into a format the printer understands before being printable.

Ghostscript does this very nicely and if you need to do it from .Net, GhostScript.Net provides an excellent vb.Net interface.

The problem I'm dealing with is that the Acrobat SDK doesn't seem to support choosing printer settings.

You can't use the desktop version of Acrobat for this, since it's not designed for unattended operation and requires a user interface. Also, I believe it violates Adobe's license.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top