Got it. Excellent. 
 
Thanks a lot!
Tao

________________________________

From: Paulo Soares [mailto:psoa...@glintt.com] 
Sent: June 10, 2010 10:51 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Extra margin after print


Printers have mechanical limitations. If the PDF looks good on screen
the problem is either the printer or your expectations.
 
Paulo

        ----- Original Message ----- 
        From: Lu, Tao (MOH) <mailto:tao...@ontario.ca>  
        To: Post all your questions about iText here
<mailto:itext-questions@lists.sourceforge.net>  
        Sent: Thursday, June 10, 2010 3:36 PM
        Subject: Re: [iText-questions] Extra margin after print

        Thanks a lot for your reply. 
        
        I tried following test. It looks like "setViewerPreferences"
does not
        make any difference. 
        
                    PdfWriter writer = PdfWriter.getInstance(document,
new
        FileOutputStream("C:/temp/blank.pdf"));
                    document.setMargins(0, 0, 0, 0);
                    writer.setPdfVersion(PdfWriter.PDF_VERSION_1_7);
        
writer.setViewerPreferences(PdfWriter.PrintScalingNone); //
        This line does not make any difference
                    document.open();
                    document.add(new Paragraph("abc"));
                    document.close();
        
        Thanks!
        Tao
        
        
        -----Original Message-----
        From: 1T3XT info [mailto:i...@1t3xt.info] 
        Sent: June 10, 2010 2:10 AM
        To: Post all your questions about iText here
        Subject: Re: [iText-questions] Extra margin after print
        
        Lu, Tao (MOH) wrote:
        > Hi, experts,
        > 
        > I produced a PDF document by iText, the soft version looks
very fine 
        > with correct margins. But when I printed it out, there are
extra
        margins 
        > which are added to the original margins.
        > 
        > How can I get rid of the extra margins?
        
        Instruct the document that the viewer should scale the pages.
        This is done using "Viewer Preferences" (look for
PageScalingNone).
        -- 
        This answer is provided by 1T3XT BVBA
        http://www.1t3xt.com/ - http://www.1t3xt.info
        
        
------------------------------------------------------------------------
        ------
        ThinkGeek and WIRED's GeekDad team up for the Ultimate 
        GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
        lucky parental unit.  See the prize list and enter to win: 
        http://p.sf.net/sfu/thinkgeek-promo
        _______________________________________________
        iText-questions mailing list
        iText-questions@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/itext-questions
        
        Buy the iText book: http://www.itextpdf.com/book/
        Check the site with examples before you ask questions:
        http://www.1t3xt.info/examples/
        You can also search the keywords list:
        http://1t3xt.info/tutorials/keywords/
        
        
------------------------------------------------------------------------
------
        ThinkGeek and WIRED's GeekDad team up for the Ultimate 
        GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
        lucky parental unit.  See the prize list and enter to win: 
        http://p.sf.net/sfu/thinkgeek-promo
        _______________________________________________
        iText-questions mailing list
        iText-questions@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/itext-questions
        
        Buy the iText book: http://www.itextpdf.com/book/
        Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
        You can also search the keywords list:
http://1t3xt.info/tutorials/keywords/

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to