Fitting document to page while printing



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!

ipiotrek10's picture
Joined: Jul 28 2016 - 1:09am
Last seen: 3 years 10 months ago

0 Answers:

No answers yet