Re: [iText-questions] Displaying a table as page header

2010-06-21 Thread 1T3XT info
alex.broyt...@instinet.com wrote: > I do use writeSelectedRows(): And if the table overlaps with the content added with document.add(), you've defined document margins that are to small. Increase the document margins. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t

Re: [iText-questions] Finding signature fields in a split page

2010-06-21 Thread msinatl
Thank you - that seems to have been the solution! This is the code I split the pages with: static List splitByPages(String inFile, String destinationDir, String prefix) { List outFiles = [] try { PdfReader readPages = new PdfReader(inFile) int n = readPages.getNumbe

Re: [iText-questions] Displaying a table as page header

2010-06-21 Thread Alex . Broytman
I do use writeSelectedRows(): public class Test extends PdfPageEventHelper { Document doc; PdfWriter writer; public void openDocument throws DocumentException, IOException { doc = new Document(PageSize.A4.rotate()); writer = PdfWriter.getInstance(doc, new FileOutputSt

Re: [iText-questions] Displaying a table as page header

2010-06-21 Thread Alex . Broytman
That is excatly what I do, but header and text overlaps. The code is below: public class Test extends PdfPageEventHelper { Document document = null; PdfWriter writer = null; void openDocument() throws DocumentException, IOException { document = new Document(PageSi

[iText-questions] How to improve performance when exporting tables with large nested table

2010-06-21 Thread George Li
Hi, If I have a table A which has a large nested table B, Document.Add(A) will be very slow. Java heap usage is especially high. Has anyone experienced similar problem? Is there any way to solve it? I know if only B is added to Document, I can write a few rows of B to Document and then flus

Re: [iText-questions] Displaying a table as page header

2010-06-21 Thread 1T3XT info
alex.broyt...@instinet.com wrote: > Hi, I need to display a table as a header on every page of my document. > I tried to use onEndPage() event for that, but table overlaps with the > document text on every page. If a header would have been a phrase, then > ColumnText.showTextAligned() would do t

Re: [iText-questions] MS Word to PDF (2)

2010-06-21 Thread 1T3XT info
OmegaZiv wrote: > I was given a task to: > 1) create a document template with dynamic fields, using a high-level > editor, such as Word Or Open Office, as is done in chapter 6 of the new iText book: http://www.flickr.com/photos/itextinaction/4330324408/ http://www.flickr.com/photos/itextinaction/4

Re: [iText-questions] MS Word to PDF (2)

2010-06-21 Thread Cameron Laird
On Mon, Jun 21, 2010 at 6:12 AM, OmegaZiv wrote: > > Hi, > The latest message of this topic was from 2007. I hope there is new > information. > I was given a task to: > 1) create a document template with dynamic fields, using a high-level > editor, such as Word > 2) Convert that template to PDF (

Re: [iText-questions] NPE while Extracting text

2010-06-21 Thread Leonard Rosenthol
There are two ways to handle Type 3 encodings. 1) It's a newer Type3 and has an associated ToUnicode table - that's easy ;). 2) Use the name of the glyph (the key in the CharProcs table) against the Adobe Glyph List () which maps standard names to

Re: [iText-questions] [SPAM] Re: PAdES

2010-06-21 Thread Leonard Rosenthol
LTV/DSS - the new dictionary for storing changed Certs, OCSPs, etc. Leonard -Original Message- From: mkl [mailto:m...@wir-sind-cool.org] Sent: Monday, June 21, 2010 5:48 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] [SPAM] Re: PAdES Leonard, Leonard Rosen

[iText-questions] Displaying a table as page header

2010-06-21 Thread Alex . Broytman
Hi, I need to display a table as a header on every page of my document. I tried to use onEndPage() event for that, but table overlaps with the document text on every page. If a header would have been a phrase, then ColumnText.showTextAligned() would do the trick, but how to do that in case of a

Re: [iText-questions] Finding signature fields in a split page

2010-06-21 Thread 1T3XT info
msinatl wrote: > The only examples I can find via Google are based on PdfImportedPage. You could use PdfStamper. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -- ThinkGeek and WI

Re: [iText-questions] NPE while Extracting text

2010-06-21 Thread Kevin Day
The trick here is obtaining a mapping between the type 3 font glyphs and some sort of encoded text. There are several ways that this can be done, and they are fairly well supported by the text parser - but type 3 fonts, as has been mentioned, don't *usually* have this sort of mapping information.

Re: [iText-questions] [SPAM] Re: PAdES

2010-06-21 Thread mkl
Leonard, Leonard Rosenthol-3 wrote: > Adobe Acrobat/Reader 9.x support all of PAdES part 2 and part of PAdES > part 4 (LTV/DSS). Part2 for obvious reasons, but which part of Part4? Regards, Michael. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PAdES-tp2262622p

Re: [iText-questions] [SPAM] Re: PAdES

2010-06-21 Thread Leonard Rosenthol
Quick correction... Adobe Acrobat/Reader 9.x support all of PAdES part 2 and part of PAdES part 4 (LTV/DSS). Leonard -Original Message- From: mkl [mailto:m...@wir-sind-cool.org] Sent: Monday, June 21, 2010 4:14 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] [SP

Re: [iText-questions] Finding signature fields in a split page

2010-06-21 Thread mkl
msinatl wrote: > Hm, my code was based on a very old example. getSignatureNames() is > certainly easier! Don't forget getBlankSignatureNames(); as you want to sign, you most likely want to find blank fields which getSignatureNames() filters. msinatl wrote: > When you suggest a different tool, i

Re: [iText-questions] Finding signature fields in a split page

2010-06-21 Thread msinatl
Hm, my code was based on a very old example. getSignatureNames() is certainly easier! When you suggest a different tool, is there a class or method you have in mind? The only examples I can find via Google are based on PdfImportedPage. Or do you mean something other than iText? -- View this mes

Re: [iText-questions] Finding signature fields in a split page

2010-06-21 Thread mkl
msinatl, msinatl wrote: > I am then using the following Groovy code to find the names of the > signature fields on each page so I can sign them. > > [...] As you already access reader.getAcroFields(), is there a special reason you don't use the AcroFields methods getBlankSignatureNames() and ge

[iText-questions] Finding signature fields in a split page

2010-06-21 Thread msinatl
Hi, I have a multiple page PDF with embedded signature fields. I am using some code based on http://www.rgagnon.com/javadetails/java-0647.html http://www.rgagnon.com/javadetails/java-0647.html to split the PDF into individual pages. I am then using the following Groovy code to find the names

[iText-questions] [SPAM] Re: PAdES

2010-06-21 Thread mkl
Juraj, Juraj Majer wrote: > I want to write a program using IText, which will sign PDF documents > conforming to PDF Advanced Electronic Signature Profiles (PAdES). > Unfortunatelly I cannot find much info about this issue on the web and > IText book is not ready yet - http://itextpdf.com/book/in

Re: [iText-questions] PAdES

2010-06-21 Thread Leonard Rosenthol
1 - Yes, iText fully supports PAdES Part 2. 2 - PadES does not, currently, support parts 3 or 4 of PAdES - but it would be wonderful if you (or someone else) would develop it and contribute it back. Leonard From: Juraj Majer [mailto:juraj.ma...@gmail.com] Sent: Monday, June 21, 2010 3:17 PM To:

[iText-questions] Add Bookmarsk to Existing PDF file

2010-06-21 Thread Büşra Tavukçuoğlu
Information from ESET NOD32 Antivirus, version of virus signature database 5214 (20100621) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com Bu e-posta sadece yukarıda isimleri belirtilen kişi/ler arasında özel haberleşme a

[iText-questions] PAdES

2010-06-21 Thread Juraj Majer
Hi, I want to write a program using IText, which will sign PDF documents conforming to PDF Advanced Electronic Signature Profiles (PAdES). Unfortunatelly I cannot find much info about this issue on the web and IText book is not ready yet - http://itextpdf.com/book/index.php. I have some questions:

Re: [iText-questions] Increasing file size when using PdfSmartCopy

2010-06-21 Thread Paulo Soares
That's a bug that's already fixed in the SVN. Paulo From: Erik Thelin [mailto:erik.the...@gmail.com] Sent: Monday, June 21, 2010 12:38 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Increasing file size when using PdfSmartCopy Hello, I'v

Re: [iText-questions] Watermark a PDF and check if an existing PDF is marked

2010-06-21 Thread Jaakov Jalink
Hi, Thanks for the script & reference to PDF standard. Watermarks are indeed annotations - see page 410 at the bottom: http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf The code I got to so far is, but the use of stamper should be avoided: import com.itextpdf.text.DocumentException; impo

[iText-questions] Increasing file size when using PdfSmartCopy

2010-06-21 Thread Erik Thelin
Hello, I've encountered a strange problem with iTextSharp and concatenating PDFs. I have used iTextSharp 3.1.8 before to merge several (almost) identical files into a single PDF to be sent to printing companies, but as the number of documents increase so does the filesize, much due to images and f

[iText-questions] MS Word to PDF (2)

2010-06-21 Thread OmegaZiv
Hi, The latest message of this topic was from 2007. I hope there is new information. I was given a task to: 1) create a document template with dynamic fields, using a high-level editor, such as Word 2) Convert that template to PDF (maybe FDF), including the dynamic fields 3) Use iText to edit the

Re: [iText-questions] NPE while Extracting text

2010-06-21 Thread Mike Marchywka
> Date: Mon, 21 Jun 2010 09:49:44 +0100 > From: b...@benshort.co.uk > To: itext-questions@lists.sourceforge.net > Subject: Re: [iText-questions] NPE while Extracting text > > Thanks very much for this information. > > Maybe you could offer me some direc

Re: [iText-questions] digitally signing Documents

2010-06-21 Thread adi
thanks for your reply-- ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thin

Re: [iText-questions] NPE while Extracting text

2010-06-21 Thread Ben Short
Thanks very much for this information. Maybe you could offer me some direction of how to solve my problem? I need to parse pdf mobile phone bills. the information i require is the itemized data that is in a table format. Is this possible with itextpdf? On 19 June 2010 08:44, 1T3XT info wrote: >

Re: [iText-questions] Digitally Signing PDF

2010-06-21 Thread mkl
adi, sniffer-2 wrote: > i have an app that uses itext to digitally sign documents but some of the > clients have digital certificates that do not export the private key how > do i sign documents in this case is it possible. The act of signing implicates the access to the private key. Thus, you s