swing - how to get the PageFormat from a Java.awt.print.PrinterJob -


Before trying to modify your javax.swing based printout, trying to use PageFormat information I am I'm stumped how I can get PageFormat from PrintJob (which has been obtained using getPrinterJob () and Print Dialog ()). I know that getPageFormat is the method but I do not know how to get the PrintRequestAttributeSet (which is not printJob.getPrintService ()). GetPrintAttributes ()). Honestly, I really want to know the width and height of the page. How can I do this but any thoughts? Thank you.

A "fake" print job run does not work for at least a long time. I tried to do it. At first it used to work very well ... then some customers started to start strange behavior.

Some printers and some configurations, "fake" jobs also cause activity on the printer. Printed no document page, but queue activity, job header page, and sometimes a small bit of garbage production (as I remember). Bogus queue entries were enough to interfere with normal printing, in some cases, and mislead the user.

Yes, the page format was already a pain before the time.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -