Re: [iText-questions] Question about PdfTable
Which version are you using? Could you send the full stack? By declaring the way you did, no exception should be displayed. These are the constructors: http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfPTable.html#PdfPTable() Live example provided by itext: http://itextpdf.com/examples/iia.php?id=75 Regards On Tue, May 19, 2015 at 1:25 PM, decrawf diane-ha...@uiowa.edu wrote: Hello I am very new to iText and in the learning curve. I would like to utilize the PdfTable object. But when I do this:PdfTable table = new PdfTable(3) I receive an error saying there is no constructor of new PdfTable(). I have access to iText api library and when I look in this class I do not see the constructor. Any ideas of how I can get a hold of this object? Thank you in advance -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821.html Sent from the iText mailing list archive at Nabble.com. -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about PdfTable
Hello I am very new to iText and in the learning curve. I would like to utilize the PdfTable object. But when I do this:PdfTable table = new PdfTable(3) I receive an error saying there is no constructor of new PdfTable(). I have access to iText api library and when I look in this class I do not see the constructor. Any ideas of how I can get a hold of this object? Thank you in advance -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821.html Sent from the iText mailing list archive at Nabble.com. -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfTable
you are missing the P for PdfPTable table= new PdfPTable(1); -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821p4660823.html Sent from the iText mailing list archive at Nabble.com. -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfTable
Thank you so much. Someone else pointed this out to me. Have a great day. Best Regards, Diane From: nconde [via iText] [mailto:ml-node+s2136553n466082...@n4.nabble.com] Sent: Tuesday, May 19, 2015 11:59 AM To: Haddy, Diane E Subject: Re: Question about PdfTable you are missing the P for PdfPTable table= new PdfPTable(1); If you reply to this email, your message will be added to the discussion below: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821p4660823.html To unsubscribe from Question about PdfTable, click herehttp://itext.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4660821code=ZGlhbmUtaGFkZHlAdWlvd2EuZWR1fDQ2NjA4MjF8MTExNjE2NTYwOQ==. NAMLhttp://itext.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821p4660824.html Sent from the iText mailing list archive at Nabble.com.-- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfTable
Hi I was missing the “P” in PdfPTable. It’s all good again. Thank you very much for responding back so quickly. Have a great day. Diane From: André Fróes [via iText] [mailto:ml-node+s2136553n4660822...@n4.nabble.com] Sent: Tuesday, May 19, 2015 11:58 AM To: Haddy, Diane E Subject: Re: Question about PdfTable Which version are you using? Could you send the full stack? By declaring the way you did, no exception should be displayed. These are the constructors: http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfPTable.html#PdfPTable() Live example provided by itext: http://itextpdf.com/examples/iia.php?id=75 Regards On Tue, May 19, 2015 at 1:25 PM, decrawf [hidden email]/user/SendEmail.jtp?type=nodenode=4660822i=0 wrote: Hello I am very new to iText and in the learning curve. I would like to utilize the PdfTable object. But when I do this:PdfTable table = new PdfTable(3) I receive an error saying there is no constructor of new PdfTable(). I have access to iText api library and when I look in this class I do not see the constructor. Any ideas of how I can get a hold of this object? Thank you in advance -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821.html Sent from the iText mailing list archive at Nabble.com. -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ iText-questions mailing list [hidden email]/user/SendEmail.jtp?type=nodenode=4660822i=1 https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y ___ iText-questions mailing list [hidden email]/user/SendEmail.jtp?type=nodenode=4660822i=2 https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php If you reply to this email, your message will be added to the discussion below: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821p4660822.html To unsubscribe from Question about PdfTable, click herehttp://itext.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4660821code=ZGlhbmUtaGFkZHlAdWlvd2EuZWR1fDQ2NjA4MjF8MTExNjE2NTYwOQ==. NAMLhttp://itext.2136553.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. -- View this message in context: http://itext.2136553.n4.nabble.com/Question-about-PdfTable-tp4660821p4660825.html Sent from the iText mailing list archive at Nabble.com.-- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight.
Re: [iText-questions] Question
hi Giao! Your PDF is a scanned one ?? I will give it a try, and let u know. Rao NHATRANGRNT From: giao...@hotmail.com To: itext-questions@lists.sourceforge.net Date: Mon, 2 Jun 2014 17:40:44 -0400 Subject: [iText-questions] Question Hi , I scan a ticket to pdf file (See attach file Doc1.pdf)In iTextSharp.text.pdf, I don't know how to capture hand written number 195 on field COUNTED QTY.Do you have code in c# to solve this problem? Thank you -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about if/when itext will be able to handle PDF-Extension
On 4/7/2014 5:16 PM, Peter Thung wrote: To whom it may concern, (Response from application developer) Sorry that PDFill can not open this PDF. This file does not strictly follow PDF standard. It use so called PDF-Extension that adobe trys to play trick. What is PDFill and how is it related to iText? in which his/her app couldn't read a pdf I have which is based upon iText library. OK, so you have created a PDF using iText that uses some advanced feature that isn't supported by PDFill. the question is, do you know if and when iText will be able to read/write to this PDF-Extension? Or perhaps is it the developer just needs to update to the latest library? Your preposition contradicts your question. You say: iText supports feature X which isn't supported by PDFill. you ask: when will iText support feature X? -- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about if/when itext will be able to handle PDF-Extension
To whom it may concern, (Response from application developer) Sorry that PDFill can not open this PDF. This file does not strictly follow PDF standard. It use so called PDF-Extension that adobe trys to play trick. in which his/her app couldn't read a pdf I have which is based upon iText library. the question is, do you know if and when iText will be able to read/write to this PDF-Extension? Or perhaps is it the developer just needs to update to the latest library? -Peter-- Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees_APR___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfPCell and setHorizontalAlignment
I have find the problem from this link behind. Thanks also. http://stackoverflow.com/questions/12573962/how-to-center-align-template-element-in-pdfpcell -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-PdfPCell-and-setHorizontalAlignment-tp2139851p4659811.html Sent from the iText - General mailing list archive at Nabble.com. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfPCell and setHorizontalAlignment
is your problem had resolved? Your problem also happened in my code. If you know how to resolve, send mail to me . thank you very much -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-PdfPCell-and-setHorizontalAlignment-tp2139851p4659810.html Sent from the iText - General mailing list archive at Nabble.com. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfPCell and setHorizontalAlignment
On 2/28/2014 8:54 AM, willegy wrote: is your problem had resolved? That was a question dating from 2005. Please don't reopen a thread that old. In any case: I see that you've found the solution on StackOverflow. -- Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071iu=/4140/ostg.clktrk ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question: Sign pdf with *.p12 certificate
Hello, I downloaded the 30 days test license of iText for Android and want to test it with a prototype for digital signing pdfs with a *.p12 certificate. Then I installed the *.p12 certificate correctly in the Android Keychain, but when I want to sign a pdf I get a Nullpointer Exception from the Spongy Castle API (enclosed the source code and the exception). Exist any example code for Android because I didn´t find any? regards, Florian Gruber inline: Exception.png-- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] QUESTION
Hi itext support, At this moment, I'm looking for a library that allows me adding annotations to specific images in an existing PDF, annotations should be some external URL for example (www.google.com), the question is: how I can do this with itext and if the library Itext can. Doing so would be willing to purchase a license. Warm Regards, Johan Alexander Velandia Rojas Coordinador FELEC johan.velan...@co.experian.commailto:johan.velan...@co.experian.com Cra 63 # 17-32 Bogotá - Colombia Tel. +57-1 2607111 Ext. 1602 [Descripción: Descripción: Logo_Expirian] ** Nuestro dominio ha cambiado. Desde el día 29 de Diciembre del 2011 las cuentas de correo electrónico ya no son @computec.com serán @co.experian.com. ** ** Nota: La informacion transmitida a traves de este correo electronico es confidencial y esta dirigida unicamente a su destinatario. Su reproduccion, lectura o uso esta prohibido a cualquier persona o entidad diferente. Aunque Experian ha realizado su mejor esfuerzo para asegurar que el presente mensaje y sus archivos anexos se encuentran libre de virus y defectos que puedan llegar a afectar los computadores o sistemas que lo reciban, no se hace responsable por la eventual transmision de virus o programas daninos por este conducto, y por lo tanto es responsabilidad del destinatario confirmar la existencia de este tipo de elementos al momento de recibirlo y abrirlo. Ni Experian ni ninguna de sus divisiones o dependencias aceptan responsabilidad alguna por eventuales danos o alteraciones derivados de la recepcion o uso del presente mensaje. ** Note: The information transmitted through this E-mail is confidential and is intended to reach only its addressee. Reproduction and usage of this message or its contents, in whole or in part, are strictly forbidden without the prior written consent of Experian. Experian has made its best efforts to ensure that this message and any attached files are free of any virus or other potentially harmful content, but makes no representations to this effect. Addressee shall assume full responsibility for ensuring that opening or reading this message and any attachments will not result in harm to their system. Neither Experian nor any of its divisions accepts any responsibility for damages arising from opening or reading this message or any attachments thereto. ** inline: image001.png-- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION
Op 27/06/2013 19:55, Johan Alexander Velandia Rojas schreef: Hi itext support, At this moment, I'm looking for a library that allows me adding annotations to specific images in an existing PDF, annotations should be some external URL for example (www.google.com), the question is: how I can do this with itext and if the library Itext can. Doing sowould be willing to purchase a license. Your question was already forwarded to sales. You should receive an answer shortly. -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question : Readonly PDF
Hi, I am using the below code to concatenate pdf's: but the question is how would i make sure the concatenated PDF is a read-only pdf. Please advise. import java.io.*; import com.itextpdf.text.*; import com.itextpdf.text.pdf.*; public class PickTray { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { String[] files = { C:\\temp\\merge.pdf, C:\\temp\\merge.pdf,C:\\temp\\Partner.pdf,C:\\temp\\1.pdf,C:\\temp\\2.pdf,C:\\temp\\3.pdf,C:\\temp\\Lanscape_test.pdf }; Document PDFCombineUsingJava = new Document(); PdfCopy writer = new PdfCopy(PDFCombineUsingJava, new FileOutputStream(C:\\temp\\CombinedPDFDocument.pdf)); PDFCombineUsingJava.open(); PdfReader ReadInputPDF; int number_of_pages; for (int i = 0; i files.length; i++) { ReadInputPDF = new PdfReader(files[i]); number_of_pages = ReadInputPDF.getNumberOfPages(); System.out.println(number_of_page+ ReadInputPDF.getNumberOfPages()); for (int page = 0; page number_of_pages; ) { writer.addPage(writer.getImportedPage(ReadInputPDF, ++page)); } } writer.addViewerPreference(PdfName.PICKTRAYBYPDFSIZE, PdfBoolean.PDFTRUE); PDFCombineUsingJava.close(); } catch (Exception i) { System.out.println(i); } } } -- Thanks, Anil Kotla -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on Itext
Tiles are not supported. Paulo On Thu, Dec 20, 2012 at 2:09 PM, Rosy rose rose.ros...@gmail.com wrote: Hi All, I am trying to convert the tiff file into pdf file but the conversion fails if the tiff file has tiles. Kindly suggest solution for the same. Regards Rosy -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on Itext
unsubscribe me. On Fri, Dec 21, 2012 at 3:28 PM, Paulo Soares pgpsoa...@gmail.com wrote: Tiles are not supported. Paulo On Thu, Dec 20, 2012 at 2:09 PM, Rosy rose rose.ros...@gmail.com wrote: Hi All, I am trying to convert the tiff file into pdf file but the conversion fails if the tiff file has tiles. Kindly suggest solution for the same. Regards Rosy -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question on Itext
Hi All, I am trying to convert the tiff file into pdf file but the conversion fails if the tiff file has tiles. Kindly suggest solution for the same. Regards Rosy -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question regarding Portfolio and the first displayable column
Hi, i have the following code: PdfCollectionField number = new PdfCollectionField(Number, PdfCollectionField.NUMBER); number.setOrder(0); number.setVisible(false); schema.addField(NUMBER, number); PdfCollectionField title = new PdfCollectionField(Title, PdfCollectionField.TEXT); title.setOrder(1); title.setVisible(true); schema.addField(TITLE, title); PdfCollectionField date = new PdfCollectionField(Date, PdfCollectionField.DATE); date.setOrder(2); date.setVisible(true); schema.addField(DATE, date); PdfCollectionField filename = new PdfCollectionField(Filename, PdfCollectionField.FILENAME); title.setOrder(3); filename.setVisible(true); schema.addField(FILE, filename); collection.setSchema(schema); But when i open the PDF the field date is displayed first, followed by title - whats wrong? Its itextpdf 5.2.1 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about checkbox
Hi, Could you please help me to identify the checkbox in the pdf.. please tell me which property or tag shows that editable check box are present in pdf if we open that Pdf in NotePad. or how to identify that pdf contain check box.. I know one method of PDfReader is *getAcrofield* which will get getAcrofield for whole Pdf..I want identfy in which page Acrodfields are Present.. and to get Page wise Acrofileds..Please help me. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about checkbox
PDFs aren't designed to be opened in Notepad as they are binary documents usually compressed, so all you'll see is a lot of random garbage. Once you have an Acrofield, you can follow it back to its parent page. From: Pravin Wagh [mailto:pravin.w...@capsilon.com] Sent: Wednesday, August 01, 2012 3:42 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] question about checkbox Hi, Could you please help me to identify the checkbox in the pdf.. please tell me which property or tag shows that editable check box are present in pdf if we open that Pdf in NotePad. or how to identify that pdf contain check box.. I know one method of PDfReader is getAcrofield which will get getAcrofield for whole Pdf..I want identfy in which page Acrodfields are Present.. and to get Page wise Acrofileds..Please help me. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about layers
Hi, Could you please help me to retrive the PdfLayers from the existing pdf or Could you please me provide the code snipet to retrive the PDFLayers from existing PDF. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about layers
On 31/07/2012 14:01, Pravin Wagh wrote: Hi, Could you please help me to retrive the PdfLayers from the existing pdf or Could you please me provide the code snipet to retrive the PDFLayers from existing PDF. What do you mean by retrieve the PdfLayers? Do you want to know which layers are available (including info about the properties)? That's doable. Or do you want to retrieve the content that belongs to those layers? That's... a strange request. In which form do you want that content? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about splitting
On 30/07/2012 7:03, Pravin Wagh wrote: You told when we split PDF using PdfCopy and PdfImportedPage it throws all interactive properties .. No, when you split a PDF using PdfWriter and PdfImportedPage. With PdfCopy you only lose the bookmarks, but chapter 7 explains how to solve that problem. Could you please help us which method should we use for splitting the PDF without loosing page properties original Pdf Properties. Well, the best way to split a PDF is by using PdfStamper. There's an example in chapter 6 (available for free). -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about splitting
Hi, You told when we split PDF using PdfCopy and PdfImportedPage it throws all interactive properties .. Could you please help us which method should we use for splitting the PDF without loosing page properties original Pdf Properties. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about itext
Op 25/07/2012 13:31, Pravin Wagh schreef: Hi, Can i get background color for the PDF in itext. No, not in a trivial way. Could you please help me to read the table in the exsiting PDF in iText. No and to read the background color of Cell from table.. No. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about itext
Op 25/07/2012 13:51, Pravin Wagh schreef: Hi, When we have i/p as multipage Pdf and when we split those pdf using following code ..*- * You're code isn't OK, it throws away all interactivity and properties from the original document. * *is there any possibility of loosing the Properties of input pdf. O, you WANT to throw away all properties? In that case, your code is correct. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about itext
Hi, When we have i/p as multipage Pdf and when we split those pdf using following code .. *PdfCopy writer = new PdfCopy(document, new FileOutputStream(this.outFileName)); document.open(); PdfImportedPage page = writer.getImportedPage(pdfReader, pageNumber); // Write the page in PDF document. writer.addPage(page); // Closing Document. document.close(); // Closing Writer. *is there any possibility of loosing the Properties of input pdf. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about itext
Hi, Can i get background color for the PDF in itext. or Could you please help me to read the table in the exsiting PDF in iText. and to read the background color of Cell from table.. Thanks Pravin -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
On 15/06/2012 7:25, Hemant Sharma wrote: Can I continue using this ver 4.1.6 even now when the latest version is a paid version? There has never been a version 4.1.6 of iText, the Java-PDF version. We've discussed this over and over again: you shouldn't use old versions of iText for technical as well as legal reasons: http://lowagie.com/license -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
Mhm I didn't read java in Hemants post - did you? You may have forgotten ;-) but there is/was a iText C# version 4.1.6 - the latest licensed under MPL/LPGL. @Hemant What do you think? If you have the budget and the time/resources to adapt your project and test the new version then go with the new commercial version. Or you experience bugs or want to facilitate cool new features etc. go with the new version. And in the other cases go with 'never change a running system'. Regards, ToM 2012/6/15 1T3XT BVBA i...@1t3xt.info: There has never been a version 4.1.6 of iText, the Java-PDF version. We've discussed this over and over again: you shouldn't use old versions of iText for technical as well as legal reasons: http://lowagie.com/license -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
Op 15/06/2012 9:54, TvT schreef: there is/was a iText C# version 4.1.6 That's not iText, that's iTextSharp ;-) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
Op 15/06/2012 12:57, Hemant Sharma schreef: So can we use the iTextSharp version 4.1.6 coded in C# for commercial use. If you don't care about your customer(s), you can probably do so. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
The license is always the same whether it is Java or C# or C++ or Cobol or whatever language... 2012/6/15 Hemant Sharma hemant.sharma1...@gmail.com: as talking about the C# version ie iText Sharp( sorry for not being detailed there) So can we use the iTextSharp version 4.1.6 coded in C# for commercial use. Is it under LGPL? (asking this as you might have answered pertaining to Java version, may be) Regards, Hemant -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] QUESTION: regarding commercial usage of iText ver 4.1.6
Hi , I am trying to use iText version4.1.6 with one of my commercial product as I read on some blogs etc that this was under LGPL . Can I continue using this ver 4.1.6 even now when the latest version is a paid version? Please advise. Thank you. Regards, Hemant -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION: In xmlworker, how do I display html tags ..
Op 4/06/2012 6:26, Parminder Kaur schreef: tabletrtdThe HTML image (quot;lt;imggt;quot;) tag/tdtr/table I'm sorry, I can't reproduce the error. See code sample + result in attachment. However, I did have to fix your HTML. I replaced tr by /tr in the above HTML snippet. I'm using the most recent versions of XML Worker and iText (the version available in the SVN trunk). Maybe you're experiencing a bug that has already been fixed. html2pdf.pdf Description: Adobe PDF document package examples.xml; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.pdf.PdfWriter; import com.itextpdf.tool.xml.XMLWorkerHelper; public class HtmlParserTest { public static final String HTML = tabletrtdThe HTML image (quot;lt;imggt;quot;) tag/td/tr/table; /** * Creates a PDF with the words Hello World * @param file * @throws IOException * @throws DocumentException */ public void createPdf(File file) throws IOException, DocumentException { // step 1 Document document = new Document(); // step 2 PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(file)); // step 3 document.open(); // step 4 XMLWorkerHelper.getInstance().parseXHtml(writer, document, new ByteArrayInputStream(HTML.getBytes(UTF-8))); // step 5 document.close(); } /** * Main method */ public static void main(String[] args) throws IOException, DocumentException { File dir = new File(results/); dir.mkdirs(); new HtmlParserTest().createPdf(new File(dir, html2pdf.pdf)); } } -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] QUESTION: In xmlworker, how do I display html tags ..
If I have the following html code for instance: tabletrtdThe HTML image (quot;lt;imggt;quot;) tag/tdtr/table and I try to convert this into PDF using xmlworker, I get the following error: com.itextpdf.tool.xml.exceptions.RuntimeWorkerException: Invalid nested tag td found, expected closing tag img. I tried the following text: img, quot;lt;imggt;quot;, quot;#60;img#62;quot; with spaces and without spaces. But they are all converted to the same img by the time they reach the processing code and I get an error. How can I resolve this? I tried this on the XMLworker demo website. It didn't throw any error, but it didn't display the tag either. Regards, Parminder Kaur -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] QUESTION : Extract text PDF file
Hi, I turn to you because I have a question about parsing PDF documents. My version of iText is com.lowagie.iText version 2.0.6 (http://mvnrepository.com/artifact/com.lowagie/itext/2.0.6 ) To parse a PDF i took your exemple ParsingHelloWorld (http://itextpdf.com/examples/iia.php?id=275 ) with PRTokeniser. My probleme is when i parse a PDF file created with Crystal Reports application i do not get a readable text. Here's the result i get : !#$%'(!)#$%'( !%'(*+*!)%'( !$*,$#+--$(!)$*,$#+--$( !%.-$/%0'%$1$*%(2!)%.-$/%0'%$1$*%( !20+3(44556578579549555:79;88:!)20+3( !+3$/0**$$(!)+3$/0**$$( !0==0*'??$1$*%(@A$*%!)0==0*'??$1$*%( !+3$/$A+@-$1$*%(657857!)+3$/$A+@-$1$*%( !=+*3/3$/-0A$(55B!)=+*3/3$/-0A$( !-0.?(!)-0.?( !,'##$(/*'$!),'##$( I would like if it's a known bug because I did not find any information on this problem. Thank you in advance for the help you can provide me. -- Daniel DA COSTA Service Informatique 53, rue La Fayette 75009 Paris Tél : 01 78 09 82 52 ___ Ce message est exclusivement destiné aux personnes dont le nom figure ci-dessus. Il peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où vous auriez reçu ce message par erreur, merci de le renvoyer à l'adresse e-mail ci-dessus. This message is intended for the above-mentioned addresses only. It may contain confidential information the review, dissemination or disclosure of which is strictly prohibited. Should you receive this message in error, please return it to the e-mail address indicated above. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION : Extract text PDF file
Op 21/05/2012 14:01, Daniel DA COSTA schreef: I would like if it's a known bug because I did not find any information on this problem. This has probably been solved in more recent versions. You're getting gibberish because the version you're using (dating from October 2007) didn't take into account the character mapping used in the file you're parsing. Surely you'll understand that we're not going to maintain a separate branch for a version that is 4.5 years old. You should upgrade to a more recent version. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION : Extract text PDF file
Thank you for your fast response. However, if i can not change the version because i use the package RTF, is it that there would be a way to get a readable text ? Thank you in advance for the help you can provide me. -- Daniel DA COSTA Service Informatique 53, rue La Fayette 75009 Paris Tél : 01 78 09 82 52 ___ Ce message est exclusivement destiné aux personnes dont le nom figure ci-dessus. Il peut contenir des informations confidentielles dont la divulgation est à ce titre rigoureusement interdite. Dans l'hypothèse où vous auriez reçu ce message par erreur, merci de le renvoyer à l'adresse e-mail ci-dessus. This message is intended for the above-mentioned addresses only. It may contain confidential information the review, dissemination or disclosure of which is strictly prohibited. Should you receive this message in error, please return it to the e-mail address indicated above. Le lundi 21 mai 2012 à 14:39 +0200, iText Info a écrit : Op 21/05/2012 14:01, Daniel DA COSTA schreef: I would like if it's a known bug because I did not find any information on this problem. This has probably been solved in more recent versions. You're getting gibberish because the version you're using (dating from October 2007) didn't take into account the character mapping used in the file you're parsing. Surely you'll understand that we're not going to maintain a separate branch for a version that is 4.5 years old. You should upgrade to a more recent version. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] QUESTION : Extract text PDF file
Op 21/05/2012 15:11, Daniel DA COSTA schreef: Thank you for your fast response. However, if i can not change the version because i use the package RTF Nothing keeps you from using iText 2.0.6 (with packages com.lowagie) next to iText 5.x.y (with packages com.itextpdf). As the package names are different, there shouldn't be any clashes between both versions. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about determining the color of text
Op 1/05/2012 17:37, Lowe, Wyan schreef: Hi, I'd like to open a pdf, extract the text, but also determine the color of the text during extraction. For example, if thepdftext is 1 page, and nicely column formatted (maybe 3 columns with whitespace in between), maybe the 1^st column is numbers, if the number is'green', it has one meaning, but if it's blue, a different meaning...etc...The 2^nd column 3^rd columns the same thing--depending on the color of the text, the meaning is different That's not impossible, but iText doesn't offer this kind of functionality out of the box. You'll have to study the classes in the com.itextpdf.text.pdf.parser package. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on iTesxt
On 23/04/2012 15:38, Ramesh Reddy Keesara wrote: Hi, I am very new to this component, can we genarate a PDF with form controls or only the text and graphical content. You can create PDFs with text, graphical content and all kinds of annotations (links, text annotations, ...). You can also create form fields and the corresponding widget annotations. The result will be an interactive form based on AcroForm technology. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on iTesxt
On 23/04/2012 16:15, Ramesh Reddy Keesara wrote: Can we include script? Using iText, you can add JavaScript to a PDF (existing or new) if that's what you mean. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PDF structure
Please use the mailing-list addres: itext-questions@lists.sourceforge.net DO NOT use the company address i...@1t3xt.info unless you wish to receive an invoice for the answers that are provided. Also: please rephrase your questions because they don't make any sense. On 19/04/2012 19:40, omid wrote: How does iText read PDF content? Does it need a API that allow to read content or not? iText IS an API that allows you to read existing PDFs and reuse it in other documents. How to access to PDF content? Read the documentation: http://itextpdf.com/book/ -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about PDF structure
Hi First, I should thankful you because of your helps and guides to me. I have studied 'PDF reference 1.7' completely and I was faced with several questions that I hope you can answer to them. 1. Where place does 'Metadata' stored? In main file(main content) or another file? 2. What does information stored in 'metadata stream'? 3. If the table is split across multiple pages, How to specifies page area inner table? In the other word, what symbol insert inner table? 4. Does PDF support HTML and CSS? 5. Does TOC stored in main content or another file? Please help me to answer this question. Thank you for your attention Omid -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PDF structure
Op 17/04/2012 19:10, omid schreef: Hi First, I should thankful you because of your helps and guides to me. I have studied 'PDF reference 1.7' completely and I was faced with several questions that I hope you can answer to them. 1. Where place does 'Metadata' stored? In main file(main content) or another file? If you have read the PDF reference 1.7 completely, then you know that Metadata can be stored: 1. in an info dictionary 2. in an XMP stream that covers the complete document 3. in XMP streams that cover specific parts (e.g. a specific page) As you have read in the reference, all of this metadata is stored in the file. 2. What does information stored in 'metadata stream'? You have read this in the PDF reference, so I'll skip this question. 3. If the table is split across multiple pages, How to specifies page area inner table? In the other word, what symbol insert inner table? You can nest tables by adding a table instance to another table using the addCell() method. 4. Does PDF support HTML and CSS? iText supports converting HTML/CSS to PDF, but the PDF specification itself doesn't support HTML/CSS (unless you're referring to Rich Text). 5. Does TOC stored in main content or another file? Define TOC. Do you mean bookmarks? These are called outlines in the PDF reference. So when you read the part about the outline tree in the PDF reference, you were reading about bookmarks. Do you mean specific pages with a table of contents (and maybe some links to the content), then these are no different from other pages, except that they have Link annotations with local goto actions. A PDF is a single file. The only case in which you may need external resources is when you use fonts that aren't embedded. Thank you for testing our knowledge about the PDF specification. What was the purpose of this pop quiz if you have already studied the PDF reference completely yourself? -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about PdfPageEventHelper.onStartPage()
Hi! Help me. I try to write a table to the document. But every page can to have the same upper part. I use PdfPageEventHelper.onStartPage() or onEndPage(). But last one row of the table to print at the next page. What i need to use for this? This is code to add one row as a table to the document. docTable contains 6 String values. private PdfPTable insertTable(ListDocTable listDocTable) { try { for (DocTable docTable : listDocTable) { table = new PdfPTable(listDocTable.get(0).getListDocColumn().size()); table.setWidthPercentage(100); insertColumn(docTable); document.add(table); } } catch (DocumentException ex) { Logger.getLogger(PDFGenerator.class.getName()).log(Level.SEVERE, null, ex); } return table; } This is even code: class PageFooter extends PdfPageEventHelper { public void onStartPage(PdfWriter writer, Document document) { insertRows(listDocRow); } } http://itext-general.2136553.n4.nabble.com/file/n4229511/pic.jpg help me please! -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-PdfPageEventHelper-onStartPage-tp4229511p4229511.html Sent from the iText - General mailing list archive at Nabble.com. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfPageEventHelper.onStartPage()
On 23/12/2011 19:56, valerykhyzhniy wrote: Hi! Help me. I try to write a table to the document. But every page can to have the same upper part. I use PdfPageEventHelper.onStartPage() or onEndPage(). But last one row of the table to print at the next page. What i need to use for this? A. You need to REGISTER on the iText mailing list if you want to get answers. See http://lowagie.com/itextml to find out what happens if you don't register, and see http://lowagie.com/rule1 to learn more about the rules. B. You need to READ the documentation. If you read chapter 5 of the book iText in Action - Second Edition, you'll find out that you're doing at least two things wrong: 1. you use onStartPage() to add content; you shouldn't do this: use onEndPage(); 2. you add content to the Document object in a page event; the documentation tells you why you should use that object for READ-ONLY purposes. In short: you can solve your problem by reading chapter 5. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on hiding toolbar(disable save and print button) in Adobe X using iText
Actually, in older versions of Acrobat/Reader the toolbar was just hidden. If the user chose the appropriate menu item or hit the hot key, the toolbar would appear and they could happily click the Save button. In addition, they could have right-clicked and chosen Save as well. Your previous solution has always been useless. What you need to do is NOT prevent saving BUT control the actual use of the PDF. Doesn't matter if someone has it, if they can't open it – now does it. And that's where DRM (Digital Rights Management) comes in. Leonard From: Brijoy Janardhanan bri...@gmail.commailto:bri...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 16 Dec 2011 13:27:38 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] Question on hiding toolbar(disable save and print button) in Adobe X using iText Hello We badly need a solution. We cannot want to introduce a new logic to handle pdf and confuse the users. Right now in all versions of pdf the itext has an option to disable the tool bar option, which will allow the users not to save the sensitive information to the desktop. In Adobe X it created a issue, by highlighting the toolbar option and makes the iText code not to work. Can somebody help me out and give a feasible solution? Thanks Brijoy ---== Message: 2 Date: Fri, 9 Dec 2011 17:48:02 - From: John Renfrew r...@btclick.commailto:r...@btclick.com Subject: [iText-questions] FW: Question on hiding toolbar in Adobe X To: 'Post all your questions about iText here' itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Message-ID: 012d01ccb69a$b308a9d0$1919fd70$@com Content-Type: text/plain; charset=us-ascii Leonard, Brijoy On win7 if I add a null user password and turn everything off (printing commenting etc) it will NOT show the toolbars when inside browser... john renfrew From: Leonard Rosenthol [mailto:lrose...@adobe.commailto:lrose...@adobe.com] Sent: 09 December 2011 17:11 To: Post here Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. Message: 1 Date: Fri, 9 Dec 2011 09:10:52 -0800 From: Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Message-ID: cb077f07.126b5%lrose...@adobe.commailto:cb077f07.126b5%25lrose...@adobe.com Content-Type: text/plain; charset=us-ascii Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. From: Brijoy Janardhanan bri...@gmail.commailto:bri...@gmail.commailto:bri...@gmail.commailto:bri...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 9 Dec 2011 07:56:34 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] Question on hiding toolbar in Adobe X Hello We are using iText 2.1.2 jar for our project. Issue we are facing is we are not able to hide the toolbar in the Adobe Reader 10 version. The code works well for Adobe 9 and lower version to hide the toolbar and menubar. Right now in Adobe X, the toolbar is enabled and allows the customer to save the pdf to local desktop. This should not happen. Can you suggest a way ? Snapshot of code: com.lowagie.text.Document document =null; reader = new PdfReader(outByte); if (reader.isEncrypted()) { reader = new PdfReader(outByte, test.getBytes()); } int totalPages = reader.getNumberOfPages(); PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName)); copy.setViewerPreferences(PdfWriter.HideMenubar); copy.setViewerPreferences(PdfWriter.HideToolbar); copy.setEncryption(null, test.getBytes(), PdfWriter.ALLOW_MODIFY_CONTENTS, PdfWriter.ENCRYPTION_AES_128); document.open(); -- Regards Brijoy -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http
Re: [iText-questions] Question on hiding toolbar(disable save and print button) in Adobe X using iText
Brijoy, For the save button I have no idea, but the print button can be disabled with a trick. In Acrobat one can create objects that are 'not visible but printable' (I'm sure iText can manipulate these properties as well). What we did to avoid users using the print button in the toolbar was to create a rectangle with the above mentioned properties and sized this rectangle to encompass the whole page/pages. This rectangle also contained a text like Printing this documnet is not allowed. When the user pressed the print button nothing on the printed page was visible but this warning message. The nice thing is that you can control when and how this 'print guard' kicks in by setting its printable property to true or false (we used this with acroforms to force users using our custom print button that also validated field contents before printing). Best regards, Dániel Kékesi http://www.kekesi.com On 2011.12.16. 22:27, Brijoy Janardhanan wrote: Hello We badly need a solution. We cannot want to introduce a new logic to handle pdf and confuse the users. Right now in all versions of pdf the itext has an option to disable the tool bar option, which will allow the users not to save the sensitive information to the desktop. In Adobe X it created a issue, by highlighting the toolbar option and makes the iText code not to work. Can somebody help me out and give a feasible solution? Thanks Brijoy ---== Message: 2 Date: Fri, 9 Dec 2011 17:48:02 - From: John Renfrew r...@btclick.com mailto:r...@btclick.com Subject: [iText-questions] FW: Question on hiding toolbar in Adobe X To: 'Post all your questions about iText here' itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.net Message-ID: 012d01ccb69a$b308a9d0$1919fd70$@com Content-Type: text/plain; charset=us-ascii Leonard, Brijoy On win7 if I add a null user password and turn everything off (printing commenting etc) it will NOT show the toolbars when inside browser... john renfrew From: Leonard Rosenthol [mailto:lrose...@adobe.com mailto:lrose...@adobe.com] Sent: 09 December 2011 17:11 To: Post here Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. Message: 1 Date: Fri, 9 Dec 2011 09:10:52 -0800 From: Leonard Rosenthol lrose...@adobe.com mailto:lrose...@adobe.com Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X To: Post here itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.net Message-ID: cb077f07.126b5%lrose...@adobe.com mailto:cb077f07.126b5%25lrose...@adobe.com Content-Type: text/plain; charset=us-ascii Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. From: Brijoy Janardhanan bri...@gmail.com mailto:bri...@gmail.commailto:bri...@gmail.com mailto:bri...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.net Date: Fri, 9 Dec 2011 07:56:34 -0800 To: Post here itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net mailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] Question on hiding toolbar in Adobe X Hello We are using iText 2.1.2 jar for our project. Issue we are facing is we are not able to hide the toolbar in the Adobe Reader 10 version. The code works well for Adobe 9 and lower version to hide the toolbar and menubar. Right now in Adobe X, the toolbar is enabled and allows the customer to save the pdf to local desktop. This should not happen. Can you suggest a way ? Snapshot of code: com.lowagie.text.Document document =null; reader = new PdfReader(outByte); if (reader.isEncrypted()) { reader = new PdfReader(outByte, test.getBytes()); } int totalPages = reader.getNumberOfPages(); PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName)); copy.setViewerPreferences(PdfWriter.HideMenubar); copy.setViewerPreferences(PdfWriter.HideToolbar); copy.setEncryption(null, test.getBytes(), PdfWriter.ALLOW_MODIFY_CONTENTS, PdfWriter.ENCRYPTION_AES_128); document.open(); -- Regards Brijoy -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend
[iText-questions] Question on hiding toolbar(disable save and print button) in Adobe X using iText
Hello We badly need a solution. We cannot want to introduce a new logic to handle pdf and confuse the users. Right now in all versions of pdf the itext has an option to disable the tool bar option, which will allow the users not to save the sensitive information to the desktop. In Adobe X it created a issue, by highlighting the toolbar option and makes the iText code not to work. Can somebody help me out and give a feasible solution? Thanks Brijoy ---== Message: 2 Date: Fri, 9 Dec 2011 17:48:02 - From: John Renfrew r...@btclick.com Subject: [iText-questions] FW: Question on hiding toolbar in Adobe X To: 'Post all your questions about iText here' itext-questions@lists.sourceforge.net Message-ID: 012d01ccb69a$b308a9d0$1919fd70$@com Content-Type: text/plain; charset=us-ascii Leonard, Brijoy On win7 if I add a null user password and turn everything off (printing commenting etc) it will NOT show the toolbars when inside browser... john renfrew From: Leonard Rosenthol [mailto:lrose...@adobe.com] Sent: 09 December 2011 17:11 To: Post here Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. Message: 1 Date: Fri, 9 Dec 2011 09:10:52 -0800 From: Leonard Rosenthol lrose...@adobe.com Subject: Re: [iText-questions] Question on hiding toolbar in Adobe X To: Post here itext-questions@lists.sourceforge.net Message-ID: cb077f07.126b5%lrose...@adobe.com Content-Type: text/plain; charset=us-ascii Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. From: Brijoy Janardhanan bri...@gmail.commailto:bri...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext -questi...@lists.sourceforge.net Date: Fri, 9 Dec 2011 07:56:34 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext -questi...@lists.sourceforge.net Subject: [iText-questions] Question on hiding toolbar in Adobe X Hello We are using iText 2.1.2 jar for our project. Issue we are facing is we are not able to hide the toolbar in the Adobe Reader 10 version. The code works well for Adobe 9 and lower version to hide the toolbar and menubar. Right now in Adobe X, the toolbar is enabled and allows the customer to save the pdf to local desktop. This should not happen. Can you suggest a way ? Snapshot of code: com.lowagie.text.Document document =null; reader = new PdfReader(outByte); if (reader.isEncrypted()) { reader = new PdfReader(outByte, test.getBytes()); } int totalPages = reader.getNumberOfPages(); PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName)); copy.setViewerPreferences(PdfWriter.HideMenubar); copy.setViewerPreferences(PdfWriter.HideToolbar); copy.setEncryption(null, test.getBytes(), PdfWriter.ALLOW_MODIFY_CONTENTS, PdfWriter.ENCRYPTION_AES_128); document.open(); -- Regards Brijoy -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question on hiding toolbar in Adobe X
Hello We are using iText 2.1.2 jar for our project. Issue we are facing is we are not able to hide the toolbar in the Adobe Reader 10 version. The code works well for Adobe 9 and lower version to hide the toolbar and menubar. Right now in Adobe X, the toolbar is enabled and allows the customer to save the pdf to local desktop. This should not happen. Can you suggest a way ? Snapshot of code: com.lowagie.text.Document document =null; reader = new PdfReader(outByte); if (reader.isEncrypted()) { reader = new PdfReader(outByte, test.getBytes()); } int totalPages = reader.getNumberOfPages(); PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName)); copy.setViewerPreferences(PdfWriter.HideMenubar); copy.setViewerPreferences(PdfWriter.HideToolbar); copy.setEncryption(null, test.getBytes(), PdfWriter.ALLOW_MODIFY_CONTENTS, PdfWriter.ENCRYPTION_AES_128); document.open(); -- -- Regards Brijoy -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question on hiding toolbar in Adobe X
Hiding the toolbar was never the way to prevent saving - you just avoided the real problem. And yes, there is no way to hide the toolbar (or the HUD) in the browser. From: Brijoy Janardhanan bri...@gmail.commailto:bri...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 9 Dec 2011 07:56:34 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] Question on hiding toolbar in Adobe X Hello We are using iText 2.1.2 jar for our project. Issue we are facing is we are not able to hide the toolbar in the Adobe Reader 10 version. The code works well for Adobe 9 and lower version to hide the toolbar and menubar. Right now in Adobe X, the toolbar is enabled and allows the customer to save the pdf to local desktop. This should not happen. Can you suggest a way ? Snapshot of code: com.lowagie.text.Document document =null; reader = new PdfReader(outByte); if (reader.isEncrypted()) { reader = new PdfReader(outByte, test.getBytes()); } int totalPages = reader.getNumberOfPages(); PdfCopy copy = new PdfCopy(document, new FileOutputStream(fileName)); copy.setViewerPreferences(PdfWriter.HideMenubar); copy.setViewerPreferences(PdfWriter.HideToolbar); copy.setEncryption(null, test.getBytes(), PdfWriter.ALLOW_MODIFY_CONTENTS, PdfWriter.ENCRYPTION_AES_128); document.open(); -- -- Regards Brijoy -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question - How can i change the row height
Hello, i have a Pdftable with 5 rows. Now i will change the height for the 5. row. It is possible to change the height after table.addCell() ? I need a solution to change the heigth after the table.addCell - Methode. I have used to set the heigts with then following Statements: table.Rows(4).MaxHeights = table.Rows(4).MaxHeights + diff table.Rows(4).GetCells(0).MinimumHeight = table.Rows(MaxRow).MaxHeights table.Rows(4).GetCells(1).MinimumHeight = table.Rows(MaxRow).MaxHeights table.Rows(4).SetExtraHeight(0, table.Rows(4).MaxHeights) table.Rows(4).SetExtraHeight(1, table.Rows(4).MaxHeights) table.Rows(4).GetCells(0).FixedHeight = table.Rows(4).MaxHeights table.Rows(4).GetCells(1).FixedHeight = table.Rows(4).MaxHeights But this statement has not effect. Please help me. thx Formularbeginn Formularende -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about barcode 93
Dear Support, We are interested in PDF and barcodes creation using iText. However we need to make sure if barcode API supports type 93. There’s nothing about this standard in API’s documentation. Thank you in advance for clarifying this. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about barcode 93
On 22/11/2011 20:04, Jan Przybylo wrote: Dear Support, We are interested in PDF and barcodes creation using iText. However we need to make sure if barcode API supports type 93. There's nothing about this standard in API's documentation. Thank you in advance for clarifying this. Barcode 39 is supported in iText, and barcode 93 is an enhancement of that type of barcode. AFAIK, barcode 93 isn't supported yet, but you could sponsor the development of that functionality the same way other companies sponsored the development of other types of barcodes. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
Hi guys and thanks. I was thinking that maybe we could extract only a section of a page... So, if one bookmark represents the start of the section I want to extract, I can get the start point of the extraction. Then, maybe the next bookmark can be the end of the area I want to extract... Would not that be easily feasible ? And then I only need to extract from my start point to the end point If one of you has got a code, please, that would be very helpful! cheers David 2011/11/10 Leonard Rosenthol lrose...@adobe.com 1) Bookmarks in a PDF do NOT HAVE TO be associated with content – they can refer to any Action as well. 2) Bookmarks that do point to content, normally only point to the START of the content – there is no END. 3) UNLESS the PDF is tagged and structured properly, and the bookmarks are connected to that structure. IN THAT ONE CASE, then you have the actual content per bookmark. Unfortunately, the number of PDFs that meet all three criteria is almost 0 :(. Leonard From: david guede guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.net Date: Wed, 9 Nov 2011 04:16:26 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: [iText-questions] question about extracting text with itext Hi everybody, I have never used iText and need to manipulate contents from pdf files. Basically, I have got one pdf file called sample.pdf In this file, I have got some bookmarks (corresponding to the sections of my file). This can be an example : Sample.pdf SAMPLE 1 Introduction 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi 2 Section1 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Of course this a very simplified example of the pdf file I need to work with... My question is very simple, is there any way to extract the text for each bookmark to .txt file ? For example, with my example, I would like to create 6 .txt file: Introduction.txt 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi IntroductionPart1.txt blablablablablablablabla IntroductionPart2.txt blibliblibliblibliblibliblibliblibliblibi Section1.txt 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Section1Part1.txt blublublublublublublublbu Section1Part2.txt blobloblobloblo If so, could you please send me an example or tell me where I could find one... Thanks in adavnce David -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
David – I think you need to do a bit of reading on the PDF format… When I said start, I didn't mean that it pointed to the first word/paragraph/header – I meant that it pointed to a page. It might even point to a physical location on the page, but for most PDF files, it won't actually connect to the content. It is POSSIBLE to have it connect to content, but unfortunately most PDFs do not :(. As far as using the next bookmark for the end - in addition to the above problems, you'd be ASSUMING a very specific setup for the bookmarks. And most documents probably use a different structure. Leonard From: david guede guede.da...@gmail.commailto:guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Fri, 11 Nov 2011 08:32:06 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] question about extracting text with itext Hi guys and thanks. I was thinking that maybe we could extract only a section of a page... So, if one bookmark represents the start of the section I want to extract, I can get the start point of the extraction. Then, maybe the next bookmark can be the end of the area I want to extract... Would not that be easily feasible ? And then I only need to extract from my start point to the end point If one of you has got a code, please, that would be very helpful! cheers David 2011/11/10 Leonard Rosenthol lrose...@adobe.commailto:lrose...@adobe.com 1) Bookmarks in a PDF do NOT HAVE TO be associated with content – they can refer to any Action as well. 2) Bookmarks that do point to content, normally only point to the START of the content – there is no END. 3) UNLESS the PDF is tagged and structured properly, and the bookmarks are connected to that structure. IN THAT ONE CASE, then you have the actual content per bookmark. Unfortunately, the number of PDFs that meet all three criteria is almost 0 :(. Leonard From: david guede guede.da...@gmail.commailto:guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Wed, 9 Nov 2011 04:16:26 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] question about extracting text with itext Hi everybody, I have never used iText and need to manipulate contents from pdf files. Basically, I have got one pdf file called sample.pdf In this file, I have got some bookmarks (corresponding to the sections of my file). This can be an example : Sample.pdf SAMPLE 1 Introduction 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi 2 Section1 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Of course this a very simplified example of the pdf file I need to work with... My question is very simple, is there any way to extract the text for each bookmark to .txt file ? For example, with my example, I would like to create 6 .txt file: Introduction.txt 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi IntroductionPart1.txt blablablablablablablabla IntroductionPart2.txt blibliblibliblibliblibliblibliblibliblibi Section1.txt 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Section1Part1.txt blublublublublublublublbu Section1Part2.txt blobloblobloblo If so, could you please send me an example or tell me where I could find one... Thanks in adavnce David -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.netmailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes
Re: [iText-questions] question about extracting text with itext
Hi Leaonard, I am not sure I am getting your answer... OK, I understand that the bookmark is probably not connected to the content... no problem with this. But, the bookmark is somewhere on the page and therefore I cn probably get the coordinate of the first letter of the first word for each bookmark (like an X/Y coordinate in the page), right ? Or evan if it is not possible to get the coordinate of a bookmark, I can probably get the title of it and then look for the coordinate of the title in the page and finally get the X/Y coordinates... Am I clear ? I know that some other lib permit to extract rectangles maybe iText too.. If so, I can therefore set an area (a rectangle) to extract text between 2 coordinates I got... Is that totally wrong ? David 2011/11/11 Leonard Rosenthol lrose...@adobe.com David – I think you need to do a bit of reading on the PDF format… When I said start, I didn't mean that it pointed to the first word/paragraph/header – I meant that it pointed to a page. It might even point to a physical location on the page, but for most PDF files, it won't actually connect to the content. It is POSSIBLE to have it connect to content, but unfortunately most PDFs do not :(. As far as using the next bookmark for the end - in addition to the above problems, you'd be ASSUMING a very specific setup for the bookmarks. And most documents probably use a different structure. Leonard From: david guede guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.net Date: Fri, 11 Nov 2011 08:32:06 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] question about extracting text with itext Hi guys and thanks. I was thinking that maybe we could extract only a section of a page... So, if one bookmark represents the start of the section I want to extract, I can get the start point of the extraction. Then, maybe the next bookmark can be the end of the area I want to extract... Would not that be easily feasible ? And then I only need to extract from my start point to the end point If one of you has got a code, please, that would be very helpful! cheers David 2011/11/10 Leonard Rosenthol lrose...@adobe.com 1) Bookmarks in a PDF do NOT HAVE TO be associated with content – they can refer to any Action as well. 2) Bookmarks that do point to content, normally only point to the START of the content – there is no END. 3) UNLESS the PDF is tagged and structured properly, and the bookmarks are connected to that structure. IN THAT ONE CASE, then you have the actual content per bookmark. Unfortunately, the number of PDFs that meet all three criteria is almost 0 :(. Leonard From: david guede guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.net Date: Wed, 9 Nov 2011 04:16:26 -0800 To: Post here itext-questions@lists.sourceforge.net Subject: [iText-questions] question about extracting text with itext Hi everybody, I have never used iText and need to manipulate contents from pdf files. Basically, I have got one pdf file called sample.pdf In this file, I have got some bookmarks (corresponding to the sections of my file). This can be an example : Sample.pdf SAMPLE 1 Introduction 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi 2 Section1 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Of course this a very simplified example of the pdf file I need to work with... My question is very simple, is there any way to extract the text for each bookmark to .txt file ? For example, with my example, I would like to create 6 .txt file: Introduction.txt 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi IntroductionPart1.txt blablablablablablablabla IntroductionPart2.txt blibliblibliblibliblibliblibliblibliblibi Section1.txt 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Section1Part1.txt blublublublublublublublbu Section1Part2.txt blobloblobloblo If so, could you please send me an example or tell me where I could find one... Thanks in adavnce David -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
On 11/11/2011 18:00, david guede wrote: OK, I understand that the bookmark is probably not connected to the content... no problem with this. But, the bookmark is somewhere on the page and therefore I cn probably get the coordinate of the first letter of the first word for each bookmark (like an X/Y coordinate in the page), right ? That assumption is wrong in many, many cases. Or evan if it is not possible to get the coordinate of a bookmark, I can probably get the title of it Please define bookmark. iText is able to export bookmarks (aka the Outline tree) to an XML file. For instance, if you have this PDF: http://examples.itextpdf.com/results/part2/chapter07/outline_tree.pdf The resulting XML file can look like this: http://examples.itextpdf.com/results/part2/chapter07/outline_tree.xml As Leonard has been trying to explain (but you're not really listening), not all bookmarks refer to a coordinate. This is a case where iText gives you the coordinate AND the title: Title Action=GoTo Style=bold Page=1 FitH 8062001: A Space Odyssey/Title On page 1 at the vertical position 806, there's a bookmark with title 2001: A Space Odyssey But these are bookmarks that don't refer to a coordinate on the page: Title Action=URI Color=0 0 1 URI=http://imdb.com/title/tt0423866/;link to IMDB/Title Title Action=JS Code=app.alert('Movie produced in 1968; run length: 141');instant info/Title The bookmark with title link to IMDB is actually a link to a web site. The bookmark with title instant info is a snippet of JavaScript code. and then look for the coordinate of the title in the page and finally get the X/Y coordinates... Am I clear ? I fear we're talking about totally different things. I know that some other lib permit to extract rectangles maybe iText too. Yes, iText can do that too, but: (1) why would you do that if the bookmark already has a title? (2) what are you going to do if there is no coordinate? If so, I can therefore set an area (a rectangle) to extract text between 2 coordinates I got... Is that totally wrong ? It's always a good idea to read some documentation before asking questions. If you ask half a question, you'll only get half an answer. That may be frustrating for you, but it's even more frustrating for those who answer. Once you've read the documentation, you'll be able to ask accurate questions that can be answered in a more accurate way. -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
Thanks a lot both, I am going to have a look at your examples and read more documentation (even if I already did...). Then, I will come back with more precise questions. David 2011/11/11 1T3XT BVBA i...@1t3xt.info On 11/11/2011 18:00, david guede wrote: OK, I understand that the bookmark is probably not connected to the content... no problem with this. But, the bookmark is somewhere on the page and therefore I cn probably get the coordinate of the first letter of the first word for each bookmark (like an X/Y coordinate in the page), right ? That assumption is wrong in many, many cases. Or evan if it is not possible to get the coordinate of a bookmark, I can probably get the title of it Please define bookmark. iText is able to export bookmarks (aka the Outline tree) to an XML file. For instance, if you have this PDF: http://examples.itextpdf.com/results/part2/chapter07/outline_tree.pdf The resulting XML file can look like this: http://examples.itextpdf.com/results/part2/chapter07/outline_tree.xml As Leonard has been trying to explain (but you're not really listening), not all bookmarks refer to a coordinate. This is a case where iText gives you the coordinate AND the title: Title Action=GoTo Style=bold Page=1 FitH 8062001: A Space Odyssey/Title On page 1 at the vertical position 806, there's a bookmark with title 2001: A Space Odyssey But these are bookmarks that don't refer to a coordinate on the page: Title Action=URI Color=0 0 1 URI=http://imdb.com/title/tt0423866/;link to IMDB/Title Title Action=JS Code=app.alert('Movie produced in 1968; run length: 141');instant info/Title The bookmark with title link to IMDB is actually a link to a web site. The bookmark with title instant info is a snippet of JavaScript code. and then look for the coordinate of the title in the page and finally get the X/Y coordinates... Am I clear ? I fear we're talking about totally different things. I know that some other lib permit to extract rectangles maybe iText too. Yes, iText can do that too, but: (1) why would you do that if the bookmark already has a title? (2) what are you going to do if there is no coordinate? If so, I can therefore set an area (a rectangle) to extract text between 2 coordinates I got... Is that totally wrong ? It's always a good idea to read some documentation before asking questions. If you ask half a question, you'll only get half an answer. That may be frustrating for you, but it's even more frustrating for those who answer. Once you've read the documentation, you'll be able to ask accurate questions that can be answered in a more accurate way. -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about extracting text with itext
Hi everybody, I have never used iText and need to manipulate contents from pdf files. Basically, I have got one pdf file called sample.pdf In this file, I have got some bookmarks (corresponding to the sections of my file). This can be an example : Sample.pdf SAMPLE 1 Introduction 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi 2 Section1 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Of course this a very simplified example of the pdf file I need to work with... My question is very simple, is there any way to extract the text for each bookmark to .txt file ? For example, with my example, I would like to create 6 .txt file: Introduction.txt 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi IntroductionPart1.txt blablablablablablablabla IntroductionPart2.txt blibliblibliblibliblibliblibliblibliblibi Section1.txt 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Section1Part1.txt blublublublublublublublbu Section1Part2.txt blobloblobloblo If so, could you please send me an example or tell me where I could find one... Thanks in adavnce David -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
On 9/11/2011 13:16, david guede wrote: If so, could you please send me an example or tell me where I could find one. Read iText in Action - Second Edition, section 7.2.2 Retrieving bookmarks from an existing document. -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
Thanks, but I do not have the book and before buying the book, I want to have a go with iText ti be totally sure to choose the right java lib for my purpose... Can you just send me an example ? I am planning to use the free java version of iText Thanks in adavance David 2011/11/9 1T3XT BVBA i...@1t3xt.info On 9/11/2011 13:16, david guede wrote: If so, could you please send me an example or tell me where I could find one. Read iText in Action - Second Edition, section 7.2.2 Retrieving bookmarks from an existing document. -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
On 9/11/2011 14:51, david guede wrote: Can you just send me an example ? Just go to the book page: http://itextpdf.com/book/ I am planning to use the free java version of iText This means that you're going to publish your own source code under the AGPL too. Please let us know when where you've put the code when you've finished your project, so that others can benefit from your work (just as you benefit from ours). -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
David- There are many examples of code using iText - do some quick google searches for itext bookmarks and you'll find them. - K -- View this message in context: http://itext-general.2136553.n4.nabble.com/question-about-extracting-text-with-itext-tp4019583p4019884.html Sent from the iText - General mailing list archive at Nabble.com. -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about extracting text with itext
1) Bookmarks in a PDF do NOT HAVE TO be associated with content – they can refer to any Action as well. 2) Bookmarks that do point to content, normally only point to the START of the content – there is no END. 3) UNLESS the PDF is tagged and structured properly, and the bookmarks are connected to that structure. IN THAT ONE CASE, then you have the actual content per bookmark. Unfortunately, the number of PDFs that meet all three criteria is almost 0 :(. Leonard From: david guede guede.da...@gmail.commailto:guede.da...@gmail.com Reply-To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Date: Wed, 9 Nov 2011 04:16:26 -0800 To: Post here itext-questions@lists.sourceforge.netmailto:itext-questions@lists.sourceforge.net Subject: [iText-questions] question about extracting text with itext Hi everybody, I have never used iText and need to manipulate contents from pdf files. Basically, I have got one pdf file called sample.pdf In this file, I have got some bookmarks (corresponding to the sections of my file). This can be an example : Sample.pdf SAMPLE 1 Introduction 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi 2 Section1 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Of course this a very simplified example of the pdf file I need to work with... My question is very simple, is there any way to extract the text for each bookmark to .txt file ? For example, with my example, I would like to create 6 .txt file: Introduction.txt 1.1 IntroductionPart1 blablablablablablablabla 1.2 IntroductionPart2 blibliblibliblibliblibliblibliblibliblibi IntroductionPart1.txt blablablablablablablabla IntroductionPart2.txt blibliblibliblibliblibliblibliblibliblibi Section1.txt 2.1 Section1Part1 blublublublublublublublbu 2.2 Section1Part2 blobloblobloblo Section1Part1.txt blublublublublublublublbu Section1Part2.txt blobloblobloblo If so, could you please send me an example or tell me where I could find one... Thanks in adavnce David -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question regarding itext for c#
Hi, I am trying to create a barcode for type code 128 using C#. I was looking at your website for examples that supports c#. Can you provide me some examples or send me the right link where I can find one. Thanks Bavitha Govindarajulu GiftCertificates.com Lead, Internet Software Development 11510 Blondo St. Omaha 402-951-4113 -- The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about Rtf files
Hello there, i know that the rtf is not supported anymore but i hope you could help me with a (i hope) easy problem (espacially for you ;) ). I want to convert a RTF File into a PDF File in a very easy Java program. My program should be used as a jar (or runable jar) just to take the rtf-File and create a pdf-File after that delete the rtf and a Enterprise Application Server will take this file and send it to the destinations. Problem is i'll got the same NullPointerException: I hope you would help me. Thanks, Best Regards Bernhard Heres the Exception: Exception in thread main java.lang.NullPointerException at com.lowagie.text.rtf.parser.destinations.RtfDestinationFontTable.importSystemFonts(Unknown Source) at com.lowagie.text.rtf.parser.destinations.RtfDestinationFontTable.init(Unknown Source) at com.lowagie.text.rtf.parser.destinations.RtfDestinationFontTable.setParser(Unknown Source) at com.lowagie.text.rtf.parser.destinations.RtfDestinationMgr.addDestination(Unknown Source) at com.lowagie.text.rtf.parser.ctrlwords.RtfCtrlWordHandler.init(Unknown Source) at com.lowagie.text.rtf.parser.ctrlwords.RtfCtrlWordMap.init(Unknown Source) at com.lowagie.text.rtf.parser.ctrlwords.RtfCtrlWordMgr.init(Unknown Source) at com.lowagie.text.rtf.parser.RtfParser.init(Unknown Source) at com.lowagie.text.rtf.parser.RtfParser.convertRtfDocument(Unknown Source) at at.xtention.converter.RtfToPdfConverter.rtftopdf(RtfToPdfConverter.java:59) at at.xtention.converter.RtfToPdfConverter.main(RtfToPdfConverter.java:34) Heres the Source-Code: package at.xtention.converter; import com.lowagie.text.Document; import com.lowagie.text.pdf.PdfWriter; import com.lowagie.text.rtf.parser.RtfParser; import com.lowagie.text.DocumentException; import com.lowagie.text.PageSize; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.File; public class RtfToPdfConverter { public String dirname = E:\\Program Files\\eclipse\\##TEST##\\; public String filename = Out\\PdfResult_ + (new java.util.Date()).getTime() + .pdf; public String filename_rtf = In\\in.rtf; /** * @param args */ public RtfToPdfConverter() { init(); } private void init(){ filename = Out\\PdfResult_ + (new java.util.Date()).getTime() + .pdf; filename_rtf = In\\in.rtf; } public static void main(String[] args) { RtfToPdfConverter rtf = new RtfToPdfConverter(); rtf.rtftopdf(, ); } public void rtftopdf(String rtfPath, String pdfPath){ String dirname_pdf = dirname + filename; String dirname_rtf = dirname + filename_rtf; if(rtfPath != null !rtfPath.trim().equals()){ dirname_rtf = rtfPath; } if(pdfPath != null !rtfPath.trim().equals()){ dirname_pdf = pdfPath; } File rtf_file = new File(dirname_rtf ); System.out.println(Path rtf: + dirname_rtf ); Document doc = new Document( PageSize.A4, 50, 50, 50, 50 ); System.out.println( Path pdf: + dirname_pdf ); PdfWriter writer = null; try { writer = PdfWriter.getInstance( doc, new FileOutputStream( dirname_pdf ) ); RtfParser pars = new RtfParser(new Document(PageSize.A4)); doc.addAuthor( XT-Converter ); doc.open(); FileInputStream rtf_fin = new FileInputStream( rtf_file ); if (rtf_fin != null doc != null) { pars.convertRtfDocument( rtf_fin, doc ); } // doc.add( new Paragraph( new String (byteMessage))); doc.close(); System.out.println( finished parsing ); } catch ( DocumentException e ) { System.out.println( DocumentException!); System.err.println(e); } catch ( FileNotFoundException e ) { System.out.println( FileNotFoundException! ); System.err.println(e); } catch ( IOException e ) { System.out.println( IOException!); System.err.println(e); } } } -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the
Re: [iText-questions] Question about iText PDF and RTF.
Me Myself and I stargate7thsymbol at live.co.uk writes: old RTF implementation questions.I am trying to get hold of the java .jar file (and any further jars required)for the most recent, up to date version of the java iText liibrarywhich was/is entirely open source and did not have any requirementat all for remuneration to iText if leveraged in a commercial development context.I had been of the impression that the version I wanted was 2.17, itext-2.1.7.jarwhich was non-payment available for use in commercial projectsthat leverage the library.I have hit a problem: that the RTF contents and implementationcode doesn't seem to exist at all in this file.For example, com.lowagie.text.rtf.parser.RtfParserclass doesn't exist at all. My javadocs for this tell me that the class file ofthis was first available in version 2.08.So, does the present iText lib support a non renumeration model option(ie is it not dual licensed, requiring a commercial license in a commercial context)? -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ iText-questions mailing list iText-questions at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about iText PDF and RTF.
On 8/09/2011 9:58, Horst Wetzel wrote: Me Myself and Istargate7thsymbolat live.co.uk writes: old RTF implementation questions. Hello Horst, I didn't see any new info in your answer to Zachary's question. Zachary (aka Me, Myself and I) makes two assumptions that are wrong: - itext 2.1.7 was non-payment: that is not true. In the past companies have bought a commercial license because they wanted to be released from the requirements of the F/OSS license. - he expects to get help about RTF parser. RTF parsing functionality was never finished and was abandoned by its developer (who wasn't afiliated with any of the iText companies at all). Currently, I don't know anybody who is willing to offer RTF support for any iText library. Zachary used to be blacklisted because of misbehavior on the mailing list in 2010. He apologized and his account was restored. Unfortunately, he still confuses free software with gratis software, spreading misconceptions about the nature of open source as a business model. We think that, in spite of the fact that he has contacted sales more than once, he's not interested in doing business with us at all. -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about iText PDF and RTF.
On Thu, September 8, 2011 10:40, Bruno Lowagie wrote: On 8/09/2011 9:58, Horst Wetzel wrote: Me Myself and Istargate7thsymbolat live.co.uk writes: old RTF implementation questions. Hello Horst, I didn't see any new info in your answer to Zachary's question. Zachary (aka Me, Myself and I) makes two assumptions that are wrong: - itext 2.1.7 was non-payment: that is not true. In the past companies have bought a commercial license because they wanted to be released from the requirements of the F/OSS license. - he expects to get help about RTF parser. RTF parsing functionality was never finished and was abandoned by its developer (who wasn't afiliated with any of the iText companies at all). Currently, I don't know anybody who is willing to offer RTF support for any iText library. My version of Google tells me that there are plenty of RTF to XML parsers available, some of them with a commercial-compatible F/OSS licence, some even written in Java. I suggest that Zachary investigates that path first, and once he has parsed his RTF into XML, he can use iText to create a PDF. I don't see a problem with using two different libraries to solve two different problems. -- Amedee Van Gasse -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about iText PDF and RTF.
old RTF implementation questions. I am trying to get hold of the java .jar file (and any further jars required) for the most recent, up to date version of the java iText liibrary which was/is entirely open source and did not have any requirement at all for remuneration to iText if leveraged in a commercial development context. I had been of the impression that the version I wanted was 2.17, itext-2.1.7.jar which was non-payment available for use in commercial projects that leverage the library. I have hit a problem: that the RTF contents and implementation code doesn't seem to exist at all in this file. For example, com.lowagie.text.rtf.parser.RtfParser class doesn't exist at all. My javadocs for this tell me that the class file of this was first available in version 2.08. So, does the present iText lib support a non renumeration model option (ie is it not dual licensed, requiring a commercial license in a commercial context)? -- Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question regd. chapters 8 9
Hi, Was trying out the examples in chapters 8 and 9 related to acroforms. Where do i enter the url for the servlet to which the form submits the url when clicked/ especially when creating the form using openoffice? also would such a form be concatenatable with regular pdf ? is there a setvisible method to hide specific pages in a pdf or how would I call it a Document open, say in javascript? thanks -- uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question on PdfPTable inside a numbered list item
Hi, I have two tables inside a numbered list item like below: some text html table 1 some more text... html table 2 After I convert to pdf I get in the pdf as follows: html table 1 html table 2 some text some more text... The code I used is as follows. Since the table tags are somehow stripped off I track the first tr and last tr tags and so on. The adddTable method creates the PdfPTable and adds the rows to that tabele and returns the list of such tables. publicvoidaddTableInList(PdfParseContext pdfCtx) {//text before first tr tag needs to be cleaned// and if very first time create new ListItem // or else add to existing ListIteminttrStartPos = lisCont.indexOf(tr);inttrEndPos = lisCont.lastIndexOf(/tr);// add content before table to listString bef = lisCont.substring(0, trStartPos);ListItem lItem = newListItem(Phrase.getInstance(bef));// add table to listString tableStr = lisCont.substring(trStartPos, trEndPos+5); ArrayList list = addTable(pdfCtx, tableStr, getFont(), lItem.add((PdfPTable)list.get(m)); }null, true);for(intm=0; m list.size(); m++) {// add content after table to listString lastPart = lisCont.substring(trEndPos+5);if(lisCont.length() trEndPos+5) {lItem.add(Phrase.getInstance(lastPart)); } pdfCtx.addListItem(lItem); pdfCtx.setListItemPhrase( } Please let me know how to fix the issue. Thanks - murali newPhrase());-- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question on PdfPTable inside a numbered list item
On 27/05/2011 20:19, Murali Ramaswamy wrote: Hi, I have two tables inside a numbered list item like below: Hello, I've tested this snippet on http://demo.itextsupport.com/xmlworker/ pHello, this is a test/p ul liThis is a list, but: it has a table: table tbody trthkey/ththvalue/th/tr tr tdName/td tdJohn Doe/td /tr tr tdAge/td tdUnknown/td /tr /tbody /table /li liLook! There's another table here:/li li table tbody trthkey/ththvalue/th/tr tr tdName/td tdJohn Doe/td /tr tr tdAge/td tdUnknown/td /tr /tbody /table /li /ul It was rendered to PDF correctly. See attachment. Please test your own HTML snippet on http://demo.itextsupport.com/xmlworker/ and if it doesn't look as expected, please explain what is wrong. 6073416137993300836.pdf Description: Adobe PDF document -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question on multiple PdfPtable as part of a numbered list item
Please provide a working standalone example that show your problem, we don't know what happens in other parts of your code. We cannot guess what e.g. PdfParseContext does On 27/05/2011 20:26, Murali Ramaswamy wrote: Hi, I have two tables inside a numbered list item like below: some text html table 1 some more text... html table 2 After I convert to pdf I get in the pdf as follows: html table 1 html table 2 some text some more text... The code I used is as follows. Since the table tags are somehow stripped off I track the first tr and last tr tags and so on. The adddTable method creates the PdfPTable and adds the rows to that tabele and returns the list of such tables. ** *public**void*addTableInList(PdfParseContext pdfCtx) { //text before first _tr_ tag needs to be cleaned // and if very first time create new ListItem // or else add to existing ListItem *int*trStartPos = lisCont.indexOf(tr); *int*trEndPos = lisCont.lastIndexOf(/tr); // add content before table to list String bef = lisCont.substring(0, trStartPos); ListItem lItem = *new*ListItem(Phrase./getInstance/(bef)); // add table to list String tableStr = lisCont.substring(trStartPos, trEndPos+5); _ArrayList_ list = addTable(pdfCtx, tableStr, getFont(), *null*, *true*); *for*(*int*m=0; m list.size(); m++) { lItem.add((PdfPTable)list.get(m)); } // add content after table to list *if*(lisCont.length() trEndPos+5) { String lastPart = lisCont.substring(trEndPos+5); lItem.add(Phrase./getInstance/(lastPart)); } pdfCtx.addListItem(lItem); pdfCtx.setListItemPhrase(*new*Phrase()); } Please let me know how to fix the issue. Thanks - murali -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- @redlabbe http://twitter.com/redlabbe redlab-log http://www.redlab.be/blog -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question on multiple PdfPtable as part of a numbered list item
Hi, I have two tables inside a numbered list item like below: some text html table 1 some more text... html table 2 After I convert to pdf I get in the pdf as follows: html table 1 html table 2 some text some more text... The code I used is as follows. Since the table tags are somehow stripped off I track the first tr and last tr tags and so on. The adddTable method creates the PdfPTable and adds the rows to that tabele and returns the list of such tables. publicvoidaddTableInList(PdfParseContext pdfCtx) {//text before first tr tag needs to be cleaned// and if very first time create new ListItem // or else add to existing ListIteminttrStartPos = lisCont.indexOf(tr);inttrEndPos = lisCont.lastIndexOf(/tr);// add content before table to listString bef = lisCont.substring(0, trStartPos);ListItem lItem = newListItem(Phrase.getInstance(bef));// add table to listString tableStr = lisCont.substring(trStartPos, trEndPos+5); ArrayList list = addTable(pdfCtx, tableStr, getFont(), lItem.add((PdfPTable)list.get(m)); }null, true);for(intm=0; m list.size(); m++) {// add content after table to listString lastPart = lisCont.substring(trEndPos+5);if(lisCont.length() trEndPos+5) {lItem.add(Phrase.getInstance(lastPart)); } pdfCtx.addListItem(lItem); pdfCtx.setListItemPhrase( } Please let me know how to fix the issue. Thanks - murali newPhrase());-- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about adding a table to the document
On PdfPTable you can call add(), in add you can put a PdfPCell and a PdfPCell can contain a PdfPTable. maybe you could also directly do pdfPtable.add(otherPdfPTable) On 11/04/2011 22:59, King Goldman wrote: Outer table and nest two tables? I have no clue about this. Can you give me an example? On Mon, Apr 11, 2011 at 3:51 PM, Jason Berk jb...@purdueefcu.com mailto:jb...@purdueefcu.com wrote: I believe you could either use CollumnText or, if you really want to keep it simple with doc.add( ), you’d have to create an outer table, and nest your two tables inside it….then add that outer table to the doc. Don’t forget to make your padding 0 on the outer table. Make sense? *From:*King Goldman [mailto:king.gold...@gmail.com mailto:king.gold...@gmail.com] *Sent:* Monday, April 11, 2011 4:40 PM *To:* Post all your questions about iText here *Subject:* [iText-questions] question about adding a table to the document Hi All, I read about adding the tables to the document in the second edition of the book. But if I were to add a table that first writes to the left half of the document and then writes the data to the second half of the document as shown below, how can I achieve this result. Can somebody guide me? (Please ignore the vertical line after the table on the right) Serial Number Name Rank Serial Number Name Rank 111 Sam 1 124 Nancy 14 112 Tiffany 2 125 Justin 15 113 Dave 3 126 Dennis 16 114 Alex 4 127 Jack 17 115 Pam 5 128 Eric 18 116 Ashley 6 129 Angie 19 117 Peter 7 130 Bob 20 118 Tiffany 8 119 Dave 9 120 Alex 10 121 Pam 11 122 Ashley 12 123 Peter 13 This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent responsible for delivering it to an addressee, you are hereby notified that any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this transmission in error, please notify us by telephoning(765)497-3328 tel:%28765%29497-3328 or returning the email. You are then instructed to delete the information from your computer. Thank you for your cooperation. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ iText-questions mailing list iText-questions@lists.sourceforge.net mailto:iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can
Re: [iText-questions] question about adding a table to the document
Op 11/04/2011 22:39, King Goldman schreef: Hi All, I read about adding the tables to the document in the second edition of the book. But if I were to add a table that first writes to the left half of the document and then writes the data to the second half of the document as shown below, how can I achieve this result. Can somebody guide me? As you have the second edition, please search for figure 4.16: http://www.flickr.com/photos/itextinaction/4329588107/ Read the example that creates the PDF shown in that screen shot, and you have your solution. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about adding a table to the document
Hi All, I read about adding the tables to the document in the second edition of the book. But if I were to add a table that first writes to the left half of the document and then writes the data to the second half of the document as shown below, how can I achieve this result. Can somebody guide me? (Please ignore the vertical line after the table on the right) Serial Number Name Rank Serial Number Name Rank 111 Sam 1 124 Nancy 14 112 Tiffany 2 125 Justin 15 113 Dave 3 126 Dennis 16 114 Alex 4 127 Jack 17 115 Pam 5 128 Eric 18 116 Ashley 6 129 Angie 19 117 Peter 7 130 Bob 20 118 Tiffany 8 119 Dave 9 120 Alex 10 121 Pam 11 122 Ashley 12 123 Peter 13 -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about adding a table to the document
I believe you could either use CollumnText or, if you really want to keep it simple with doc.add( ), you'd have to create an outer table, and nest your two tables inside itthen add that outer table to the doc. Don't forget to make your padding 0 on the outer table. Make sense? From: King Goldman [mailto:king.gold...@gmail.com] Sent: Monday, April 11, 2011 4:40 PM To: Post all your questions about iText here Subject: [iText-questions] question about adding a table to the document Hi All, I read about adding the tables to the document in the second edition of the book. But if I were to add a table that first writes to the left half of the document and then writes the data to the second half of the document as shown below, how can I achieve this result. Can somebody guide me? (Please ignore the vertical line after the table on the right) Serial Number Name Rank Serial Number Name Rank 111 Sam 1 124 Nancy 14 112 Tiffany 2 125 Justin 15 113 Dave 3 126 Dennis 16 114 Alex 4 127 Jack 17 115 Pam 5 128 Eric 18 116 Ashley 6 129 Angie 19 117 Peter 7 130 Bob 20 118 Tiffany 8 119 Dave 9 120 Alex 10 121 Pam 11 122 Ashley 12 123 Peter 13 This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent responsible for delivering it to an addressee, you are hereby notified that any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this transmission in error, please notify us by telephoning (765)497-3328 or returning the email. You are then instructed to delete the information from your computer. Thank you for your cooperation. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] question about adding a table to the document
Outer table and nest two tables? I have no clue about this. Can you give me an example? On Mon, Apr 11, 2011 at 3:51 PM, Jason Berk jb...@purdueefcu.com wrote: I believe you could either use CollumnText or, if you really want to keep it simple with doc.add( ), you’d have to create an outer table, and nest your two tables inside it….then add that outer table to the doc. Don’t forget to make your padding 0 on the outer table. Make sense? *From:* King Goldman [mailto:king.gold...@gmail.com] *Sent:* Monday, April 11, 2011 4:40 PM *To:* Post all your questions about iText here *Subject:* [iText-questions] question about adding a table to the document Hi All, I read about adding the tables to the document in the second edition of the book. But if I were to add a table that first writes to the left half of the document and then writes the data to the second half of the document as shown below, how can I achieve this result. Can somebody guide me? (Please ignore the vertical line after the table on the right) Serial Number Name Rank Serial Number Name Rank 111 Sam 1 124 Nancy 14 112 Tiffany 2 125 Justin 15 113 Dave 3 126 Dennis 16 114 Alex 4 127 Jack 17 115 Pam 5 128 Eric 18 116 Ashley 6 129 Angie 19 117 Peter 7 130 Bob 20 118 Tiffany 8 119 Dave 9 120 Alex 10 121 Pam 11 122 Ashley 12 123 Peter 13 This is a transmission from Purdue Federal Credit Union (Purdue Federal) and is intended solely for its authorized recipient(s), and may contain information that is confidential and or legally privileged. If you are not an addressee, or the employee or agent responsible for delivering it to an addressee, you are hereby notified that any use, dissemination, distribution, publication or copying of the information contained in this email is strictly prohibited. If you have received this transmission in error, please notify us by telephoning (765)497-3328 or returning the email. You are then instructed to delete the information from your computer. Thank you for your cooperation. -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about PdfGraphics2D for saving pdf file
Hello, Thank you for reminding me of using PdfGraphics2D to solve my save pdf file problme. Actually I am new to iText and I search some info of PdfGraphics2D. Here are my solutions: public void setTexttoPdf(String filePath,JTextPane ta) throws IOException, DocumentException{ Document pdfDoc = new Document(); FileOutputStream pdfFile = new FileOutputStream(new File(filePath)); PdfWriter writer=PdfWriter.getInstance(pdfDoc, pdfFile); writer.setStrictImageSequence(true); pdfDoc.open(); PdfContentByte cb = writer.getDirectContent(); cb.saveState(); DefaultFontMapper mapper = new DefaultFontMapper(); PdfGraphics2D g2 = (PdfGraphics2D)cb.createGraphics(612, 792, mapper); ta.paint(g2); ta.print(g2); cb.restoreState(); pdfDoc.close(); } Then I insert a picture(jpg) in my Jtextpane and tried to save it as a pdf file, but what I got is an empty pdf file. What's wrong with my code??? Thanks a lot for your favor~! Yours Chen -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about PdfGraphics2D for saving pdf file
You missed 1T3XT BVBA's earlier post. Check out the paintToPdf method in this old example from the first book: https://itext.svn.sourceforge.net/svnroot/itext/examples/src/in_action/chapter12/JTextPaneToPdf.java If ta is a JTextPane, g2 a PdfGraphics2D object and alloc a Rectangle, you can do: ta.getUI().getRootView(ta).paint(g2, alloc); not ta.paint(g2) or ta.print(g2) Neither of those will work. FYI, I am the author of that original example. You can definitely to what you want to do here, you just have to follow the rules. -Bill Ensley www.bearprinting.com On 4/3/2011 8:43 AM, momom...@sina.com wrote: Hello, Thank you for reminding me of using PdfGraphics2D to solve my save pdf file problme. Actually I am new to iText and I search some info of PdfGraphics2D. Here are my solutions: public void setTexttoPdf(String filePath,JTextPane ta) throws IOException, DocumentException{ Document pdfDoc = new Document(); FileOutputStream pdfFile = new FileOutputStream(new File(filePath)); PdfWriter writer=PdfWriter.getInstance(pdfDoc, pdfFile); writer.setStrictImageSequence(true); pdfDoc.open(); PdfContentByte cb = writer.getDirectContent(); cb.saveState(); DefaultFontMapper mapper = new DefaultFontMapper(); PdfGraphics2D g2 = (PdfGraphics2D)cb.createGraphics(612, 792, mapper); ta.paint(g2); ta.print(g2); cb.restoreState(); pdfDoc.close(); } Then I insert a picture(jpg) in my Jtextpane and tried to save it as a pdf file, but what I got is an empty pdf file. What's wrong with my code??? Thanks a lot for your favor~! Yours Chen -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Also, the above code is called before document.open() -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3399321.html Sent from the iText - General mailing list archive at Nabble.com. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about page number footers
Hi, I am just trying to add current page number to the footer of my document. I followed the example from iText in Action and it works except for one small issue. For some reason the page number gets broken up. I have pasted the following code I use to write the footer but it produces the following result for a 3 page document. Confidential Page 0 03/23/11 07:36:221 Confidential Page 0 03/23/11 07:36:222 Confidential Page 0 03/23/11 07:36:223 The page numbers are being split after the 0 on either side of the dates. Is there something I'm not doing correctly? Also, I tried using the example in the book class IHeaderFooter extends PdfPageEventHelper { Phrase[] header = new Phrase[2]; int pagenumber; with the same result. == my code == public void onOpenDocument(PdfWriter writer, Document document) { PDFHeaderFooter PDFUtil = new PDFHeaderFooter(); String HeaderImageFile = GeneralUtils.getConfigPropValue(report_header); document.setHeader(PDFUtil.GetHeader(HeaderImageFile)); DateFormat dateFormat = new SimpleDateFormat(MM/dd/yy); DateFormat timeFormat = new SimpleDateFormat(HH:mm:ss); Date date = new Date(); String CurrentDate = dateFormat.format(date); String CurrentTime = timeFormat.format(date); HeaderFooter footer = null; String pgNum = Integer.toString(writer.getPageNumber()); String footerPhrase = Confidential Page + pgNum + + CurrentDate + + CurrentTime; Phrase fp = new Phrase(footerPhrase); footer = new HeaderFooter(fp, true); footer.setBorder(Rectangle.NO_BORDER); footer.setAlignment(Element.ALIGN_CENTER); document.setFooter(footer); } -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3399290.html Sent from the iText - General mailing list archive at Nabble.com. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Op 23/03/2011 12:49, dwhite schreef: Hi, I am just trying to add current page number to the footer of my document. I followed the example from iText in Action Which example? Can you give me a page or listing number? public void onOpenDocument(PdfWriter writer, Document document) { As explained in the book, the document object is an instance of PdfDocument. You're using: document.setFooter(footer); I don't know any example in the book uses PdfDocument.setFooter(). As a matter of fact, the method setFooter() no longer exists in Document, nor in PdfDocument: http://api.itextpdf.com/com/itextpdf/text/Document.html http://api.itextpdf.com/com/itextpdf/text/pdf/PdfDocument.html You're doing something that isn't supported at all. (And that can't be found anywhere in the book.) Replace document.setFooter with a showTextAligned method (either using PdfContentByte or ColumnText), or wrap the Phrase in a ColumnText and use the go() method (allthough in your case showTextAligned() is probably better). -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Hello, I used the following exemple (I have not yet received the book). Exemple : Part1.Chapter5.MoviesCountries1.java Exemple : Part2.Chapter6.TwoPasses.java I think you must use it if you want page 1/100. PHL. - Mail Original - De: 1T3XT BVBA i...@1t3xt.info À: itext-questions@lists.sourceforge.net Envoyé: Mercredi 23 Mars 2011 13h42:37 GMT +01:00 Amsterdam / Berlin / Berne / Rome / Stockholm / Vienne Objet: Re: [iText-questions] Question about page number footers Op 23/03/2011 12:49, dwhite schreef: Hi, I am just trying to add current page number to the footer of my document. I followed the example from iText in Action Which example? Can you give me a page or listing number? public void onOpenDocument(PdfWriter writer, Document document) { As explained in the book, the document object is an instance of PdfDocument. You're using: document.setFooter(footer); I don't know any example in the book uses PdfDocument.setFooter(). As a matter of fact, the method setFooter() no longer exists in Document, nor in PdfDocument: http://api.itextpdf.com/com/itextpdf/text/Document.html http://api.itextpdf.com/com/itextpdf/text/pdf/PdfDocument.html You're doing something that isn't supported at all. (And that can't be found anywhere in the book.) Replace document.setFooter with a showTextAligned method (either using PdfContentByte or ColumnText), or wrap the Phrase in a ColumnText and use the go() method (allthough in your case showTextAligned() is probably better). -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
I assume you want the same date and time on all pages. So you should generate the date/time string only once and then use it on each page. I assume you want different page numbers on each page. So you should generate the page number once for each page. It loooks like you are applying the page number twice. Once with the value when the document is opened (0, between Page and the date) and then again once for each page (the 1, 2, 3 appended at the end of each time stamp). You should consult the examples posted on the web. PHL (phle...@free.fr) posted the ones he used, they are probably nice ones. /Klas dwhite skrev 2011-03-23 12:49: Hi, I am just trying to add current page number to the footer of my document. I followed the example from iText in Action and it works except for one small issue. For some reason the page number gets broken up. I have pasted the following code I use to write the footer but it produces the following result for a 3 page document. Confidential Page 0 03/23/11 07:36:221 Confidential Page 0 03/23/11 07:36:222 Confidential Page 0 03/23/11 07:36:223 The page numbers are being split after the 0 on either side of the dates. Is there something I'm not doing correctly? Also, I tried using the example in the book class IHeaderFooter extends PdfPageEventHelper { Phrase[] header = new Phrase[2]; int pagenumber; with the same result. == my code == public void onOpenDocument(PdfWriter writer, Document document) { PDFHeaderFooter PDFUtil = new PDFHeaderFooter(); String HeaderImageFile = GeneralUtils.getConfigPropValue(report_header); document.setHeader(PDFUtil.GetHeader(HeaderImageFile)); DateFormat dateFormat = new SimpleDateFormat(MM/dd/yy); DateFormat timeFormat = new SimpleDateFormat(HH:mm:ss); Date date = new Date(); String CurrentDate = dateFormat.format(date); String CurrentTime = timeFormat.format(date); HeaderFooter footer = null; String pgNum = Integer.toString(writer.getPageNumber()); String footerPhrase = Confidential Page + pgNum + + CurrentDate + + CurrentTime; Phrase fp = new Phrase(footerPhrase); footer = new HeaderFooter(fp, true); footer.setBorder(Rectangle.NO_BORDER); footer.setAlignment(Element.ALIGN_CENTER); document.setFooter(footer); } -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3399290.html Sent from the iText - General mailing list archive at Nabble.com. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Op 23/03/2011 14:38, phle...@free.fr schreef: Hello, I used the following exemple (I have not yet received the book). Exemple : Part1.Chapter5.MoviesCountries1.java Exemple : Part2.Chapter6.TwoPasses.java I think you must use it if you want page 1/100. Those are indeed the correct examples. MoviesCountries1.java can be used to produce page 1/100, page 2/100,... but the TwoPasses.java example gives you more freedom regarding the layout. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Wow, you're right. The example in the book (page 173 fig 5.18) doesn't use that method. I added it because I think I'm mixing up my versions. I will look into showTextAligned() . Thanks -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3399744.html Sent from the iText - General mailing list archive at Nabble.com. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about page number footers
Sorry guys, I found the problem. I thought I set the footer flag to false, but it was true which is why it kept appending the actual page number to the end of my footer string. Also I wasn't incrementing the page number so when I printed it the value was 0. Thanks for your help. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Question-about-page-number-footers-tp3399290p3400029.html Sent from the iText - General mailing list archive at Nabble.com. -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] question about reading a pdf file and get hyperlinks
Hi, I'm trying to read a pdf file and get all hyperlinks from this file. I'm using iTextSharp for C# .net. Below follow the code that I'm using: *PdfReader reader = new PdfReader(D:/teste.pdf); * * ListPdfAnnotation.PdfImportedLink list = reader.GetLinks(1);* This method GetLinks return a list with a lot of information about the links, but this method does not return the value that I want, the hyperlink string. Do you have some idea to resolve my problem? Best, Leonardo Heidrich Engenheiro de Computação -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about N-Up Printing
Op 15/02/2011 21:24, Joe Danziger schreef: I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets. Is it possible to get an explanation of what the helper variables n, r, c, represent in that example? I can tell that the n represents the number of documents that should be printed per page, but can't seem to determine r and c. In the example pow can be 1, 2, 3, 4. These are the corresponding values for n, r and c: pow = 1: 2-up = 1 x 2 pow = 2: 4-up = 2 x 2 pow = 3: 8-up = 2 x 4 pow = 4: 16-up = 4 x 4 If you look at figure 6.5, you immediately see what 1 x 2, 2 x 2, 2 x 4 and 4 x 4 mean. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about N-Up Printing
Yes, that totally makes sense - thanks Mark! From: Mark Storer [mailto:msto...@autonomy.com] Sent: Tuesday, February 15, 2011 6:51 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Question about N-Up Printing Rows and Columns? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Joe Danziger [mailto:jdanzi...@iccsllc.com] Sent: Tuesday, February 15, 2011 12:25 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Question about N-Up Printing I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets. Is it possible to get an explanation of what the helper variables n, r, c, represent in that example? I can tell that the n represents the number of documents that should be printed per page, but can't seem to determine r and c. Thanks very much, Joe Danziger Follow ICCS on Twitter: Click Here http://www.twitter.com/iccsllc AVAYA SME Expert Business Partner, Microsoft SMB Partner, HP Storage Select Partner, VM-Ware Certified Partner, Dell Business Partner, Cisco Select Reseller, Apple Reseller, Symantec SMB Specialist, IBM Business Partner, Lenovo Business Partner. ICCS Co., LLC | Your Premier IT Telecom Partner HelpDesk: h...@iccsllc.com | Phone: 212.391.1411 x.4 Please consider the environment before printing this e-mail. This transmission may contain information that is privileged, confidential, proprietary, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please contact the sender and delete the material from any computer immediately. Thank you. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about N-Up Printing
Thanks very much. Together with Mark's description, this has totally cleared things up. This is a great example and was reason enough for me to buy the book. Kudos! -Joe From: 1T3XT BVBA [mailto:i...@1t3xt.info] Sent: Wednesday, February 16, 2011 4:50 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Question about N-Up Printing Op 15/02/2011 21:24, Joe Danziger schreef: I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets. Is it possible to get an explanation of what the helper variables n, r, c, represent in that example? I can tell that the n represents the number of documents that should be printed per page, but can't seem to determine r and c. In the example pow can be 1, 2, 3, 4. These are the corresponding values for n, r and c: pow = 1: 2-up = 1 x 2 pow = 2: 4-up = 2 x 2 pow = 3: 8-up = 2 x 4 pow = 4: 16-up = 4 x 4 If you look at figure 6.5, you immediately see what 1 x 2, 2 x 2, 2 x 4 and 4 x 4 mean. Follow ICCS on Twitter: Click Here AVAYA SME Expert Business Partner, Microsoft SMB Partner, HP Storage Select Partner, VM-Ware Certified Partner, Dell Business Partner, Cisco Select Reseller, Apple Reseller, Symantec SMB Specialist, IBM Business Partner, Lenovo Business Partner. ICCS Co., LLC | Your Premier IT Telecom Partner HelpDesk: h...@iccsllc.com | Phone: 212.391.1411 x.4 Please consider the environment before printing this e-mail. This transmission may contain information that is privileged, confidential, proprietary, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please contact the sender and delete the material from any computer immediately. Thank you. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
[iText-questions] Question about N-Up Printing
I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets. Is it possible to get an explanation of what the helper variables n, r, c, represent in that example? I can tell that the n represents the number of documents that should be printed per page, but can't seem to determine r and c. Thanks very much, Joe Danziger Follow ICCS on Twitter: Click Here AVAYA SME Expert Business Partner, Microsoft SMB Partner, HP Storage Select Partner, VM-Ware Certified Partner, Dell Business Partner, Cisco Select Reseller, Apple Reseller, Symantec SMB Specialist, IBM Business Partner, Lenovo Business Partner. ICCS Co., LLC | Your Premier IT Telecom Partner HelpDesk: h...@iccsllc.com | Phone: 212.391.1411 x.4 Please consider the environment before printing this e-mail. This transmission may contain information that is privileged, confidential, proprietary, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please contact the sender and delete the material from any computer immediately. Thank you. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
Re: [iText-questions] Question about N-Up Printing
Rows and Columns? --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaimer; DisclaimerCardiff DisCard = null; From: Joe Danziger [mailto:jdanzi...@iccsllc.com] Sent: Tuesday, February 15, 2011 12:25 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Question about N-Up Printing I am trying to transpose the NUp example in Chapter 6 (p. 171) of the 2E book to ColdFusion, but having an issue with the calculation of the offsets. Is it possible to get an explanation of what the helper variables n, r, c, represent in that example? I can tell that the n represents the number of documents that should be printed per page, but can't seem to determine r and c. Thanks very much, Joe Danziger Follow ICCS on Twitter: Click Here http://www.twitter.com/iccsllc AVAYA SME Expert Business Partner, Microsoft SMB Partner, HP Storage Select Partner, VM-Ware Certified Partner, Dell Business Partner, Cisco Select Reseller, Apple Reseller, Symantec SMB Specialist, IBM Business Partner, Lenovo Business Partner. ICCS Co., LLC | Your Premier IT Telecom Partner HelpDesk: h...@iccsllc.com mailto:h...@iccsllc.com | Phone: 212.391.1411 x.4 Please consider the environment before printing this e-mail. This transmission may contain information that is privileged, confidential, proprietary, and exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is strictly prohibited. If you received this transmission in error, please contact the sender and delete the material from any computer immediately. Thank you. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php