Search code examples
vb.netprintingprintdocumentacrobat-sdk

Need to print a PDF from .net and select different trays for output


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


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