[iText-questions] itextsharp for reproduce PDF searchable form TIFF image
Hello my name is Raffaele, i'm italian student:working:, I'm using a OCR library that have recognized the text in a Tiff image. The library output show me a list of word that has the following values: double word.Confidence; int word.Blanks; int word.Bottom; int word.FontIndex; int word.Formating; int word.Left; int word.LineIndex; int word.PointSize; int word.Right; object tag = word.Tag; string word.Text; int word.Top; My dream is to create a PDF searchable document that has in the front-layout the input TIFF image and in the back-layout the text. Is it possible??? If yes, how can I do??? :confused: Mant many thanks for interest. :jumping: RAF -- View this message in context: http://www.nabble.com/itextsharp-for-reproduce-PDF-searchable-form-TIFF-image-tp20657970p20657970.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] PDFStamper with custom page sizes
Hi there, i need to display an image to the very left border of an existing pdf document. i did it following this tutorial: http://itextdocs.lowagie.com/tutorial/general/copystamp/index.php it works for a normal A4 document, but if there are custom page sizes (e.g. 3xA4, 4xA4) the image positions differ. any idea? regards, matthias -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Doug Lim is out of the office.
I will be out of the office starting 11/24/2008 and will not return until 12/01/2008. I will respond to your message when I return. This message is intended for a particular addressee only and may contain business or company secrets. If you have received this email in error, please contact the sender and delete the message immediately. Any use of this email, including saving, publishing, copying, replication or forwarding of the message or the contents is not permitted. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] order in a PdfDictionary
Hello, could anybody tell me how the ordering in a PdfDictionary works? I would like to extend iTExt with new spatial spatial features wich are described in Adobe ISO 32000. sample code: PdfDictionary dicMeasure = new PdfDictionary(new PdfName(Measure)); dicMeasure.put(PdfName.SUBTYPE, new PdfName(GEO)); dicMeasure.put(new PdfName(GCS),indRefGcs); dicMeasure.put(new PdfName(GPTS),gpts); dicMeasure.put(new PdfName(LPTS),lpts); PdfIndirectObject indObjMeasure = writer.addToBody(dicMeasure); appearance in pdf: /Type/Measure/GCS 2 0 R/LPTS[0.0 1.0 1.0 0.0]/Subtype/GEO/GPTS[41.00 -87.00 42.00 -88.00] How important is the order in a dictionary? Thank you in advance! Matthias -- View this message in context: http://www.nabble.com/order-in-a-PdfDictionary-tp20660730p20660730.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] alignment-problem with PdfPCell Paragraph
eli mishalov wrote: I need to set RUN_DIRECTION = RTL and ALINGMENT = RIGHT. I did so in the attaced Peace example from chapter 6 but with no sucsess. what am I missing? Tank's Eli I got the answer from 'yahelili'. if any one needs it simply use RUN_DIRECTION_RTL and ALIGN_LEFT yes, that will do the job!! -- View this message in context: http://www.nabble.com/alignment-problem-with-PdfPCell---Paragraph-tp4139265p20657057.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
try this... 1 - create a new pdf 2 - add a new page 3 - add plain text (use white as text color) 4 - add the tiff (it covers all the page) Fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
Fabrizio, this is my C# code and with it, I can create a PDF image. But I need to add text in BACK-LAYOUT using the OCR values (see previous message). Can you help me with C# code :working: ??? Thanks =) - string pdf = @C:\test.pdf; Bitmap bmp = new Bitmap(@C:\test.pdf); System.Drawing.Image image = bmp; // step 1: creation of a document-object with document-metadata Document document = new Document(PageSize.A4); // step 2: creation of the writer PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(pdf, FileMode.OpenOrCreate)); // step 3: open the document document.Open(); // step 4: grab the ContentByte and do some stuff with it PdfContentByte cb = writer.DirectContent; // step 4.1: grab the Image RandomAccessFileOrArray rfa = new RandomAccessFileOrArray(imageToByteArray(image)); iTextSharp.text.Image img = iTextSharp.text.pdf.codec.TiffImage.GetTiffImage(rfa, 1); img.SetAbsolutePosition(0, 0); img.ScaleAbsolute(594f, 842f); cb.AddImage(img); // step 4.2: grab the Text ???_OCR values (see previous message)_??? // step 5: we close the document document.Close(); - Fabrizio Accatino wrote: try this... 1 - create a new pdf 2 - add a new page 3 - add plain text (use white as text color) 4 - add the tiff (it covers all the page) Fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- View this message in context: http://www.nabble.com/itextsharp-for-reproduce-PDF-searchable-form-TIFF-image-tp20657970p20662793.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] order in a PdfDictionary
Order is irrelevant... Leonard On Nov 24, 2008, at 2:23 PM, Matthias Uhler wrote: Hello, could anybody tell me how the ordering in a PdfDictionary works? I would like to extend iTExt with new spatial spatial features wich are described in Adobe ISO 32000. sample code: PdfDictionary dicMeasure = new PdfDictionary(new PdfName(Measure)); dicMeasure.put(PdfName.SUBTYPE, new PdfName(GEO)); dicMeasure.put(new PdfName(GCS),indRefGcs); dicMeasure.put(new PdfName(GPTS),gpts); dicMeasure.put(new PdfName(LPTS),lpts); PdfIndirectObject indObjMeasure = writer.addToBody(dicMeasure); appearance in pdf: /Type/Measure/GCS 2 0 R/LPTS[0.0 1.0 1.0 0.0]/Subtype/GEO/GPTS[41.00 -87.00 42.00 -88.00] How important is the order in a dictionary? Thank you in advance! Matthias -- View this message in context: http://www.nabble.com/order-in-a-PdfDictionary-tp20660730p20660730.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
Hello, swap Step 4.1 with Step 4.2. You must place the text, than place the tif image. fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
I believe that there is a font rendering mode that renders the font invisibly. http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf Section 9.3.6 - Table 106 - Mode = 3 Not sure if iText supports that rendering mode, but that would be far preferable than messing with Z-order and font color. If you do use that rendering mode, then you want the text to appear *above* the image in the z-order. - K --- Original Message --- From:"Fabrizio Accatino" [EMAIL PROTECTED] To:"Post all your questions about iText here" itext-questions@lists.sourceforge.net Cc: Date:Mon, 24 Nov 2008 18:23:43 +0100 Subject:Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image Hello,swap Step 4.1 with Step 4.2. You must place the text, than place the tif image. fabrizio -This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100url=""> ___iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to pass field value from main pdf to attchemnt.
Which of the various methods in that call are throwing? Are you using Acrobat or Reader? What version? Where is this script being run from? A button? Menu? Other? Leonard On Nov 24, 2008, at 2:47 PM, rajeshkarka wrote: Hi All, I am working on PDF attachments.I need to pass a parameter from Main PDF to attachemnt pdf. I tried like this. var oDoc = this.openDataObject(\estatement \); var id = this.getField(\id\).value; app.alert(\id from the Main PDF: \+id); oDoc .getField(\id\).value=id; oDoc.close(); I am doing like this but its throwing NotAllowdError: security setting prevent access this property or method. Is there any other way to do this.Plz help me. regards, Rajesh Karka -- View this message in context: http://www.nabble.com/How-to-pass-field-value-from-main-pdf-to-attchemnt.-tp20661075p20661075.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
DO NOT use white text... Instead, use Text Render Mode 3 which is invisible text. And then you don't have to embed the font... Leonard On Nov 24, 2008, at 2:58 PM, Fabrizio Accatino wrote: try this... 1 - create a new pdf 2 - add a new page 3 - add plain text (use white as text color) 4 - add the tiff (it covers all the page) Fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
Actually, below the image is fine for invisible textDepends on whether you only want searching _OR_ you also want copy... Leonard On Nov 24, 2008, at 7:03 PM, Kevin Day wrote: I believe that there is a font rendering mode that renders the font invisibly. http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf Section 9.3.6 - Table 106 - Mode = 3 Not sure if iText supports that rendering mode, but that would be far preferable than messing with Z-order and font color. If you do use that rendering mode, then you want the text to appear *above* the image in the z-order. - K --- Original Message --- From: Fabrizio Accatino [EMAIL PROTECTED] To: Post all your questions about iText here itext-questions@lists.sourceforge.net Cc: Date: Mon, 24 Nov 2008 18:23:43 +0100 Subject: Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image Hello, swap Step 4.1 with Step 4.2. You must place the text, than place the tif image. fabrizio - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Using wingdings and chiller in a pdf file
Moreover, the fonts work on Adobe but Foxit pdf reader doesn't want to render them...please can anyone help? Ruskin On Mon, Nov 24, 2008 at 2:07 PM, Ruskin Dantra [EMAIL PROTECTED]wrote: Hi All, I am a newbie to itext and I am simply trying to print a simple string in wingdings and chiller using the itext 1.4.6.2 engine under .net. Neither of the two fonts work...after some digging I found this email back in 2003 http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg04203.html although I have no clue what a code page is. Can anyone shine some light or provide a simple working solution on how to use these special fonts within itext? Thanks Ruskin - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image
I don't have enough experience with doing this to say for sure - maybe Acrobat just ignores z-ordering when it processing selection gestures and/or text hi-lighting - but I kind of think the z-order is important here (Acrobat will certainly allow you to find text if it is below the image - but will it hi-light the found text?). - K --- Original Message --- From:Leonard Rosenthol [EMAIL PROTECTED] To:Post all your questions about iText here itext-questions@lists.sourceforge.net Cc: Date:Mon, 24 Nov 2008 20:09:35 +0100 Subject:Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image Actually, below the image is fine for invisible textDepends on whether you only want searching _OR_ you also want copy... Leonard On Nov 24, 2008, at 7:03 PM, Kevin Day wrote: I believe that there is a font rendering mode that renders the font invisibly. http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf Section 9.3.6 - Table 106 - Mode = 3 Not sure if iText supports that rendering mode, but that would be far preferable than messing with Z-order and font color. If you do use that rendering mode, then you want the text to appear *above* the image in the z-order. - K ---Original Message--- From:"Fabrizio Accatino"[EMAIL PROTECTED] To:"Post all your questions about iText here"itext-questions@lists.sourceforge.net Cc: Date:Mon, 24 Nov 2008 18:23:43 +0100 Subject:Re: [iText-questions] itextsharp for reproduce PDF searchable form TIFF image Hello,swap Step 4.1 with Step 4.2. You must place the text, than place the tif image.fabrizio -This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100url=""> ___iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the iText book:http://www.1t3xt.com/docs/book.php-This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id =100url="">iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the iText book:http://www.1t3xt.com/docs/book.php -This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100url=""> ___iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] problem while merging/consolidating PDF's
Indraneel wrote: Hey Paulo, Please find the code attahced in the above reply. Sorry I could not put those documents in a public site. If you can give me your personal e-mail I can send it to you. Thanks Indraneel-3 wrote: Hi Paulo, I have correction here..Those individual pdfs are forms and they are generated using ColdFusions inbuilt pdf generator (I think using Adobe Life Cycle). But I was able to merge the pdfs generated using iText. Show us some code and PDFs. Paulo From: Indraneel Sanikommu [EMAIL PROTECTED] Sent: Tuesday, November 18, 2008 11:21 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] problem while merging/consolidating PDF's Hi all, I have different pdf files which were generated using different pdf writers (UJAC..etc). Now I am trying to add them up into a single pdf file, I am using Lowagie (iText 2.0.1) for this purpose. Now I have generated a pdf containing pages from different pdf's, but some of the pages came out blank, these blank pages are from the pdfs which were generated using UJAC. In short I was able to see all the pages as it is except the pages generated using UJAC. Any suggestions on why it didn't show the pages generated using UJAC. Thanks neel http://www.nabble.com/file/p20593041/PDF%2Bbundle.txt PDF+bundle.txt -- View this message in context: http://www.nabble.com/problem-while-merging-consolidating-PDF%27s-tp20577060p20671391.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
[iText-questions] Adding Form Fields
Hello, I have several hundred PDF documents that I'd like to turn into Acroforms. Adobe Acrobat does a pretty good job of identifying check boxes, and different fields designated with underlines, but it doesn't completely address my situation. In the document set I'm trying to convert, the original authors used the following convention to identify fields: First Name: [FIRST NAME] Last Name: [LAST NAME] Acrobat ignores these. Is it possible with iText to locate text (in this case, surrounded by brackets) and replace it with a field? If there is a tool better suited for this, I'd appreciate a pointer. I'm not looking for a solution (I'll dig that out myself), I was just looking for some help avoiding blind alleys. Thanks! - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] Adding Form Fields
The new parser (com.lowagie.text.pdf.parser.SimpleTextExtractingPdfContentStreamParser) will set the stage for you on locating the text. Thefirst challenge that I forsee is determining the field position and size relative to where that text is placed - for example, it is highly unlikely that you want the field width to be the width of the text string [FIRST NAME]... If they left justified that text, and the field width is the same for all first name fields, then you are good to go. If not, then you might have to do some additional work - look for the colon immediately prior to [FIRST NAME] - use it's position plus some margin for the start of the field - then your guess is as good as mine for determining the field width. The other challenge (maybe not as big - but maybe even bigger) is how to get rid of the existing text... It might be sufficient to just place the Acro field over top of the existing text, or you might have to do something with directly editing the content stream... While editing an existing content stream is certainly an interesting problem, I'm not sure I'd want to be tackling it without a lot of time on my hands :-) Cheerio, - K --- Original Message --- From:Robert Morse [EMAIL PROTECTED] To:Post all your questions about iText here itext-questions@lists.sourceforge.net Cc: Date:Mon, 24 Nov 2008 18:35:05 -0700 Subject:[iText-questions] Adding Form Fields Hello,I have several hundred PDF documents that I'd like to turn into Acroforms. Adobe Acrobat does a pretty good job of identifying check boxes, and different fields designated with underlines, but it doesn't completely address my situation.In the document set I'm trying to convert, the original authors used the following convention to identify fields:First Name: [FIRST NAME]Last Name: [LAST NAME]Acrobat ignores these. Is it possible with iText to locate text (in this case, surrounded by brackets) and replace it with a field?If there is a tool better suited for this, I'd appreciate a pointer. I'm not looking for a solution (I'll dig that out myself), I was just lookingfor some help avoiding blind alleys.Thanks!-This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100url="">___iText-questions mailing listiText-questions@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/itext-questionsBuy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to pass field value from main pdf to attchemnt.
Hi, 1) I am using both Acrobat8 and Reader7,8,9 2) var oDoc = this.openDataObject(\estatement \); this line is throwing error. 3) This script is embedded in pdf and run when you click on a button. regards, Rajsh Karka. On Tue, Nov 25, 2008 at 12:37 AM, Leonard Rosenthol [EMAIL PROTECTED]wrote: Which of the various methods in that call are throwing? Are you using Acrobat or Reader? What version? Where is this script being run from? A button? Menu? Other? Leonard On Nov 24, 2008, at 2:47 PM, rajeshkarka wrote: Hi All, I am working on PDF attachments.I need to pass a parameter from Main PDF to attachemnt pdf. I tried like this. var oDoc = this.openDataObject(\estatement \); var id = this.getField(\id\).value; app.alert(\id from the Main PDF: \+id); oDoc .getField(\id\).value=id; oDoc.close(); I am doing like this but its throwing NotAllowdError: security setting prevent access this property or method. Is there any other way to do this.Plz help me. regards, Rajesh Karka -- View this message in context: http://www.nabble.com/How-to-pass-field-value-from-main-pdf-to-attchemnt.-tp20661075p20661075.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- Thanks Regards Rajesh Karka - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
Re: [iText-questions] How to pass field value from main pdf to attchemnt.
Hi, 1) I am using both Acrobat8 and Reader7,8,9 2) var oDoc = this.openDataObject(\estatement \); this line is throwing error. 3) This script is embedded in pdf and run when you click on a button. regards, Rajsh Karka. Leonard Rosenthol wrote: Which of the various methods in that call are throwing? Are you using Acrobat or Reader? What version? Where is this script being run from? A button? Menu? Other? Leonard On Nov 24, 2008, at 2:47 PM, rajeshkarka wrote: Hi All, I am working on PDF attachments.I need to pass a parameter from Main PDF to attachemnt pdf. I tried like this. var oDoc = this.openDataObject(\estatement \); var id = this.getField(\id\).value; app.alert(\id from the Main PDF: \+id); oDoc .getField(\id\).value=id; oDoc.close(); I am doing like this but its throwing NotAllowdError: security setting prevent access this property or method. Is there any other way to do this.Plz help me. regards, Rajesh Karka -- View this message in context: http://www.nabble.com/How-to-pass-field-value-from-main-pdf-to-attchemnt.-tp20661075p20661075.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php -- View this message in context: http://www.nabble.com/How-to-pass-field-value-from-main-pdf-to-attchemnt.-tp20661075p20675385.html Sent from the iText - General mailing list archive at Nabble.com. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php