Very small project.
The goal is to use the adobe acrobat sdk or something else to do a command line util that will print a pdf document on a specific printer/paper tray based on infos found into the acrobat headers. I don't want a hack like changing the default tray of the printer the time to print or creating a shadow printer the time to print :)
I just need proof of concept so development should be fast.
There would be a .ini file with the exe with the following syntax
[Default]
printer=Laserjet 1200
Tray = 2
[Enveloppe]
printer=Laserjet 1200
Tray = 1
[Enveloppe]
printer=Lexmark E6
Tray = 3
So basically, the exe will accept only 1 attribute which is the file name of the pdf file.
There will be no output.
It will read the author header from the pdf if it's one of the ini section, it will print on the specified printer/tray. If the author is not found in the ini, default section will be used.
If you know what you are doing, it should be less then 50 lines of code so it is a very small project, it's just that I don't know how to deal with this and that adobe sdk doesnt seem to be able to print to a specific tray, just a specific printer so...
I need full source code of this is ms visual c++
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
4) an exe file as per the description
## Platform
windows 9x/nt4/2000/xp