We would like to automate printing PDF (Not to a PDF) files through the SDK and print the PDF Files on a background process. This would include printing to network printer not defined as local printer queues on the server we are running from. We would need a status return to let us know if the printing succeeded or failed.
Currently our old technology we have shelled out to Adobe Reader to print but we have no status returned if the print worked or failed. One thing we did was check to see if the printer we are printing to exists in the local printer queue but that isn't going to be a good solution in the future for us.
--Kevin
Add Printing To the SDK
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators
-
Walter-Tracker Supp
- User
- Posts: 381
- Joined: Mon Jun 13, 2011 5:10 pm
Re: Add Printing To the SDK
There are a couple of options for printing. You can print from the simple Viewer SDK by creating a printer device context (DC) with microsoft API calls and then rendering the page to that DC (there is a flag to specify that rendering is going to print).
You can also print from the Active X Viewer DLL.
https://www.pdf-xchange.com/knowled ... d-printing
You can also print from the Active X Viewer DLL.
https://www.pdf-xchange.com/knowled ... d-printing
-
kmoens
- User
- Posts: 17
- Joined: Fri Nov 11, 2011 10:46 pm
Re: Add Printing To the SDK
Are there any code examples that you can point me to?
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19919
- Joined: Mon Jan 12, 2009 8:07 am
Re: Add Printing To the SDK
Hello kmoens,
Yes there are samples included with each of our SDK products:
https://www.pdf-xchange.com/product/downloads/sdk
Simply download and install the appropriate SDK - and check the examples folders provided.
Walter has pointed you to two possible SDK solutions - so it will be up to you to select the one that better suits your needs.
Best,
Stefan
Yes there are samples included with each of our SDK products:
https://www.pdf-xchange.com/product/downloads/sdk
Simply download and install the appropriate SDK - and check the examples folders provided.
Walter has pointed you to two possible SDK solutions - so it will be up to you to select the one that better suits your needs.
Best,
Stefan