1T3XT BVBA wrote: >Joseph Lazarski wrote: >> I am trying to use IText to populate a PDF form. I am >> able to accomplish this as expected however when closing the PDFStamper, >> I receive the ?[Fatal Error] :1:1: Content is not allowed in prolog.? >> error. This started occurring when I modified a PDF Form. Previously >> the form had more fields to fill but I needed to change the field names >> or add new fields. Either way I tried to accomplish this resulted in >> that error. I am able to edit the actual PDF text but I am not able to >> edit the form fields or add form fields. > >Wasn't this an error that occurred in iText 2.1.3? >What if you upgrade to iText 2.1.5? >-- >This answer is provided by 1T3XT BVBA >http://www.1t3xt.com/ - http://www.1t3xt.info
I have upgraded to iText 2.1.5 and I am still getting the same error. When I initially upgraded to 2.1.5, I was receiving font errors because of the ANT build not including the font files when compiling the JAR but after resolving that, I still receive [Fatal Error] :1:1: Content is not allowed in prolog. Any ideas? ------------------------------ Message: 2 Date: Fri, 13 Mar 2009 10:41:20 +0100 From: "Halter, Leendert" <[email protected]> Subject: [iText-questions] FW: iText and TIFF To: <[email protected]> Message-ID: <e210516510e6de4ba5fa1670e8f6d4b102df3...@aownlex012.europe.nl.intra> Content-Type: text/plain; charset="iso-8859-1" ________________________________ Van: Halter, Leendert Verzonden: vr 13-3-2009 10:34 Aan: [email protected]; [email protected] Onderwerp: iText and TIFF HI, Is the following possible with IText/Java: * to read multi-page file TIFF file thereby getting the individual pages and look for barcodes on each individual page . Can the barcodes be read/processed with the iText software? * to write a new multi-page tIFF file that is composed of some of the pages of the original TIFF file IF possible, are there example programs how to do this? I hope you can answer this questions. Kind regards, Leendert Halter Atos Orgin, the Netherlands -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: disclaimer.txt ------------------------------ Message: 3 Date: Fri, 13 Mar 2009 10:52:10 +0100 From: Heged?s P?ter <[email protected]> Subject: [iText-questions] MultiColumnText To: <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-2" Hello, I am trying to build a document containing more issues. But I have a problem with iText MultiColumnText. I want to add one MultiColumnText object more than once, but the MultiColumnText object is added only once. Here is a small sample code: Document document = new Document(); OutputStream out = new FileOutputStream("d:\\multicolumnsimple.pdf"); PdfWriter.getInstance(document, out); document.open(); MultiColumnText mct1 = new MultiColumnText(100); MultiColumnText mct2 = new MultiColumnText(100); mct1.addRegularColumns(document.left(), document.right(), 10f, 3); mct2.addRegularColumns(document.left(), document.right(), 10f, 3); mct1.addElement(new Paragraph("nddddddddddjhu sguvbfhebg ruhugrbghrb bzubrgfzwrb ru rig bgrwgninruuuuuuuuuuuuu bvq gwubvvvvvvvvvvvvvvvvvvvvv rquiobgrbqgvhlbqberhbvrh br rpqbzerbvrqvuoqervhrbvrqeubvueb vq qbrqgibvzebvezrbvzruiqbvzoeivhuqer uerierlqbvrhbgrhqebvfrb urbqerbvqerbvuebvrjebvrqehjbverbv urqbqerbvgheqbvjrvuerqbvgbgfr eruq qrubgeuqbguqerbguqrpebgubr qe qerhguqebgqeubgubrqubg qu qughqguqbubqubg ")); mct2.addElement(new Paragraph("nddddddddddjhu sguvbfhebg ruhugrbghrb bzubrgfzwrb ru rig bgrwgninruuuuuuuuuuuuu bvq gwubvvvvvvvvvvvvvvvvvvvvv rquiobgrbqgvhlbqberhbvrh br rpqbzerbvrqvuoqervhrbvrqeubvueb vq qbrqgibvzebvezrbvzruiqbvzoeivhuqer uerierlqbvrhbgrhqebvfrb urbqerbvqerbvuebvrjebvrqehjbverbv urqbqerbvgheqbvjrvuerqbvgbgfr eruq qrubgeuqbguqerbguqrpebgubr qe qerhguqebgqeubgubrqubg qu qughqguqbubqubg ")); document.add(mct1); document.add(mct1); document.close(); The mct1 appears only once. If I change the second mct1 to mct2, the columns will appear well. Why can I add MultiColumnText only once? Thank you in advance and best regards! Peter -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 4 Date: Fri, 13 Mar 2009 11:31:34 +0100 From: Alexis Pigeon <[email protected]> Subject: Re: [iText-questions] Show us your itext pdf! To: Post all your questions about iText here <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8 Hi FlyingBuzz, 2009/3/13 FlyingBuzz <[email protected]>: > > I am very interested in what people are creating with iText because the pdf I > created with itext is quite complex. I not sure if itext did a showcase of > differnet people creations of pdf yet. Most of the examples on 1t3xt.com website [1] come with sample code and pdf output. What else would you need? Cheers, alexis [1] http://1t3xt.info/examples/browse/ ------------------------------ Message: 5 Date: Fri, 13 Mar 2009 03:48:04 -0700 From: Leonard Rosenthol <[email protected]> Subject: Re: [iText-questions] How to Check if existing Pdf is of CMYK, RGB or GRAY scale type To: Post all your questions about iText here <[email protected]> Message-ID: <d23d6b9e57d654429a9ab6918caceaa97c2f40d...@nambx02.corp.adobe.com> Content-Type: text/plain; charset="us-ascii" Getting information about what is contained in a PDF (such as colors, fonts, etc.) requires that you understand the 5 places in a PDF where content can be described and then recursively walking/iterating that content to catalog the data. Once you are done with your read of the PDF Reference, you will understand this better. In addition, you will found out that #7 and #8 are impossible because these concepts don't exist in PDF... Leonard From: Deepali Tatkar [mailto:[email protected]] Sent: Friday, March 13, 2009 1:41 AM To: Post all your questions about iText here Subject: Re: [iText-questions] How to Check if existing Pdf is of CMYK, RGB or GRAY scale type hi Leonard, thanx for your guidence, as you suggested i will read the Pdf Reference.My basic problem was that i dont have any idea about how objects are placed in Pdf.Till now i was reading the iTextSharp tutorials and documentation for understanding how to read or extract data from existing pdf files. Mean time i will give you the brief overview of my project i m doing using iTextSharp dll so that you can guide me exactly how to go about,my project is to develope a module for reading a existing Pdf files using iTextSharp dll. Main objective of this module are (input is any existing Pdf file) 1. To extract total no. of pages of given Pdf.( i could get this using PdfReader class). 2.To get size of pdf pages.( i could get this using PdfReader class) 3.To extract what colorspace (as u cleared my doubt that there is no single colorspace for pdf) 4. To extract what all fonts present in the entire pdf file.( i could get font names by recursively seaeching FONT objectss). 5.To extract total no. of Images present in the pdf file ( i could get this from Xobjects count per page,but here problem is dat for some pdf Xobject count gives count of total images of entire pdf and for some pdfs it it gives count of images per page., so me confused :( ) 6.To get the position of images . 7. To check if Pdf has Header/Footer (i dnt how can check it). 8.To check if Pdf has margines and get the margines if present.( no idea) I am rading the iTextSharp documentation, but dint find much on how extacly i can retrieve data from Pdf files.So i need your help for how can extract all information i needed using iTextSharp dll. I will be very thankfull if you can advice me for above project. thanx deepali On Thu, Mar 12, 2009 at 7:05 PM, Leonard Rosenthol <[email protected]<mailto:[email protected]>> wrote: A PDF whose contents consist of a single page, and that single page contains only a single object (be it image, text or vector) is still just that - a single object with a colorspace. The PDF doesn't have a colorspace. And all the information is in the PDF - no need to decode the image data... Leonard On 3/12/09 8:18 AM, "Axel Rose" <[email protected]<http://[email protected]>> wrote: One exception: An image PDF saved with Photoshop has a distinct colorspace. You'd have to extract the metadata and decode e.g. PhotometricInterpretation. Perhaps the use case is this simplified case. Regards Axel ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [email protected]<http://[email protected]> https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- Leonard Rosenthol PDF Standards Architect Adobe Systems Incorporated ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions End of iText-questions Digest, Vol 34, Issue 57 *********************************************** ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
