Fitting document to page while printing
Posted on August 10, 2016 at 4:47am
I need to print a report using JasperReports's library. I have created a report which has 8,5"x11" inch size. Now I want to print it out in my Java app. I'm generating PDF of this report and I make a printer job. I'm printinng it on a label printer which has very small paper size (3.97" x 5.98"). I now I have problem: The printer is printing this 1/4 part of the whole file. I receive a printout which is cut, not fitted to the paper size. I have to set in my code fitting to paper size, but I have no idea how to do it. Is there any attribiute that will help me? Somethig like " fitToPage" attribute or something simmilar.
Thanks in advance!