Re: [iText-questions] PDF protection/Encryption - 'Detection'

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 20:02, crimeunit schreef: > Where is the logic? > Even so, thanks for reply but when I did some tests, I mentioned that the > 'isPrintingAllowed()' method returns a 'false' boolean -> but I can print > the PDF-file when I open the it?! Maybe "degraded printing" is allowed. What matter

Re: [iText-questions] Document structure and marked content usingtemplates

2011-02-03 Thread Mark Storer
This may be a bug in iText. I think the PdfTemplate's XObj should have the StructParents entry, not the page, but it's added to the first page. When combining direct content manipulation with Document functions, you have to be Very Careful in various places, and this is clearly one of them. Both

[iText-questions] Scott Goette is out sick today

2011-02-03 Thread scott_goette
I am out of the office from Thu 02/03/2011 until Fri 02/04/2011. I'm out sick today, but will reply to your message when I return. This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient

Re: [iText-questions] PDF protection/Encryption - 'Detection'

2011-02-03 Thread crimeunit
Where is the logic? Even so, thanks for reply but when I did some tests, I mentioned that the 'isPrintingAllowed()' method returns a 'false' boolean -> but I can print the PDF-file when I open the it?! As attached, the image as example; could you please help me out, maybe the code is a bit wrong?

Re: [iText-questions] Manipulating tables in existing PDF documents

2011-02-03 Thread Mark Storer
iText doesn't create tags/marked content on its own. You have to explicitly do that as a separate step. Not Trivial. And adding it now won't help you with your existing PDFs. What you want is all but impossible. --Mark Storer Senior Software Engineer Cardiff.com import legalese.Disclaim

Re: [iText-questions] Manipulating tables in existing PDF documents

2011-02-03 Thread Karen Wei
Thank you for your help. What about extracting colspan and rowspan attributes from the table? By extracting the tagging format of a table, you can decompose how the table was constructed but unfortunately I cannot find a way to find the colspan and rowspan information. Thanks again. 2011/2/3 1T

Re: [iText-questions] Manipulating tables in existing PDF documents

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 17:52, Karen Wei schreef: > Hi, > > Is it possible to manipulate tables from existing PDF documents? (ie: > change the colspan of a certain cell) I understand this is possible > when creating a pdfptable object, but I cannot figure out a way to > cast existing tables as pdfptable. A

Re: [iText-questions] [Book] (Second Edition) understanding "8.7.1 Reader-enabling a form using Adobe Acrobat"

2011-02-03 Thread Leonard Rosenthol
HUH?!? I don't know where you heard that it is a bug and we are fixing it - but they are VERY CONFUSED. It's not a bug - it's a feature! Reader X now supports highlight and note comments on ALL PDFs. However, for other types of commenting, you WILL need to Reader Enable it. leonard -Ori

[iText-questions] Manipulating tables in existing PDF documents

2011-02-03 Thread Karen Wei
Hi, Is it possible to manipulate tables from existing PDF documents? (ie: change the colspan of a certain cell) I understand this is possible when creating a pdfptable object, but I cannot figure out a way to cast existing tables as pdfptable. Any help would be appreciated. ---

Re: [iText-questions] [Book] (Second Edition) understanding "8.7.1 Reader-enabling a form using Adobe Acrobat"

2011-02-03 Thread jmueto
Hello all > Could someone please confirm (or disapprove) my understanding of chapter > 8.7.1 Reader-enabling a form using Adobe Acrobat ? > > Section 8.7.1 is about PDF forms. Does it also apply to simple iText > created PDFs? > Is it true that there is no chance to create a PDF with "Commenting: >

Re: [iText-questions] Antw:Re: how to check the certifying signature in a pdf

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 16:11, Leonard Rosenthol schreef: You need to look for the MDP key Yes, but I see that the MDP key isn't always present, not even for certification signatures. When is it required? -- Special Offer-- Dow

Re: [iText-questions] Antw:Re: how to check the certifying signature in a pdf

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 15:44, LIDA VAN LOSSER-JONKER schreef: This is another way to get the reason from a signature, but I am searching for a way to know if it's a certifying signature or an ordinary signature. I must have overlooked that part of your question. Add these lines: if (sig.get(PdfName.REFER

[iText-questions] Antw:Re: how to check the certifying signature in a pdf

2011-02-03 Thread LIDA VAN LOSSER-JONKER
This is another way to get the reason from a signature, but I am searching for a way to know if it's a certifying signature or an ordinary signature.Op 03/02/11, 1T3XT BVBA schreef: Op 3/02/2011 13:37, lvl schreef:> Do you mean the following PdfDictionary?> If yes, which entry can I use?> If no, w

Re: [iText-questions] [Book] (Second Edition) understanding "8.7.1 Reader-enabling a form using Adobe Acrobat"

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 14:27, jmueto schreef: > Hello all > > Could someone please confirm (or disapprove) my understanding of chapter > 8.7.1 Reader-enabling a form using Adobe Acrobat ? OK. > Section 8.7.1 is about PDF forms. Does it also apply to simple iText > created PDFs? ??? What do you mean? The a

Re: [iText-questions] creating huge pdf tables

2011-02-03 Thread tubin gen
do you mean page 115 and page 116? , I dont have itext in action, can I see this information online ? also can you tell what in code do I have to add to make it beawre of memory issues ? On Thu, Feb 3, 2011 at 8:56 AM, 1T3XT BVBA wrote: > Op 3/02/2011 14:05, fachhoch schreef: > >> should I worry

[iText-questions] [Book] (Second Edition) understanding "8.7.1 Reader-enabling a form using Adobe Acrobat"

2011-02-03 Thread jmueto
Hello all Could someone please confirm (or disapprove) my understanding of chapter 8.7.1 Reader-enabling a form using Adobe Acrobat ? Section 8.7.1 is about PDF forms. Does it also apply to simple iText created PDFs? Is it true that there is no chance to create a PDF with "Commenting: Allowed"

Re: [iText-questions] Chunk link functionality with page number in title

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 15:12, Michael Schreiber schreef: > "Details" is the text string used for the chunk. OK, in that case, you need to "reserve sufficient space" when you write the text. For instance: This book has pages. Where the blanks are, you add a PdfTemplate. The best way to achieve thi

Re: [iText-questions] how to check the certifying signature in a pdf

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 13:37, lvl schreef: > Do you mean the following PdfDictionary? > If yes, which entry can I use? > If no, which dictionary do you mean? This works for me: PdfReader reader = new PdfReader(myFile); AcroFields fields = reader.getAcroFields(); for (String signame : fields.getSignatureName

Re: [iText-questions] Chunk link functionality with page number in title

2011-02-03 Thread Michael Schreiber
"Details" is the text string used for the chunk. -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail -- Special Offer-- Download ArcSight

Re: [iText-questions] creating huge pdf tables

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 14:05, fachhoch schreef: > should I worry abpout memory issues Yes! > when working with itext pdftable and > lost of row data ? No! For really large tables, you should consider using the aproach explained on p115-116 of the Second Edition of "iText in Action": http://itextpdf.com/

Re: [iText-questions] Chunk link functionality with page number in title

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 14:35, Michael Schreiber schreef: > First of all thank you very much for this great PDF library!! > I've been using it a lot lately and I've always been very happy with the > generated PDFs. > > As I couldn't find a solution to my problem in this mailing-list I decided to > ask for any

Re: [iText-questions] Document structure and marked content using templates

2011-02-03 Thread asamaj
I send the resulting PDF http://itext-general.2136553.n4.nabble.com/file/n3258109/ITextTemplates.pdf ITextTemplates.pdf -- View this message in context: http://itext-general.2136553.n4.nabble.com/Document-structure-and-marked-content-using-templates-tp3237661p3258109.html Sent from the iText -

Re: [iText-questions] PDF protection/Encryption - 'Detection'

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 14:36, crimeunit schreef: > Thanks for the quick respons, > > But when I do the following: > > > PdfReader reader = new PDFReader(String "C:\\test.pdf"); > System.out.println(PdfEncryptor.isPrintingAllowed(reader.getPermissions())); > > > .. then the isPrintingAllowed() method always r

[iText-questions] Chunk link functionality with page number in title

2011-02-03 Thread Michael Schreiber
First of all thank you very much for this great PDF library!! I've been using it a lot lately and I've always been very happy with the generated PDFs. As I couldn't find a solution to my problem in this mailing-list I decided to ask for any suggestions on how to solve this problem. I create a PD

[iText-questions] creating huge pdf tables

2011-02-03 Thread fachhoch
I want to know if my code below can cause memory issues , PdfPTable table = new PdfPTable(headers.length); // header code for (int i = 0; i < headers.length; i++) { String header = headers[i]; PdfPCell cell = new PdfPCell(

Re: [iText-questions] PDF protection/Encryption - 'Detection'

2011-02-03 Thread crimeunit
Thanks for the quick respons, But when I do the following: PdfReader reader = new PDFReader(String "C:\\test.pdf"); System.out.println(PdfEncryptor.isPrintingAllowed(reader.getPermissions())); .. then the isPrintingAllowed() method always returns false, also when the pdf-file in adobe could b

Re: [iText-questions] how to check the certifying signature in a pdf

2011-02-03 Thread lvl
Do you mean the following PdfDictionary? If yes, which entry can I use? If no, which dictionary do you mean? I can't find this in the book iText in Action. PdfReader reader = new PdfReader("C:\\temp\\pdf_certified.pdf"); AcroFields af = reader.getAcroFields(); ArrayList names = af.getSig

Re: [iText-questions] PDF protection/Encryption - 'Detection'

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 13:04, crimeunit schreef: > My question is, is their a simple way the find out if a pdf file is > encrypted, http://api.itextpdf.com/com/itextpdf/text/pdf/PdfReader.html#isEncrypted%28%29 > copy-prtected, print-protected, user/owner-protected, (so it's > only about "Detection" like p

Re: [iText-questions] how to check the certifying signature in a pdf

2011-02-03 Thread 1T3XT BVBA
Op 3/02/2011 11:20, lvl schreef: > I get a pdf with one certifying signature and two ordinary signature. > I only need the reason of the certifying signature. > > At the moment I can read the reasons of the three signatures (by using > AcroFields and PdfPKCS7), but I don't know how to check if the

[iText-questions] how to check the certifying signature in a pdf

2011-02-03 Thread lvl
I get a pdf with one certifying signature and two ordinary signature. I only need the reason of the certifying signature. At the moment I can read the reasons of the three signatures (by using AcroFields and PdfPKCS7), but I don't know how to check if the signature is a certifying one or an ordin