When I tried to Print Pdf, using below code
writer.addJavaScript("this.print(false);", false);
response.setHeader("Expires", "0");
response.setHeader("Cache-Control",
"must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "public");
response.setContentType("application/pdf");
response.setContentLength(baos.size());
ServletOutputStream out =
response.getOutputStream();
baos.writeTo(out);
out.flush();
It is prompting me to save local and showing the print setting prompt. My
requirement is directly send to Printer without prompting.
Need Help
Thank you in advance
Uma Maheswara Rao Gudi
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
1T3XT info <i...@1t3xt.info>
02/16/2009 10:37 PM
Please respond to
Post all your questions about iText here
<itext-questions@lists.sourceforge.net>
To
Post all your questions about iText here
<itext-questions@lists.sourceforge.net>
cc
Subject
Re: [iText-questions] Printing both sides with iText
Uma Gudi wrote:
>
> How do i print pdf with retro verso(both sides) with iText?
iText creates PDF files, it doesn't print them.
You can set the viewer preference to DUPLEX using this method:
http://1t3xt.info/api/com/lowagie/text/pdf/PdfWriter.html#addViewerPreference(com.lowagie.text.pdf.PdfName,%20com.lowagie.text.pdf.PdfObject)
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
ForwardSourceID:NT0001550E
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php