RE: [iText-questions] Closing a PDF app window by JavaScript Code
Hello Serafin, Could you post your JS code for automatic printing, I should do a similar thing (in my case the user could choose the printer). I think your code could help me and other people in this list. I'm searching for an answer to your question. Thanks in advance for your answer. HUTTIN Pierre I.R.I.S. ECM Luxembourg 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Message d'origine- De : Serafín Orillán [mailto:[EMAIL PROTECTED] Envoyé : jeudi 5 août 2004 08:56 À : [EMAIL PROTECTED] Objet : [iText-questions] Closing a PDF app window by JavaScript Code Hello all! I use iText to create a PDF document. I want the document to print and to close automatically when i open it. I know how to print it without the user interaction. But i dont know how to have it closed when it finishes printing. I use PdfAction.javaScript() to add the JS code to print the document, but what Java Script code should i add to close the app?? Thanx in advance. Regards, -- Serafín Orillán Chaparro Isotrol S.A. Avda. de la Innovación s/n +34 955 036 800 e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Off-Topic Question
Hello, I want to make a change of rights on a document on event. In fact I want that a document can be print only one time, and when it was printed the right should be disabled. I don’t know if it’s possible, but maybe with _javascript_ and if anybody have any suggest, it could be helpful for me. Thanks in advance, Pierre HUTTIN Pierre I.R.I.S. ECM Luxembourg 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29-14-11-1 fax : (+352) 29-14-11-650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** <>
RE: [iText-questions] Encrypting PDFs makes the encrypted version upside down.
Hello, To be compatible with acrobat 3 or 4, you should use an encryption of 40bit. It’ would be useful to add a parameter to manage pdf output version in com.lowagie.tools.encrypt_pdf.java, by the way it was interesting to do that in com.lowagie.pdf.PdfEncryptor.java too. Best regards, HUTTIN Pierre I.R.I.S. ECM Luxembourg 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29-14-11-1 fax : (+352) 29-14-11-650 url : http://www.ecm.lu De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 26 mars 2004 01:01 À : [EMAIL PROTECTED]; [EMAIL PROTECTED] Objet : RE: [iText-questions] Encrypting PDFs makes the encrypted version upside down. Hi Paulo, Yup, I’ve noticed that too. But when I use encrypt_pdf.java, the produced PDF is only compatible with Acrobat 5.0 and up. Is there a way so that it is compatible with Acrobat 3 or 4? -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 5:37 PM To: Vicencio, Wilbert V.; [EMAIL PROTECTED] Subject: RE: [iText-questions] Encrypting PDFs makes the encrypted version upside down. That's old code. Use com.lowagie.tools.encrypt_pdf.java. Best Regards, Paulo Soares From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 11:56 PM To: Paulo Soares; [EMAIL PROTECTED] Subject: RE: [iText-questions] Encrypting PDFs makes the encrypted version upside down. It seems that the code that encrypted it reads the PDF file right-side up, but retains the rotation value of the old PDF file. Here’s the code if you would like to look. It just seems so odd to me too: /* * $Id: Encrypt.java,v 1.3 2002/02/28 09:08:58 blowagie Exp $ * $Name: $ * * This code is free software. It may only be copied or modified * if you include the following copyright notice: * * --> Copyright 2002 by Bruno Lowagie <-- * * This code is part of the 'iText Tutorial'. * You can find the complete tutorial at the following address: * http://www.lowagie.com/iText/tutorial/ * * This code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * [EMAIL PROTECTED] */ import java.io.*; import com.lowagie.text.*; import com.lowagie.text.pdf.*; public class Encrypt extends java.lang.Object { /** * @param args the command line arguments */ public static void main (String args[]) { if (args.length != 3) { System.err.println("This tools needs 3 parameters:\njava Encrypt srcfile destfile password"); } else { try { // we create a reader for a certain document PdfReader reader = new PdfReader(args[0]); // we retrieve the total number of pages int n = reader.getNumberOfPages(); System.out.println("There are " + n + " pages in the original file."); // step 1: creation of a document-object Document document = new Document(reader.getPageSizeWithRotation(1)); // step 2: we create a writer that listens to the document PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(args[1])); writer.setEncryption(PdfWriter.STRENGTH128BITS, args[2], null, PdfWriter.AllowPrinting); // step 3: we open the document document.open(); PdfContentByte cb = writer.getDirectContent(); PdfImportedPage page; int rotation; int i = 0; // step 4: we add content while (i < n) { i++; document.setPageSize(reader.getPageSizeWithRotation(i)); document.newPage(); page = writer.getImportedPage(reader, i); rotation = reader.getPageRotation(i); if (rotation == 90 || rotation == 270) { cb.addTemplate(page, 0, -1f, 1f, 0, 0, reader.getPageSizeWithRotation(i).height()); } else { cb.addTemplate(page, 1f, 0, 0, 1f, 0, 0); } System.out.println("Processed page " + i); } // step 5: we close the document document.close(); } catch(Exception e) { System.err.println(e.getClass().getName() + ": " + e.getMessage()); } } } } -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: Wednesday, Marc
[iText-questions] BUG founded in TiffImage
Hello, I just found a bug in com.lowagie.text.pdf.codec.TiffImage class at line 307, it was write dpiX instead of dpiY /*306*/ dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_XRESOLUTION), resolutionUnit); /*307*/ dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_YRESOLUTION), resolutionUnit); /*308*/ int rowsStrip = (int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP); Correction is /*306*/ dpiX = getDpi(dir.getField(TIFFConstants.TIFFTAG_XRESOLUTION), resolutionUnit); /*307*/ dpiY = getDpi(dir.getField(TIFFConstants.TIFFTAG_YRESOLUTION), resolutionUnit); /*308*/ int rowsStrip = (int)dir.getFieldAsLong(TIFFConstants.TIFFTAG_ROWSPERSTRIP); thanks --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu **
[iText-questions] page extraction - problem
Hello, I have a little question, I want extract a page from a PDF document to generate a new document. But I have some performances problems because my sources files can have more than 50.000 pages. And the class PdfReader verify all objects in PDF file, is there anyway to bypass this step ? --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] warning with J2SE 1.5.0
I'm beginning a test campaign with j2se 1.5.0, I have not find some problem for the moment. And the performance looks like better. But no real test it's just an impression. At this time I have find no compatibility problem between j2se 1.5.0 and iText, only two warning during compilation process about the name 'enum'. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Message d'origine- De : Sherlock Simon [mailto:[EMAIL PROTECTED] Envoyé : jeudi 12 février 2004 09:15 À : 'Huttin Pierre'; [EMAIL PROTECTED] Objet : RE: [iText-questions] warning with J2SE 1.5.0 Alittle off topic but how do you find JDK1.5.0? Does it have the performance improvements Sun claim? And to bring it back on topic, aside from the issue below does iText work OK with it? Simon ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] warning with J2SE 1.5.0
Hello, Just a little thing about name of Enumeration object, in classes : - com.lowagie.text.pdf.CJKFont - com.lowagie.text.pdf.codec.TIFFDirectory The name enum generate some warning width jdk 1.5.0, because 'enum' is a reserved word. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Add Overlay ?
Hello, I have a little question, I would like to add to my PDF an overlay with a word like "duplicata" in big font and in diagonal on all pages of my document, and I would like to set the transparency of this overlay to always see the text under the overlay. Any one known where can I found some examples of this or if you have some idea how to do this. Thanks in advance for your responses. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] TIFF to PDF convertion and Annotations
http://wms.eistream.com/support/support_imagingforwindows/new_faqs/annospec. htm > >I want to convert some TIFF documents into PDF format, > > OK - iText can do that. > > > >but I want transform my TIFF Annotations into PDF Annotations, > >anybody have an idea how to do this? > > The problem here is that "TIFF annotations" aren't a standard > part of the TIFF spec - they were added by Kodak for Microsoft many > years ago and the details of how they extended TIFF aren't well > documented. I Have found this specification, from eIStream (previous name Eastman Kodak, Eastman Software, Wang) this company was the creator of Imaging for windows or unix. I suppose this is this company who have add the annotation functionality. The specs about annotations can be found at : http://wms.eistream.com/support/support_imagingforwindows/new_faqs/annospec. htm > If you get a copy of the spec, it would be possible to extend > iText to support them as well... > > If you are interesting in having the work done for you, feel > free to contact me and we can discuss custom development options... If this spec can be used to add this functionality, I'm ready to collaborate to develop with the team. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] TIFF to PDF convertion and Annotations
Hello, I want to convert some TIFF documents into PDF format, but I want transform my TIFF Annotations into PDF Annotations, anybody have an idea how to do this? I don't find a java library to extract TIFF Annotations Thanks in advance for your responses. Best Regards, --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Ascii to PDF converter
Hello, I want to make an ASCII to PDF converter. Before recreating the wheel, I'm searching if anyone has already made this, if yes and if it's possible, where can I find the sources? Thanks for your answer. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Annotations extraction
Hello, I want to extract the annotations from an existing PDF, is ti possible with iText ? If, yes how to do ? --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu **
RE: [iText-questions] Add Chunk to existing Pdf with PdfStamper
I can lose the bookmark and the existant link, if I can add at the same time a new bookmark and new link. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: mardi 17 juin 2003 12:36 To: 'Huttin Pierre'; '[EMAIL PROTECTED]' Subject: RE: [iText-questions] Add Chunk to existing Pdf with PdfStamper iText has limitations in this area. You can add links and content but lose the original links and bookmarks OR you can keep all the features of the original document but only adding content is allowed. Which one do you want? Best Regards, Paulo Soares > -Original Message- > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 11:24 > To: '[EMAIL PROTECTED]' > Subject: RE: [iText-questions] Add Chunk to existing Pdf with > PdfStamper > > > > Ok, if I can't use this way to add a link in an existing PDF, how to do > this > ? > > PS: Paulo sorry for private mail it's an error. > --- > HUTTIN Pierre > OMNIS ECM Services > 81 route de Luxembourg > L-4391 PONTPIERRE > > tel : (+352) 29 14 11 1 > fax : (+352) 29 14 11 650 > url : http://www.ecm.lu > > -Original Message- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: mardi 17 juin 2003 11:41 > To: 'Huttin Pierre'; [EMAIL PROTECTED] > Subject: RE: [iText-questions] Add Chunk to existing Pdf with PdfStamper > > You can't add interactive features with PdfStamper. By the way, links in > templates will never work. > > Best Regards, > Paulo Soares > > > -Original Message- > > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > > Sent: Tuesday, June 17, 2003 9:55 > > To: [EMAIL PROTECTED] > > Subject:[iText-questions] Add Chunk to existing Pdf with PdfStamper > > > > Hello, > > > > I try to add link into an existing PDF, I create this link with Chunk, > and > > I > > want use PdfStamp to add it. I just want to find an example how to > create > > a > > template from my chunk, like the method createTemplateWithBarcode in > > Barcode > > class. > > > > Thanks for your help. > > > > --- > > HUTTIN Pierre > > OMNIS ECM Services > > 81 route de Luxembourg > > L-4391 PONTPIERRE > > > > tel : (+352) 29 14 11 1 > > fax : (+352) 29 14 11 650 > > url : http://www.ecm.lu > > > > > > > > ** > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. If you have received this email in error please notify > > the security manager at [EMAIL PROTECTED] > > This footnote also confirms that this email message has been swept by > > the SOFITEC C.A.T.S. systems for the presence of computer viruses. > > > > For more information about C.A.T.S. please check > > http://www.sofitec.lu > > ** > > > > > > > > --- > > This SF.Net email is sponsored by: INetU > > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > > ___ > > iText-questions mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the security manager at [EMAIL PROTECTED] > This footnote also confirms that this email message has been swept by > the SOFITEC C.A.T.S. systems for the presence of computer viruses. > > For more information about C.A.T.S. please check > http://www.sofitec.lu > ** > > > > --- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You G
RE: [iText-questions] Add Chunk to existing Pdf with PdfStamper
Ok, if I can't use this way to add a link in an existing PDF, how to do this ? PS: Paulo sorry for private mail it's an error. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: mardi 17 juin 2003 11:41 To: 'Huttin Pierre'; [EMAIL PROTECTED] Subject: RE: [iText-questions] Add Chunk to existing Pdf with PdfStamper You can't add interactive features with PdfStamper. By the way, links in templates will never work. Best Regards, Paulo Soares > -Original Message- > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 9:55 > To: [EMAIL PROTECTED] > Subject: [iText-questions] Add Chunk to existing Pdf with PdfStamper > > Hello, > > I try to add link into an existing PDF, I create this link with Chunk, and > I > want use PdfStamp to add it. I just want to find an example how to create > a > template from my chunk, like the method createTemplateWithBarcode in > Barcode > class. > > Thanks for your help. > > --- > HUTTIN Pierre > OMNIS ECM Services > 81 route de Luxembourg > L-4391 PONTPIERRE > > tel : (+352) 29 14 11 1 > fax : (+352) 29 14 11 650 > url : http://www.ecm.lu > > > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the security manager at [EMAIL PROTECTED] > This footnote also confirms that this email message has been swept by > the SOFITEC C.A.T.S. systems for the presence of computer viruses. > > For more information about C.A.T.S. please check > http://www.sofitec.lu > ** > > > > --- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > ___ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Add Chunk to existing Pdf with PdfStamper
Hello, I try to add link into an existing PDF, I create this link with Chunk, and I want use PdfStamp to add it. I just want to find an example how to create a template from my chunk, like the method createTemplateWithBarcode in Barcode class. Thanks for your help. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] Problem to cast PdfImportedPage to PdfContentByte
Hello, I try to create a class to merge some pdf like in concat_pdf.java (with keeping the acroform) and add on every page a barcode, But i have a problem to cast PdfImportedPage to PdfContentByte, the result of the cast is a null object, i don't know why the cast operation don't return any error. --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu **
[iText-questions] Merging pdf and keep annotations
Hello, I have made a script to merge some pdf documents, but I lost the annotations and the highlight when i merge some document Anyone see a solution ? --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu **
[iText-questions] General question
Hello, I would like to know if exist a java library in open source to detect and read barcode in image file ? I have found the tasman.bars library but it's very expensive for me (~3500€). --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
[iText-questions] outline concatenation
Hello, I would like to know if it's possible when we copy a pdf into a new pdf, to keep the outline ? and appending this outline to the new one. For example, outline of file to import : +- Chapter 1 | |- Section 1.1 | +- Section 1.2 | | |- Sub-Section 1.2.1 | | |- Sub-Section 1.2.2 | \- Section 1.3 \- Chapter 2 in the destination file i would like to have : +- Document 1 +- Document 2 | +- Chapter 1 | | |- Section 1.1 | | +- Section 1.2 | | | |- Sub-Section 1.2.1 | | | |- Sub-Section 1.2.2 | | \- Section 1.3 | \- Chapter 2 +- Document 3 best regards, --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
RE: [iText-questions] problem to copy a pdf into another pdf
No i don't forget the p_Document.close(); it's make into another part of code. I have made the same methode to add Tiff and it's working fine. I have just find there is a problem with the font I suppose because in property of the original PDF file on the original Pdf, I found: Original Font type Encoding Actual Font Type TimesNewRoman TrueType Windows TimesNewRomanPSMT Type 1 TimesNewRoman,Bold TrueType Windows TimesNewRomanPS-BoldMT Type 1 TimesNewRoman,Italic TrueType Windows on the generated Pdf, I found: Original Font type Encoding Actual Font Type Helvetica Type 1Windows TimesNewRoman,Bold TrueType Windows TimesNewRoman TrueType Windows TimesNewRoman,Italic TrueType Windows Best regards, --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: mardi 25 février 2003 17:24 To: 'Huttin Pierre' Cc: '[EMAIL PROTECTED]' Subject: RE: [iText-questions] problem to copy a pdf into another pdf You are missing the p_Document.close(). > -----Original Message- > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 16:22 > To: 'Paulo Soares' > Cc: '[EMAIL PROTECTED]' > Subject: RE: [iText-questions] problem to copy a pdf into another pdf > > The page rotation give by the instruction : > rotation = reader.getPageRotation(i); > > return me 0 > > I use the version 0.96 of iText > > Best Regards, > --- > HUTTIN Pierre > OMNIS ECM Services > 81 route de Luxembourg > L-4391 PONTPIERRE > > tel : (+352) 29 14 11 1 > fax : (+352) 29 14 11 650 > url : http://www.ecm.lu > > -Original Message- > From: Paulo Soares [mailto:[EMAIL PROTECTED] > Sent: mardi 25 février 2003 16:56 > To: 'Huttin Pierre'; '[EMAIL PROTECTED]' > Subject: RE: [iText-questions] problem to copy a pdf into another pdf > > It's probably a page rotation problem. What's the page rotation in the > original document and what version of iText are you using? > > Best Regards, > Paulo Soares > > > -Original Message- > > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > > Sent: Tuesday, February 25, 2003 12:51 > > To: '[EMAIL PROTECTED]' > > Subject:[iText-questions] problem to copy a pdf into another pdf > > > > Hello, > > > > I have a problem to copy a pdf file to a new pdf file. > > When I run the code below, I obtain the right number of page with the > > right > > size and the output file have the right size, but i can't see anything > in > > the output file ? > > > > The pdf file to copy to new file come under a ByteArrayInputStream > format. > > > > > > I don't understand what's happen. > > > > Note > > > > PdfWriter p_PdfWriter; > > Document p_Document; > > ByteArrayOutputStream p_outputStream; > > > > (this variables are initialise in the a first part of the code and no > > problem with this) > > > > > > private void addPdf(ByteArrayInputStream iStream, String > ChapterTitle) > > { > > if(p_PdfWriter != null && p_Document != null && p_outputStream > != > > null) { > > try { > > intl; > > InputStreamReader isr = new InputStreamReader(iStream); > > ByteArrayOutputStream out = new ByteArrayOutputStream(); > > while ((l = isr.read()) != -1) { > > out.write(l); > > } > > PdfReader reader = new PdfReader(out.toByteArray()); > > int n = reader.getNumberOfPages(); > > int i = 0; > > int rotation; > > PdfContentByte cb = p_PdfWriter.getDirectContent(); > > while (i < n) { > > i++; > > > > p_PdfDocument.setPageSize(reader.getPageSizeWithRotation(i)); > > if (p_FirstChapter) { > > p_FirstChapter = false; > > p_Document.open(); > > p_Document.newPage(); > > } else { > > p_Document.newPage(); > > } > > rotation = reader.getPageRotation(i); > > if (
RE: [iText-questions] problem to copy a pdf into another pdf
The page rotation give by the instruction : rotation = reader.getPageRotation(i); return me 0 I use the version 0.96 of iText Best Regards, --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu -Original Message- From: Paulo Soares [mailto:[EMAIL PROTECTED] Sent: mardi 25 février 2003 16:56 To: 'Huttin Pierre'; '[EMAIL PROTECTED]' Subject: RE: [iText-questions] problem to copy a pdf into another pdf It's probably a page rotation problem. What's the page rotation in the original document and what version of iText are you using? Best Regards, Paulo Soares > -----Original Message- > From: Huttin Pierre [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, February 25, 2003 12:51 > To: '[EMAIL PROTECTED]' > Subject: [iText-questions] problem to copy a pdf into another pdf > > Hello, > > I have a problem to copy a pdf file to a new pdf file. > When I run the code below, I obtain the right number of page with the > right > size and the output file have the right size, but i can't see anything in > the output file ? > > The pdf file to copy to new file come under a ByteArrayInputStream format. > > > I don't understand what's happen. > > Note > > PdfWriter p_PdfWriter; > Document p_Document; > ByteArrayOutputStream p_outputStream; > > (this variables are initialise in the a first part of the code and no > problem with this) > > > private void addPdf(ByteArrayInputStream iStream, String ChapterTitle) > { > if(p_PdfWriter != null && p_Document != null && p_outputStream != > null) { > try { > intl; > InputStreamReader isr = new InputStreamReader(iStream); > ByteArrayOutputStream out = new ByteArrayOutputStream(); > while ((l = isr.read()) != -1) { > out.write(l); > } > PdfReader reader = new PdfReader(out.toByteArray()); > int n = reader.getNumberOfPages(); > int i = 0; > int rotation; > PdfContentByte cb = p_PdfWriter.getDirectContent(); > while (i < n) { > i++; > > p_PdfDocument.setPageSize(reader.getPageSizeWithRotation(i)); > if (p_FirstChapter) { > p_FirstChapter = false; > p_Document.open(); > p_Document.newPage(); > } else { > p_Document.newPage(); > } > rotation = reader.getPageRotation(i); > if (rotation == 90 || rotation == 270) { > > cb.addTemplate((PdfTemplate)p_PdfWriter.getImportedPage(reader,i),0,-1f,1f > ,0 > ,0,reader.getPageSizeWithRotation(i).height()); > } else { > > cb.addTemplate((PdfTemplate)p_PdfWriter.getImportedPage(reader,i),1f,0,0,1 > f, > 0,0); > } > } > } catch (Exception de) { > System.out.println("addPdf - Error"); > System.out.println("error message : " + de.getMessage()); > ((DfException)de).printStackTrace(); > } > } > } > > --- > HUTTIN Pierre > OMNIS ECM Services > 81 route de Luxembourg > L-4391 PONTPIERRE > > tel : (+352) 29 14 11 1 > fax : (+352) 29 14 11 650 > url : http://www.ecm.lu > > > > ** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the security manager at [EMAIL PROTECTED] > This footnote also confirms that this email message has been swept by > the SOFITEC C.A.T.S. systems for the presence of computer viruses. > > For more information about C.A.T.S. please check > http://www.sofitec.lu > ** > > > > --- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > ___ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions ** This email and any files tran
[iText-questions] problem to copy a pdf into another pdf
Hello, I have a problem to copy a pdf file to a new pdf file. When I run the code below, I obtain the right number of page with the right size and the output file have the right size, but i can't see anything in the output file ? The pdf file to copy to new file come under a ByteArrayInputStream format. I don't understand what's happen. Note PdfWriter p_PdfWriter; Document p_Document; ByteArrayOutputStream p_outputStream; (this variables are initialise in the a first part of the code and no problem with this) private void addPdf(ByteArrayInputStream iStream, String ChapterTitle) { if(p_PdfWriter != null && p_Document != null && p_outputStream != null) { try { intl; InputStreamReader isr = new InputStreamReader(iStream); ByteArrayOutputStream out = new ByteArrayOutputStream(); while ((l = isr.read()) != -1) { out.write(l); } PdfReader reader = new PdfReader(out.toByteArray()); int n = reader.getNumberOfPages(); int i = 0; int rotation; PdfContentByte cb = p_PdfWriter.getDirectContent(); while (i < n) { i++; p_PdfDocument.setPageSize(reader.getPageSizeWithRotation(i)); if (p_FirstChapter) { p_FirstChapter = false; p_Document.open(); p_Document.newPage(); } else { p_Document.newPage(); } rotation = reader.getPageRotation(i); if (rotation == 90 || rotation == 270) { cb.addTemplate((PdfTemplate)p_PdfWriter.getImportedPage(reader,i),0,-1f,1f,0 ,0,reader.getPageSizeWithRotation(i).height()); } else { cb.addTemplate((PdfTemplate)p_PdfWriter.getImportedPage(reader,i),1f,0,0,1f, 0,0); } } } catch (Exception de) { System.out.println("addPdf - Error"); System.out.println("error message : " + de.getMessage()); ((DfException)de).printStackTrace(); } } } --- HUTTIN Pierre OMNIS ECM Services 81 route de Luxembourg L-4391 PONTPIERRE tel : (+352) 29 14 11 1 fax : (+352) 29 14 11 650 url : http://www.ecm.lu ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the security manager at [EMAIL PROTECTED] This footnote also confirms that this email message has been swept by the SOFITEC C.A.T.S. systems for the presence of computer viruses. For more information about C.A.T.S. please check http://www.sofitec.lu ** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions