Hi, Thanks for your help. I have tried to do what you said, but when I tried it, I always ran into some error (e.g Page getting cut off or other text showing up that I don't want).
I have attached a sample file for you to look at (see attachment in original mail message). The sample file has the following characteristics: - Page 1 - Media Box: [0, 0, 607, 756], Crop Box: [53.5, 21.5, 534.5, 717.3] - Page 2 - Media Box: [0, 0, 681, 879], Crop Box: [27.1, 27.4, 649.2, 809.3] All I want to do is scale every page onto 8.5 x 11 so that it is the maximum size to fit on that page and is scaled proportionately. If it is smaller than the page, I want to make sure that it is centered on the page. As you can see, the Media Box is larger than the Crop Box. There seems to be text and stuff that is located outside the Crop Box that I don't want to show up in the final page. I want the contents to be the same thing that you see when you open the file in Adobe. I was wondering if you could please show me the detailed steps to accomplish what I should try. Your help is much appreciated. I have no more hair to pull out! >From: Bruno Lowagie <[EMAIL PROTECTED]> >Reply-To: Post all your questions about iText here ><[email protected]> >To: Post all your questions about iText here ><[email protected]> >Subject: Re: [iText-questions] Please Help with weird issue >Date: Sat, 27 Jan 2007 10:32:54 +0100 > >mike smith wrote: > > If I try to print through Adobe, in the print dialog window, you can use > > some useful properties (in the Page Handling section, like "Shrink large > > pages" and "Fit to Printer Margins" and "Auto Rotate and Center"). This > > seems to do what I am looking for. > >Check the PDF Reference page 580. > >The only options available using PDF syntax are >PrintScaling AppDefault (the one last selected in Adobe Reader) >and PrintScaling None (no scaling). This viewer preference is >implemented in the current iText version but won't help you. > >New printer settings were introduced in PDF1.7, and I implemented >them all. They will be available in the next release. >I also implemented the PrintArea and PrintClip preferences; >these will also be available in the next release. >However, these still won't solve your problem. > >The reality is that you can't define all the printer settings >in the PDF file. Instead you may want to use iText to create >a new document (with PdfWriter) and add all the pages of the >original document (read with PdfReader) as an imported page >(PdfImportedPage) that is scaled to the desired size. > >br, >Bruno > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >iText-questions mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/itext-questions >Buy the iText book: http://itext.ugent.be/itext-in-action/ _________________________________________________________________ Buy what you want when you want it on Sympatico / MSN Shopping http://shopping.sympatico.msn.ca/content/shp/?ctId=2,ptnrid=176,ptnrdata=081805 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
