Details
-
Improvement
-
Status: Open
-
Resolution: Unresolved
-
0.20.5
-
None
-
None
-
Operating System: Linux
Platform: PC
-
31674
Description
[PATCH]
Hello,
I have added tested and deployed code that allows the Print Renderer to select a
Printer and a Tray.
I'm going to try to attach my patch to this bug report. (although I don't see
that attach option at the moment...)
I added code to add a logger, and changed the margins a bit. I really did not
intend to include these changes in the patch, but I did not feel confident
enough to rip them out with out re-testing everything. I thought a savvy
developer could weed though the mistake and grab the important Printer and Tray
code.
I also added an option to not exit when the task is completed. This made it
easier for me to call the FOP Java classes from my Java code.
Finally I ended up using environment variables for my options. I really don't
think this is a good idea, but I did not have the time to add real parameter
options to the fop code.
Any way, I realize this may be too sloppy to use, and I apologize. I figured I
should offer it any way, since I may not be the only developer interested in
selecting a printer and tray to print to. (I really hope to offer a cleaner
version of this in the future, if it's something FOP is interested in.)
Thanks alot,
Andy.