I use: new HeaderFooter(new Phrase(11f, header, new Font(Font.COURIER, 10, Font.NORMAL, Color.red)), false);
Hope this helps, Dan Criddle -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 01:43 To: [EMAIL PROTECTED] Subject: iText-questions digest, Vol 1 #1836 - 14 msgs Send iText-questions mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/itext-questions or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of iText-questions digest..." Today's Topics: 1. RE: Malformed PDF Files (Ramesh Thirumulaivayol Saravanan) 2. PDF Files-Giving Error after deploying the application in Unix (Ramesh Thirumulaivayol Saravanan) 3. RE: Malformed PDF Files (Wegley, Harry L) 4. Re: PDF Files-Giving Error after deploying the application in Unix (Bruno) 5. Large table ([EMAIL PROTECTED]) 6. Merge PDF ([EMAIL PROTECTED]) 7. Deployment problem (Sherlock Simon) 8. Table problem ([EMAIL PROTECTED]) 9. Re: Merge PDF (Bruno) 10. RE: PDF Files-Giving Error after deploying the application in Unix (Bruno) 11. Re: BIDI examples (Paul Hastings) 12. RE: BIDI examples (Paulo Soares) 13. header/footer text color (Bryan Stevenson) 14. Question regarding populating PDF Form fields.... (USB ITEXT) --__--__-- Message: 1 Subject: RE: [iText-questions] Malformed PDF Files Date: Mon, 16 Feb 2004 10:54:57 +0530 From: "Ramesh Thirumulaivayol Saravanan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Hi, I created a PDF using iText and Servlets using the Buffered output = Stream method and it is generating the PDF properly when deployed on = Weblogic Server on Windows. The same code was deployed on Sun Solaris = and I am getting an error "Acrobat cannot open 'pa015041.fdf'.because it = is either not a supported file type or because the file has been = corrupted(for example,it was send as an email attachment and wasn't = correctly decoded". Please let me know the reason why i am getting this error and the = solution for it. Thanks, Ramesh T S. --__--__-- Message: 2 Subject: [iText-questions] PDF Files-Giving Error after deploying the application in Unix Date: Mon, 16 Feb 2004 11:09:15 +0530 From: "Ramesh Thirumulaivayol Saravanan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Hi, I created a PDF using iText and Servlets using the Buffered output = Stream method and it is generating the PDF properly when deployed on = Weblogic Server on Windows. The same code was deployed on Sun Solaris = and I am getting an error "Acrobat cannot open 'pa015041.fdf'.because it = is either not a supported file type or because the file has been = corrupted(for example,it was send as an email attachment and wasn't = correctly decoded". Please let me know the reason why i am getting this error and the = solution for it. Thanks, Ramesh T S. --__--__-- Message: 3 Subject: RE: [iText-questions] Malformed PDF Files Date: Sun, 15 Feb 2004 22:07:45 -0800 From: "Wegley, Harry L" <[EMAIL PROTECTED]> To: "Leonard Rosenthol" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> The browser version is IE 5.000.3315.1000 (current Boeing standard). -----Original Message----- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Sunday, February 15, 2004 8:07 PM To: Wegley, Harry L; [EMAIL PROTECTED] Subject: RE: [iText-questions] Malformed PDF Files At 10:43 PM 2/15/2004, Wegley, Harry L wrote: >I realize you must print from Acrobat Readers print controls -- not the >browser's. Not everyone does - so just checking. >And I have tried everything from HP Laserjets to several postscript >printers and a couple of Epson printers (Stylus C60 and C600). Interesting - different printers, different drivers, etc. >I am convinced that I have created a PDF file that is ill-structured as >far as Acrobat Reader 6.0 printing parser is considered. An interesting theory, but not one that plays itself out in = reality. First, if you are ONLY using Reader, then doing a "Save As" is=20 equivalent to a copy in Windows Explorer - there is NOTHING done to the = PDF=20 structures. So there should be no difference in printing. Second, the printing command is the same both in browser and in = the app - it's the same program running with a "bridge" in between. Just out of curiosity, what browser (and version)?? Leonard -------------------------------------------------------------------------= -- Leonard Rosenthol = <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-629-3700 (voice) 215-629-0789 (fax) --__--__-- Message: 4 Date: Mon, 16 Feb 2004 08:48:47 +0100 From: Bruno <[EMAIL PROTECTED]> To: Ramesh Thirumulaivayol Saravanan <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] PDF Files-Giving Error after deploying the application in Unix Quoting Ramesh Thirumulaivayol Saravanan <[EMAIL PROTECTED]>: > "Acrobat cannot open 'pa015041.fdf' FDF is not PDF. If you save that pa015041.fdf file, does it start with %PDF-1.2 ? If not, you aren't generating PDF. br, Bruno Lowagie --__--__-- Message: 5 Date: Mon, 16 Feb 2004 10:06:49 +0100 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [iText-questions] Large table Hi I have a table that can grow _large_. What can happen is that a specific cell can be so large that it will not fit a page. I do not want to table.setCellsFitPage(false) because then iText breaks the smaller cells as well. Is there any way I can detect if a cell fits a page or not (exception?) and if it does not set fitPage(false) only for this specific cell? regards Bent A. Melsom ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. --__--__-- Message: 6 From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Mon, 16 Feb 2004 6:20:16 -0500 Subject: [iText-questions] Merge PDF Hi all, I'm writing a VB.Net app, and I would like to incorporate the iText library to merge/concat PDF files. I've looked at the library, some sample apps that use it, I've tried to use CONCAT_PDF, but all unsuccessfully. Does anyone have a sample VB.NET (or C#) code that uses CONCAT_PDF or directly concats PDF files that I can reuse as a template? It would be a great help! Thanks! Trung --__--__-- Message: 7 From: Sherlock Simon <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon, 16 Feb 2004 11:24:42 -0000 Subject: [iText-questions] Deployment problem Running a local web server on my machine I am producing PDF's using Servlets in J2EE. Howver, if I deploy on our development server at a different site I get: java.lang.RuntimeException: The document is not open. I'm sure it's something simple, but cannot spot it. Any ideas? Thanks, Simon **************************************************************************** ******** Internet email is not to be treated as a secure means of communication. PITO monitors all internet email activity and content. This communication is intended for the addressee(s) only. Please notify the sender if received in error. Unauthorised use or disclosure of the content may be unlawful. Opinions expressed in this document may not be official policy. Thank you for your co-operation. **************************************************************************** ******** --__--__-- Message: 8 Date: Mon, 16 Feb 2004 12:42:27 +0100 From: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Organization: http://freemail.web.de/ Subject: [iText-questions] Table problem Hi, I wanna insert a phrase and a table in a paragraph. This isn't the problem yet. Phrase and Table are displayed. But if I use "setKeepTogether(true)" to keep the paragraph on one page only the phrase is displayed, but not the table. For example: Paragraph p = new Paragraph(); p.add(new Phrase("bla bla bla")); p.add(new Phrase("\n bla bla bla")); p.add(targetTable); p.setKeepTogether(true); document.add(p); Info: "targetTable" contains another table. How can the table be displayed too? Thanks for the help. Regards, Katja ____________________________________________________________________________ __ ... and the winner is... WEB.DE FreeMail! - Deutschlands beste E-Mail ist zum 39. Mal Testsieger (PC Praxis 03/04) http://f.web.de/?mc=021191 --__--__-- Message: 9 Date: Mon, 16 Feb 2004 13:16:18 +0100 From: Bruno <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [iText-questions] Merge PDF Quoting [EMAIL PROTECTED]: > Hi all, > > I'm writing a VB.Net app, and I would like to incorporate the iText library > to merge/concat PDF files. I've looked at the library, some sample apps that > use it, I've tried to use CONCAT_PDF, but all unsuccessfully. Does anyone > have a sample VB.NET (or C#) code that uses CONCAT_PDF or directly concats > PDF files that I can reuse as a template? It would be a great help! Thanks! Maybe this is a good place to start looking: http://www.ujihara.jp/ConcatPDF/en/ It uses the .NET port (J#) of iText. Remark: .NET ports are done by other people than the ones responsible for the JAVA iText. If you have questions on .NET, please address the authors of the port(s). br, Bruno --__--__-- Message: 10 Date: Mon, 16 Feb 2004 16:42:22 +0100 From: Bruno <[EMAIL PROTECTED]> To: Ramesh Thirumulaivayol Saravanan <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: RE: [iText-questions] PDF Files-Giving Error after deploying the application in Unix Please keep on the mailinglist. Quoting Ramesh Thirumulaivayol Saravanan <[EMAIL PROTECTED]>: > Hi Bruno, > > I got the below error if the response.setContentLength is greater than the > size of the ByteOutputStream. When I set the > response.setContentLength(baosPDF.size()); > I get this error: > java.net.ProtocolException: Exceeded stated content-length of: '7855' bytes > at > weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutputStrea mImpl.java:219) > at > weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamI mpl.java:170) > at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:112) > > But, when I changed it to : > response.setContentLength(baosPDF.size() + 114); //Got using trial and error > only > the PDF opened correctly through weblogic 8.1 running on Windows XP. So, I > sent the code for deployment on a solaris machine running weblogic 8.1. But > then I got the error shown in the attached image. > > Please help me debug the problem and give your analysis. You should read the FAQ about JSP. http://www.lowagie.com/iText/faq.html#jsp You may not see them, but you have lots of 'white chars' (such as space, newline, tab) in your JSP. These make the PDF corrupt. br, Bruno --__--__-- Message: 11 Reply-To: "Paul Hastings" <[EMAIL PROTECTED]> From: "Paul Hastings" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: [iText-questions] BIDI examples Date: Mon, 16 Feb 2004 23:00:44 +0700 Organization: Sustainable GIS great, yes i think i grasp whats going on in that. i just wish i didn't have to handle these as special cases. in any case, many thanks. ----- Original Message ----- From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Paul Hastings" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 13, 2004 6:19 PM Subject: RE: [iText-questions] BIDI examples You have full bidi support for arabic and hebrew with optional number shaping, contextual or not, but only with ColumnText and PdfPTable. See the example arabic_hebrew.java in itextpdf.sf.net. --__--__-- Message: 12 Subject: RE: [iText-questions] BIDI examples Date: Mon, 16 Feb 2004 16:24:01 -0000 From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Paul Hastings" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> This is a multi-part message in MIME format. ------_=_NextPart_001_01C3F4A9.49A51D97 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Bidi support is always a special case. For example, the PdfPTable fills = the cells from right to left if the table is set as an RTL one but it = has to be told, there's no way to do it automatically. Best Regards, Paulo Soares > -----Original Message----- > From: Paul Hastings [SMTP:[EMAIL PROTECTED] > Sent: Monday, February 16, 2004 16:01 > To: Paulo Soares; [EMAIL PROTECTED] > Subject: Re: [iText-questions] BIDI examples >=20 > great, yes i think i grasp whats going on in that. i just wish i = didn't have > to handle these as special cases. in any case, many thanks. >=20 > ----- Original Message -----=20 > From: "Paulo Soares" <[EMAIL PROTECTED]> > To: "Paul Hastings" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Friday, February 13, 2004 6:19 PM > Subject: RE: [iText-questions] BIDI examples >=20 >=20 > You have full bidi support for arabic and hebrew with optional number > shaping, contextual or not, but only with ColumnText and PdfPTable. = See the > example arabic_hebrew.java in itextpdf.sf.net. >=20 >=20 ------_=_NextPart_001_01C3F4A9.49A51D97 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE>RE: [iText-questions] BIDI examples</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P><SPAN LANG=3D"en-us"><FONT COLOR=3D"#0000FF" SIZE=3D2 = FACE=3D"Arial">Bidi support is always a special case. For example, the = PdfPTable fills the cells from right to left if the table is set as an = RTL one but it has to be told, there's no way to do it = automatically.</FONT></SPAN></P> <P><SPAN LANG=3D"en-us"><FONT COLOR=3D"#0000FF" SIZE=3D2 = FACE=3D"Arial">Best Regards,</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT COLOR=3D"#0000FF" SIZE=3D2 = FACE=3D"Arial">Paulo Soares</FONT></SPAN> </P> <UL> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D1 FACE=3D"Arial">-----Original = Message-----</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><B><FONT SIZE=3D1 = FACE=3D"Arial">From: </FONT></B> <FONT SIZE=3D1 = FACE=3D"Arial">Paul Hastings = [SMTP:[EMAIL PROTECTED]</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><B><FONT SIZE=3D1 = FACE=3D"Arial">Sent: </FONT></B> <FONT SIZE=3D1 = FACE=3D"Arial">Monday, February 16, 2004 16:01</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><B><FONT SIZE=3D1 = FACE=3D"Arial">To: </FONT></B> <FONT SIZE=3D1 = FACE=3D"Arial">Paulo Soares; = [EMAIL PROTECTED]</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><B><FONT SIZE=3D1 = FACE=3D"Arial">Subject: </FONT><= /B> <FONT SIZE=3D1 FACE=3D"Arial">Re: [iText-questions] BIDI = examples</FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">great, yes i think = i grasp whats going on in that. i just wish i didn't have</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">to handle these = as special cases. in any case, many thanks.</FONT></SPAN> </P> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">----- Original = Message ----- </FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">From: "Paulo = Soares" <[EMAIL PROTECTED]></FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">To: "Paul = Hastings" <[EMAIL PROTECTED]>;</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 = FACE=3D"Arial"><[EMAIL PROTECTED]></FONT></SPAN= > <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Sent: Friday, = February 13, 2004 6:19 PM</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">Subject: RE: = [iText-questions] BIDI examples</FONT></SPAN> </P> <BR> <P><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">You have full bidi = support for arabic and hebrew with optional number</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">shaping, = contextual or not, but only with ColumnText and PdfPTable. See = the</FONT></SPAN> <BR><SPAN LANG=3D"en-us"><FONT SIZE=3D2 FACE=3D"Arial">example = arabic_hebrew.java in itextpdf.sf.net.</FONT></SPAN> </P> <BR> </UL> </BODY> </HTML> ------_=_NextPart_001_01C3F4A9.49A51D97-- --__--__-- Message: 13 From: "Bryan Stevenson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Mon, 16 Feb 2004 13:18:43 -0800 Subject: [iText-questions] header/footer text color Hey All, It's relatively simple to get the current page number to output in the footer, but how can I change the color (and other font properties) for the text used in the footer (default is black)??? TIA Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com --__--__-- Message: 14 Date: Mon, 16 Feb 2004 17:37:31 -0800 (PST) From: USB ITEXT <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [iText-questions] Question regarding populating PDF Form fields.... --0-1868066196-1076981851=:94799 Content-Type: text/plain; charset=us-ascii Hi, I am using i-Text to read a PDF Form, populate the fields and flatten it before displaying the resultant PDF in the browser. The code is as follows: String urlString = "http://localhost:8080/fdfsample/PDFs/FormTest.pdf"; resp.setContentType("application/vnd.fdf"); PdfReader reader = new PdfReader(new URL(urlString.toString())); System.out.println("number of pages in pdf : " + reader.getNumberOfPages()); AcroFields afields = reader.getAcroFields(); HashMap fieldsHM = afields.getFields(); System.out.println("number of fields : " + fieldsHM.size()); afields.setField("txtFirstName","FirstName"); I am getting the error as below on the line where the field "txtFirstName" is being set: [2/16/04 17:25:30:914 PST] 6a609e03 WebGroup E SRVE0026E: [Servlet Error]-[FDFServlet]: com.lowagie.text.DocumentException: This AcroFields instance is read-only. at com.lowagie.text.pdf.AcroFields.setField(Unknown Source) Can anyone help me to figure out the error I am making. Thanks in advance for your help. --------------------------------- Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online --0-1868066196-1076981851=:94799 Content-Type: text/html; charset=us-ascii <DIV>Hi,</DIV> <DIV> </DIV> <DIV>I am using i-Text to read a PDF Form, populate the fields and flatten it before displaying the resultant PDF in the browser. The code is as follows:</DIV> <DIV> </DIV> <DIV>String urlString = "<A href="http://localhost:8080/fdfsample/PDFs/FormTest.pdf">http://localhost:80 80/fdfsample/PDFs/FormTest.pdf</A>";</DIV> <DIV><FONT size=2><FONT size=2> <P>resp.setContentType(</FONT><FONT color=#2a00ff size=2>"application/vnd.fdf"</FONT><FONT size=2>);</P> <P></FONT>PdfReader reader = </FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> PdfReader(</FONT><B><FONT color=#7f0055 size=2>new</B></FONT><FONT size=2> URL(urlString.toString()));</P> <P>System.out.println(</FONT><FONT color=#2a00ff size=2>"number of pages in pdf : "</FONT><FONT size=2> + reader.getNumberOfPages());</P> <P>AcroFields afields = reader.getAcroFields();</P> <P>HashMap fieldsHM = afields.getFields();</P> <P>System.out.println(</FONT><FONT color=#2a00ff size=2>"number of fields : "</FONT><FONT size=2> + fieldsHM.size());</P></FONT></DIV> <DIV><FONT size=2> <P>afields.setField(</FONT><FONT color=#2a00ff size=2>"txtFirstName"</FONT><FONT size=2>,</FONT><FONT color=#2a00ff size=2>"FirstName"</FONT><FONT size=2>);</P></FONT></DIV> <DIV> </DIV> <DIV>I am getting the error as below on the line where the field "txtFirstName" is being set:</DIV> <DIV> </DIV> <DIV><FONT color=#0000ff size=2> <P>[2/16/04 17:25:30:914 PST] 6a609e03 WebGroup E SRVE0026E: [Servlet Error]-[FDFServlet]: com.lowagie.text.DocumentException: This AcroFields instance is read-only.</P> <P>at com.lowagie.text.pdf.AcroFields.setField(Unknown Source)</P> <P>Can anyone help me to figure out the error I am making.</P> <P> </P> <P>Thanks in advance for your help.</P></FONT></DIV><p><hr SIZE=1> Do you Yahoo!?<br> Yahoo! Finance: <a href="http://us.rd.yahoo.com/evt=22055/*http://taxes.yahoo.com/filing.html"> Get your refund fast by filing online</a> --0-1868066196-1076981851=:94799-- --__--__-- _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions End of iText-questions Digest PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET. On entering the GSi, this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs. Please see http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf for further details. In case of problems, please call your organisational IT helpdesk If you have received this e-mail and it was not intended for you, please let us know, and then delete it. Please treat our information in confidence, as you would expect us to treat yours. The Land Registry checks all mail and attachments for known viruses, however, you are advised that you open any attachments at your own risk. The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs. On leaving the GSi this email was certified virus-free ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions