[iText-questions] Problem with istance of different module
Hi, I have the following problem In my pdf file i have created in my pdf I have created a module, by a botton I create more istance of this module and I save a field that counts the number of istance. The module contain another module , and I can create by a button more istance. How I can record the number of istance of the relative module to the various istance of the first module. Example Module1 (istance = 1) Module 2 (istance = 1) Module 2(istance = 2) Module 2 (istance = 3) Module1 (istance = 2) Module 2 (istance = 1) Module 2(istance = 2) Count Module1 = 2 Count Module2 for first istance of Module1 = 3 Count Module2 for second istance of Module1 = 2 I hope of being be clear Thanks. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] Enabling PDFs for Commenting?
Hi, is it possilble to enable PDFs for commenting with iText? Thanks for reply, Matthias -- View this message in context: http://www.nabble.com/Enabling-PDFs-for-Commenting--tp20851645p20851645.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] TimeStamp Verification
How can i verify a timestamp that´s inside a Pdf document with iText? I have been looking over the web, but i didnt find any solution. Does anybody know how to do this? Edward. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] iText invisible annotation
No, there is not. There is a dictionary called OCProperties in the catalog which stores the global list of OCGs. Look at the APIs for getting the catalog, then adding your own dictionaries, strings, etc. Leonard On Dec 4, 2008, at 6:34 PM, Sankha Subhra Dey wrote: You are correct, but there's a dictionary named OCP inside the document catalog, which is what I am using. For using PieceInfo, could you please point to the type of API calls you are referring to? Has anyone tried doing this before? SSD. On Thu, 2008-12-04 at 18:20 -0500, Leonard Rosenthol wrote: The correct term is Optional Content Group or OCG. Using a non- visible OCG is certainly an excellent option, provided that you are working with Adobe Reader 6 or later (OCGs were introduced in PDF 1.5) or some other OCG-aware viewer (which Xpdf and Apple's Preview are NOT). To use PieceInfo, you should use some of the lower level API calls. Leonard On Dec 4, 2008, at 5:56 PM, Sankha Subhra Dey wrote: OCP stands for Optional Content Property (sorry I abbreviated it). It might get displayed in conforming viewers, but I haven't seen that on Adobe Reader, xpdf or Document Viewer. Yes right, but I couldn't find out a way to get a handle to the Private section in PieceInfo. If someone knows of a way, could you please post it here? SSD. On Thu, 2008-12-04 at 17:46 -0500, Leonard Rosenthol wrote: I don't know what an OCP section is - so please explain. There are standard places for place private information in a PDF - either at the document or page level. Look at PieceInfo in the PDF Reference. If you want something that a user CAN see - try XMP. Leonard On Dec 4, 2008, at 3:25 PM, Sankha Subhra Dey wrote: I am trying to hide some information in multiple places within a pdf file. I could store them in the OCP section (doesn't show up on AR or xpdf), and I also wanted to create an invisible annotation. I tried to store it in the Private section, but I couldn't. SSD On Thu, 2008-12-04 at 15:20 -0500, Leonard Rosenthol wrote: Why do you want to do this? Leonard On Dec 4, 2008, at 2:45 AM, Sankha Subhra Dey wrote: Hi I have been (fruitlessly) trying to create an invisible annotation in a PDF file from a PdfStamper. I see the annotation in the pdf, but it is always visible. Here is my code: = = = = = = = = = PdfAnnotation pdfAnnotation = PdfAnnotation.createText(stamper.getWriter(), new Rectangle(1, 1, 1, 1), Comment, pattern, false, null); pdfAnnotation.put(PdfName.F, new PdfNumber(PdfAnnotation.FLAGS_NOVIEW | PdfAnnotation.FLAGS_INVISIBLE | PdfAnnotation.FLAGS_HIDDEN)); stamper.addAnnotation(pdfAnnotation, 1); = = = = = = = = = I know this topic has probably been covered before, because I modeled my after something I read in the archives. Could someone tell me what's missing? Thanks, SSD. - 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] Antwort: Enabling PDFs for Commenting?
Hi Matthias, the short answer is no. For a detailed explanation look at Re: [iText-questions] HELP PLEASE! PdfReader.removeUsageRights(). It was posted yesterday at 8:25 p.m. by Paulo ([EMAIL PROTECTED]). Best Regards, Benjamin Matthias Uhler [EMAIL PROTECTED] 05.12.2008 11:58 Bitte antworten an Post all your questions about iText here itext-questions@lists.sourceforge.net An itext-questions@lists.sourceforge.net Kopie Thema [iText-questions] Enabling PDFs for Commenting? Hi, is it possilble to enable PDFs for commenting with iText? Thanks for reply, Matthias -- View this message in context: http://www.nabble.com/Enabling-PDFs-for-Commenting--tp20851645p20851645.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 Viessmann IT Service GmbH Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach Sitz der Gesellschaft: Allendorf (Eder) - Registergericht: AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] XFA in PDFs
I've opened the resulting document in various versions of PDF Reader, including Acrobat 9, to no avail. Perhaps the way I'm using the XFA API is incorrect: XfaForm xfaForm = stamper.getAcroFields().getXfa(); ... xfaForm.setDomDocument(toDom(newXml)); xfaForm.setChanged(true); XfaForm.setXfa(xfaForm, stamper.getReader(), stamper.getWriter()); ... Any further ideas would be much appreciated--please refer to my original post for the attachments, including standalone test program and test data. Cheers. -maX -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 5:49 PM To: Post all your questions about iText here Subject: Re: [iText-questions] XFA in PDFs I haven't read the code, but the PDF itself should correctly update in Acrobat/Reader 8 and later after an XFA update. Leonard On Dec 4, 2008, at 4:45 PM, Ekstrom, Max wrote: Dear iText, I posted a similar query a few weeks ago and fear my question was not clear enough. Attached is a simple standalone Java program that reads in a PDF, changes it via the XML within an XFA form, and then spits it out to tmp.pdf. Also attached an example source PDF containing an XFA to be modified. When I run this program it completes without error. But when I open the new PDF, no changes have taken place, or at least not visibly. Is there some additional step I must take to sync the XFA with the form's appearance to the enduser? Thanks so much! - Max Roland Ekstrom Senior Software Engineer/Project Architect Office of Administrative Systems (617) 384-7910 PdfXmlPopulator.javaRR_Budget_A- V1.1 .pdf -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix. co m/___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix. co m/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] [SPAM] Antwort: Enabling PDFs for Commenting?
Hello Actually, it seems to be possible... Not for comment with Adobe Reader but for Foxit. Here's what i did, following the answers to my questions. I used Pdf Reader reader = new PdfReader(file_with_restritions.pdf); PdfEncryptor.encrypt ( reader, new FileOutputStream(file_without_restritions.pdf), null, null, PdfWriter.ALLOW_ASSEMBLY | (other permissions.), false ); That document, before i did this, had some restritions, including comment not allowed. With Adobe Reader i still couldn't add any comments, although it said that it was allowed(under the document security properties, not under adobe document properties). But i tried the Foxit reader and VOILÁ! It seems that Adobe Reader ignores all the allowed document permissions if those permissions weren't set by adobe software like Adobe Acrobat. Foxit only reades the document permissions so it is possible to comment using this tool. Hope this helps, Diana Benjamin Rein escreveu: Hi Matthias, the short answer is no. For a detailed explanation look at Re: [iText-questions] HELP PLEASE! PdfReader.removeUsageRights(). It was posted yesterday at 8:25 p.m. by Paulo ([EMAIL PROTECTED]). Best Regards, Benjamin *Matthias Uhler [EMAIL PROTECTED]* 05.12.2008 11:58 Bitte antworten an Post all your questions about iText here itext-questions@lists.sourceforge.net An itext-questions@lists.sourceforge.net Kopie Thema [iText-questions] Enabling PDFs for Commenting? Hi, is it possilble to enable PDFs for commenting with iText? Thanks for reply, Matthias -- View this message in context: http://www.nabble.com/Enabling-PDFs-for-Commenting--tp20851645p20851645.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 Viessmann IT Service GmbH Geschäftsführer: Dirk Klöckner, Dr. Harald Dörnbach Sitz der Gesellschaft: Allendorf (Eder) - Registergericht: AG Marburg (Lahn) - HRB 5324 - USt-IdNr.: DE258558424 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] iText invisible annotation
Yes we are talking about the same thing :P As I said, OCP = Optional Content Properties = OCProperties. I tend to shorten it up when referring to it. Anyway, if someone could please tell me what's wrong with my invisible annotation code, or point me to an example to add a Private section to the document, that would be great. Thanks, SSD. On Fri, 2008-12-05 at 06:41 -0500, Leonard Rosenthol wrote: No, there is not. There is a dictionary called OCPropeout thebrties in the catalog which stores the global list of OCGs. Look at the APIs for getting the catalog, then adding your own dictionaries, strings, etc. Leonard On Dec 4, 2008, at 6:34 PM, Sankha Subhra Dey wrote: You are correct, but there's a dictionary named OCP inside the document catalog, which is what I am using. For using PieceInfo, could you please point to the type of API calls you are referring to? Has anyone tried doing this before? SSD. On Thu, 2008-12-04 at 18:20 -0500, Leonard Rosenthol wrote: The correct term is Optional Content Group or OCG. Using a non- visible OCG is certainly an excellent option, provided that you are working with Adobe Reader 6 or later (OCGs were introduced in PDF 1.5) or some other OCG-aware viewer (which Xpdf and Apple's Preview are NOT). To use PieceInfo, you should use some of the lower level API calls. Leonard On Dec 4, 2008, at 5:56 PM, Sankha Subhra Dey wrote: OCP stands for Optional Content Property (sorry I abbreviated it). It might get displayed in conforming viewers, but I haven't seen that on Adobe Reader, xpdf or Document Viewer. Yes right, but I couldn't find out a way to get a handle to the Private section in PieceInfo. If someone knows of a way, could you please post it here? SSD. On Thu, 2008-12-04 at 17:46 -0500, Leonard Rosenthol wrote: I don't know what an OCP section is - so please explain. There are standard places for place private information in a PDF - either at the document or page level. Look at PieceInfo in the PDF Reference. If you want something that a user CAN see - try XMP. Leonard On Dec 4, 2008, at 3:25 PM, Sankha Subhra Dey wrote: I am trying to hide some information in multiple places within a pdf file. I could store them in the OCP section (doesn't show up on AR or xpdf), and I also wanted to create an invisible annotation. I tried to store it in the Private section, but I couldn't. SSD On Thu, 2008-12-04 at 15:20 -0500, Leonard Rosenthol wrote: Why do you want to do this? Leonard On Dec 4, 2008, at 2:45 AM, Sankha Subhra Dey wrote: Hi I have been (fruitlessly) trying to create an invisible annotation in a PDF file from a PdfStamper. I see the annotation in the pdf, but it is always visible. Here is my code: = = = = = = = = = PdfAnnotation pdfAnnotation = PdfAnnotation.createText(stamper.getWriter(), new Rectangle(1, 1, 1, 1), Comment, pattern, false, null); pdfAnnotation.put(PdfName.F, new PdfNumber(PdfAnnotation.FLAGS_NOVIEW | PdfAnnotation.FLAGS_INVISIBLE | PdfAnnotation.FLAGS_HIDDEN)); stamper.addAnnotation(pdfAnnotation, 1); = = = = = = = = = I know this topic has probably been covered before, because I modeled my after something I read in the archives. Could someone tell me what's missing? Thanks, SSD. - 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] Is iTextSharp kept up to date with iText?
It looks like it is but I figure better to check. thanks - dave -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] Possible encoding problem using PdfCopyFields
Hi, I'm trying to concatenate two existing PDF documents together and then deliver the resulting PDF through a web application. To concatenate the existing PDFs I use: PdfReader reader1 = new PdfReader(coverFile); PdfReader reader2 = new PdfReader(contentFile); PdfCopyFields copy = new PdfCopyFields(new FileOutputStream(outFile)); copy.addDocument(reader1); copy.addDocument(reader2); copy.close(); Here coverFile, contentFile and outFile are all Strings representing the paths to the desired resource. This works in every circumstance (no matter what PDF is used for coverFile or contentFile) if I inspect the resulting PDF on the local file system. However, if I deliver the resulting PDF through my web application, which is OJS 2.2.0.0, then ~half the time I'm delivered the expected result and ~half the time I get an error from the browser's Adobe Reader plugin telling me The file is damaged and could not be repaired. To clarify my last sentence, the process works consistently with ~half of the test documents I use and fails consistently with ~half of the test documents I use. Keep in mind, when I look at the supposedly damaged file locally with Adobe Reader there seems to be no problem with it. I'm using OJS 2.2.0.0 to ingest, store and deliver my PDF documents. The web application is configured with a client charset=utf-8, a connection charset=utf-8, and a database charset=utf-8. The only thing I can think of is that the append process is sometimes producing PDF files that are not utf-8. Any insight into this problem would be appreciated. Thanks, Adam -- View this message in context: http://www.nabble.com/Possible-encoding-problem-using-PdfCopyFields-tp20856689p20856689.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] Is iTextSharp kept up to date with iText?
It's two versions late but it will be synchronized in February (time permits). Paulo -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 3:27 PM To: itext Subject: [iText-questions] Is iTextSharp kept up to date with iText? It looks like it is but I figure better to check. thanks - dave Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] Concatinating PDFs
Hi All, I have a requirement which I am working on to concatinate PDFs: The two sources are: (A) HTML (B) Jasper report Document A is converted to PDF and B is exported as PDF, each having one page. I have done successful merge of both into third PDF document having two pages using iText API. But the requirement is that both the documents should be merged into one page, without change to font size. How do I do this? Thank you, HM -- View this message in context: http://www.nabble.com/Concatinating-PDFs-tp20856864p20856864.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] iText EPS support
Hello Leonard, Thank you for your message! Do iText supports SVG and/or EMF? I try to make from a pool foreign PostScript jobs a PDF. BR! rumen -Urspr?ngliche Nachricht- Von: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 04. Dezember 2008 07:58 An: Post all your questions about iText here Betreff: Re: [iText-questions] iText EPS support Because EPS is a historical technology that has been phased out in favor of various other modern standards. What sort of solution are you building that requires/uses EPS instead of alternatives such as PDF or SVG (or even EMF)? Leonard On Dec 3, 2008, at 11:36 AM, rumen varbanov wrote: Hi All, Why do iText not more support encapsulated PostScript? 2.1.4 - com.lowagie.text - Image.java older V - oldexamp.objects.images.tiff - EncapsulatedPostScript.java Thank you! rumen - Поръчки на алкохол On Line с безплатна доставка до 48 часа! http://www.partytime-bg.net/ - 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] Not enough space during creating a newPdfReader-Instance - problem found
FYI: We are using JRE with 3gigs of memory on our production system. The error occurs in JRE-Method - we assume the memory mapping returns an int above 2gig which is not correctly specified as unsigned integer and so becomes negative. Starting the jre with less than 2gigs works. Elmar _ Von: Brauchart Elmar e1-solutions Gesendet: Donnerstag, 04. Dezember 2008 20:37 An: itext-questions@lists.sourceforge.net Betreff: [iText-questions] Not enough space during creating a newPdfReader-Instance I tried to deploy a pdf-creating java-class to our production system (all is running well on the test-systems) and there, I always get to following error. Just tried this single statement com.lowagie.text.pdf.PdfReader readerz = new com.lowagie.text.pdf.PdfReader(/templates/releaseFormTemplate.pdf); in a jsp-page. Anyone an idea what the problem is? Discspace is no problem org.apache.jasper.JasperException: Not enough space (errno:12) org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle tWrapper.java:460) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:361) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) wt.httpgw.filter.WTContextBeanFilter.doFilterInternal(WTContextBeanFilte r.java:69) wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:4 9) wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:326) wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:101 2) wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFil ter.java:55) root cause java.io.IOException: Not enough space (errno:12) sun.nio.ch.FileChannelImpl.map0(Native Method) sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:913) com.lowagie.text.pdf.MappedRandomAccessFile.init(Unknown Source) com.lowagie.text.pdf.MappedRandomAccessFile.init(Unknown Source) com.lowagie.text.pdf.RandomAccessFileOrArray.init(Unknown Source) com.lowagie.text.pdf.RandomAccessFileOrArray.init(Unknown Source) com.lowagie.text.pdf.PRTokeniser.init(Unknown Source) com.lowagie.text.pdf.PdfReader.init(Unknown Source) com.lowagie.text.pdf.PdfReader.init(Unknown Source) org.apache.jsp.ext.jsp.avl.pdm.part.itext_jsp._jspService(itext_jsp.java :100) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) wt.httpgw.filter.WTContextBeanFilter.doFilterInternal(WTContextBeanFilte r.java:69) wt.httpgw.filter.WTContextBeanFilter.doFilter(WTContextBeanFilter.java:4 9) wt.servlet.RequestInterrupter.doFilter(RequestInterrupter.java:326) wt.servlet.ServletRequestMonitor.doFilter(ServletRequestMonitor.java:101 2) wt.servlet.ServletRequestMonitorFilter.doFilter(ServletRequestMonitorFil ter.java:55) Thanks Elmar Brauchart _ AVL List GmbH, Firmensitz: Graz, Firmenbuchnummer: FN 53507M, Landesgericht fuer ZRS Graz AVL List GmbH, Firmensitz: Graz, Firmenbuchnummer: FN 53507M, Landesgericht fuer ZRS Graz -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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-- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] iText question
Please help if you can answer this question. I need iText for a specific purpose. I need to pick apart PDF documents and analyze the content of a PDF for possibly unintentionally included sensitive information. I need to find an API that has a complete set of packages/classes which will parse and pull apart PDF. Is iText mainly suited for creating PDF documents or can it also be used as a complete API for, examples... pulling/parsing PDF documents, extracting any and all objects which may be embedded in it, finding similar color text to its background, finding hidden items, etc, etc. This is very important at the moment for me, so responses would be greatly appreciated. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] Auto fit text to table height
Is there an easy way to make the text inside a table stretch out so that it autofits the exact table height just like you can set it to add extra space between words to fit the exact table column width? I have text combined with pictures and I don't want the pictures to stretch just the spacing between the text lines. -- View this message in context: http://www.nabble.com/Auto-fit-text-to-table-height-tp20859808p20859808.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] QR Barcodes
Hi - I am wondering if QR barcode support might be possible with iText? We'd in particular like to use in conjunction with the xmf add-on to pdftk developed by chicks. Thanks. Mike Smith [EMAIL PROTECTED] +1 (902) 405-4756. *** Barcodes: iText also comes with a number of classes that generate barcodes. The following types are supported: * Barcode39: http://www.1t3xt.info/api/com/lowagie/text/pdf/Barcode39.html code 39 and code 39 extended * Barcode128: http://www.1t3xt.info/api/com/lowagie/text/pdf/Barcode128.html * CODE128 - plain barcode 128. * CODE128_UCC - support for UCC/EAN-128 with a full list of AI. * CODE128_RAW - raw mode. The code attribute has the actual codes from 0 to 105 followed by '\u' and the human readable text. * BarcodeEAN: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeEAN.html EAN13, EAN8, UPCA, UPCE, and EAN with supplemental 5, EAN with supplemental 5, EAN with supplemental 2 * BarcodeEANSUPP: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeEANSUPP.html takes 2 barcodes, an EAN/UPC and a supplemental * BarcodeInter25: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeInter25.html interleaved 2 of 5 * BarcodePostnet: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodePostnet.html postnet and planet * BarcodePDF417: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodePDF417.html the 2D barcode PDF417 * BarcodeCodabar: http://www.1t3xt.info/api/com/lowagie/text/pdf/BarcodeCodabar.html codabar This is an code example to generate an EAN-barcode with value 9780201615883: PdfContentByte cb = writer.getDirectContent(); BarcodeEAN codeEAN = new BarcodeEAN(); codeEAN.setCodeType(codeEAN.EAN13); codeEAN.setCode(9780201615883); Image imageEAN = codeEAN.createImageWithBarcode(cb, null, null); document.add(new Phrase(new Chunk(imageEAN, 0, 0))); -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ 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] Problems with getPageNumber
Anyone have any ideas here? This is really holding me back right now! Thanks. Dominic Maricic wrote: Hi Guys, I've been using iText for years (using the latest version right now) and have had one problem that's occasionally occured. I finally sat down and tried to figure the problem out and here's my issue: I generate a table of contents which is a combination of a few tables. I call document.getNewPage, then call write.getPageNumber() before I start writing the TOC and I call it right after. Then I subtract the two and add 1 (as the TOC could start and end on the same page) to figure out the total number of TOC pages. The problem is that every once in a while the last table print out very close to the end of the last page (but does not go over and no extra page is printed). When this happens writer.getPageNumber() returns the NEXT page number rather than the current page number the TOC is on. To test this I also tried getting the end page number, call document.newPage() and getting the page number again. The times when the numbers come out ok there will be a difference of one page. When the problem occurs (table is close to end of the page), I'll get the same page number before and after the document.newPage() call, both are 1 higher than they should be. This screws up all my page numbering and my reordering later on as well. Anyone have any ideas on this? It's been happening since back in the 1.x versions of iText (this is for Java). Thanks, Dominic - [EMAIL PROTECTED] - 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/Problems-with-getPageNumber-tp20822470p20859397.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] XFA in PDFs
Can you post a sample? Leonard On Dec 5, 2008, at 9:33 AM, Ekstrom, Max wrote: I've opened the resulting document in various versions of PDF Reader, including Acrobat 9, to no avail. Perhaps the way I'm using the XFA API is incorrect: XfaForm xfaForm = stamper.getAcroFields().getXfa(); ... xfaForm.setDomDocument(toDom(newXml)); xfaForm.setChanged(true); XfaForm.setXfa(xfaForm, stamper.getReader(), stamper.getWriter()); ... Any further ideas would be much appreciated--please refer to my original post for the attachments, including standalone test program and test data. Cheers. -maX -Original Message- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 5:49 PM To: Post all your questions about iText here Subject: Re: [iText-questions] XFA in PDFs I haven't read the code, but the PDF itself should correctly update in Acrobat/Reader 8 and later after an XFA update. Leonard On Dec 4, 2008, at 4:45 PM, Ekstrom, Max wrote: Dear iText, I posted a similar query a few weeks ago and fear my question was not clear enough. Attached is a simple standalone Java program that reads in a PDF, changes it via the XML within an XFA form, and then spits it out to tmp.pdf. Also attached an example source PDF containing an XFA to be modified. When I run this program it completes without error. But when I open the new PDF, no changes have taken place, or at least not visibly. Is there some additional step I must take to sync the XFA with the form's appearance to the enduser? Thanks so much! - Max Roland Ekstrom Senior Software Engineer/Project Architect Office of Administrative Systems (617) 384-7910 PdfXmlPopulator.javaRR_Budget_A- V1.1 .pdf -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix . co m/___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix . co m/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] iText EPS support
Yes, iText supports both. Leonard On Dec 4, 2008, at 6:06 PM, rumen varbanov wrote: Hello Leonard, Thank you for your message! Do iText supports SVG and/or EMF? I try to make from a pool foreign PostScript jobs a PDF. BR! rumen -Urspr?ngliche Nachricht- Von: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 04. Dezember 2008 07:58 An: Post all your questions about iText here Betreff: Re: [iText-questions] iText EPS support Because EPS is a historical technology that has been phased out in favor of various other modern standards. What sort of solution are you building that requires/uses EPS instead of alternatives such as PDF or SVG (or even EMF)? Leonard On Dec 3, 2008, at 11:36 AM, rumen varbanov wrote: Hi All, Why do iText not more support encapsulated PostScript? 2.1.4 - com.lowagie.text - Image.java older V - oldexamp.objects.images.tiff - EncapsulatedPostScript.java Thank you! rumen - Поръчки на алкохол On Line с безплатна доставка до 48 часа! http://www.partytime-bg.net/ - 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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 -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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] iText question
The broad answer to your question is iText can pull apart a PDF into its elements, but that probably won't solve your probem. PDF files do not necessarily contain text in a sequential order. The text can be written as one glyph (letter) at one point and then the remaining characters as a series of separate strings that are emitted later on. So, there is no guarantee that the word confidential will ever appear as a whole word in the extracted elements. As a result, there is no guarantee that what you're looking to do can be done. Some other tools out there can do limited editing if the PDF happens to have the words written out together, but this depends on the PDF generator and some luck. ---mr. bean guitar-4 wrote: Please help if you can answer this question. I need iText for a specific purpose. I need to pick apart PDF documents and analyze the content of a PDF for possibly unintentionally included sensitive information. I need to find an API that has a complete set of packages/classes which will parse and pull apart PDF. Is iText mainly suited for creating PDF documents or can it also be used as a complete API for, examples... pulling/parsing PDF documents, extracting any and all objects which may be embedded in it, finding similar color text to its background, finding hidden items, etc, etc. This is very important at the moment for me, so responses would be greatly appreciated. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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/iText-question-tp20857833p20860994.html Sent from the iText - General mailing list archive at Nabble.com. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ 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