Re: [iText-questions] Paragraph negative spacing weirdness in PdfPTables

2010-06-08 Thread fhomasp
I found that disabling the line: " cell.setPaddingTop(-3); " resolves the issue, but then the padding at the top is too high for me. Moreover... I wanted to do the counting of the cellheight to an actual Element being used directly in the main table, so initially I added the PdfPCells to a sub

[iText-questions] Flattening annotations (stamps) using iText

2010-06-08 Thread rking
We are trying to find out a way to flatten stamps (so other users cannot move the stamp) on a PDF without adding a password or formally securing the PDF. Just to elaborate, this is the way we have learned we can do it through Adobe Acrobat Pro: http://blogs.adobe.com/acrolaw/2009/05/add_dynamic_e

Re: [iText-questions] Extend nested table to bottom of contained cell

2010-06-08 Thread Marco Schindler
Ok, assuming there's no way to do this atm, would it be possible to add support for specifying which boundary "extendLastRow" should use (eg. page boundary, container/document boundary)? On Tue, Jun 1, 2010 at 12:27 PM, Marco Schindler wrote: > Hello, > Im using iText(sharp) 5.0.2 and I'm looking

[iText-questions] Adding a PdfImportedPage into a xobject PdfDictionary - is this a good thing to do?

2010-06-08 Thread Felipe Roos da Rosa
Hi folks, I need to place an imported page into a pdf in the exact location of an existing image. The way I used to do that was to look for the image xobjects and then search its occurence on the respective content stream from that context to find the X and Y coordinates where I need to place

Re: [iText-questions] Adding actions to PdfTemplates : incorrect positioning?

2010-06-08 Thread 1T3XT info
Ruchir wrote: > > 1T3XT info wrote: >> Where did you find that an action relative to an XObject was possible? >> please provide the spec version and the section number. >> > > I said that I did not find that an action relative to an XObject was not > possible. Given the rather broad description

Re: [iText-questions] Add timestamp to signed PDF

2010-06-08 Thread mkl
Daniel Perez Alvarez, Daniel Perez Alvarez wrote: > My problem is that I have some signed PDFs, and now I have to timestamp > them. > > I'm quite a newbie regarding the PDF format... I'm using iText, and I've > seen that I can add a PdfPKCS7 signature with a timestamp to the PDF, but > I don't k

Re: [iText-questions] Add timestamp to signed PDF

2010-06-08 Thread Leonard Rosenthol
You can't modify the timestamp on an existing signature. What you really want to do - at least going forward - is to support the Document TimeStamp signature defined in PAdES Part 4 and ISO 32000-2 (aka PDF 2.0). -Original Message- From: Daniel Perez Alvarez [mailto:daniel.per...@atosor

Re: [iText-questions] [itextsharp]: PdfContentByte.AddImage no longer showing image with update to 5.x version

2010-06-08 Thread Paulo Soares
You'll have to provide a complete standalone example so that the problem can be reproduced. Paulo - Original Message - From: mgabr...@mymts.net To: itext-questions@lists.sourceforge.net Sent: Tuesday, June 08, 2010 7:22 PM Subject: [iText-questions] [itextsharp]: PdfContentBy

[iText-questions] [itextsharp]: PdfContentByte.AddImage no longer showing image with update to 5.x version

2010-06-08 Thread mgabriel
Hello, I updated my application to use the updated version of iTextSharp (5.0.1.1) only to find that code that I used to insert an image at an absolute position no longer shows the image. I updated to 5.0.2 as well, and still encounter the same issue. I receive no exceptions from my cod

Re: [iText-questions] AES-256 encryption

2010-06-08 Thread kmarx
1T3XT info wrote: > > We are willing to implement extensions as the ones provided by Adobe. > -- > This answer is provided by 1T3XT BVBA > Hi, I'm wondering if this effort is still actively being pursued or if it could be somehow prodded back to life. Our company wishes to create encrypted p

Re: [iText-questions] Adding actions to PdfTemplates : incorrect positioning?

2010-06-08 Thread Ruchir
1T3XT info wrote: > > Where did you find that an action relative to an XObject was possible? > please provide the spec version and the section number. > I said that I did not find that an action relative to an XObject was not possible. Given the rather broad description in 4.9, and the genera

[iText-questions] Add timestamp to signed PDF

2010-06-08 Thread Daniel Perez Alvarez
Hello, My problem is that I have some signed PDFs, and now I have to timestamp them. I'm quite a newbie regarding the PDF format... I'm using iText, and I've seen that I can add a PdfPKCS7 signature with a timestamp to the PDF, but I don't know how to retrieve an existing signature and append/m

Re: [iText-questions] Adding actions to PdfTemplates : incorrect positioning?

2010-06-08 Thread 1T3XT info
Ruchir Gupta wrote: > I > did take a look at the PDF 1.4 specification and didn't see anything > that indicated adding an Action relative to a form XObject was not > possible. Please correct me if I'm mistaken I don't understand. If you looked at the PDF specification, you certainly found out

Re: [iText-questions] Question about top margin and headers

2010-06-08 Thread 1T3XT info
Daniel H. Ardison wrote: > Ok, > > Could this be such a difficult question nobody can answer? The question was too long, and it read as a generic programming problem (a design issue), rather than as an iText question. I could be wrong, but that's how it was perceived. > Or nobody has variable he

[iText-questions] Adding actions to PdfTemplates : incorrect positioning?

2010-06-08 Thread Ruchir Gupta
Hello, I'm using PdfGraphics2D derived from a PdfTemplate to do some drawing, like so: // Create the graphics2D object PdfContentByte cb = writer.getDirectContent(); final PdfTemplate tp = cb.createTemplate(width, height); final Graphics2D g2 = tp.createGraphics(width, height); // dra

Re: [iText-questions] Question about top margin and headers

2010-06-08 Thread Daniel H. Ardison
Ok, Could this be such a difficult question nobody can answer? Or nobody has variable height headers? Or maybe I don't explain well, please let me know, I'm stuck with this I can't resolve. Thanks. Daniel -- Thi

Re: [iText-questions] question about table header and onOpenDocument

2010-06-08 Thread 1T3XT info
Michelle Zhang wrote: > Hello. > Your answer does not help. Keith has also made C# versions of the examples: http://kuujinbo.info/iTextInAction2Ed/index.aspx?ch_key=Chapter05&cl_key=MovieCountries1 Maybe those can help... In any case: the functionality works in iTextSharp too. It's only a matter

Re: [iText-questions] question about table header and onOpenDocument

2010-06-08 Thread Michelle Zhang
Hello. Your answer does not help. If I do not add that chunk of code, the override onOpenDocument function, etc. won't be called. > addTableAsHeaderFooter. onOpenDocument(writer, document); > addTableAsHeaderFooter.OnStartPage(writer, document); > > addTableAsHeaderFooter.onEndPage(writer, document

Re: [iText-questions] Reg: Tabs to PDF generation

2010-06-08 Thread 1T3XT info
kishore wrote: > Yes, I have HTML tabs that were generated by JSP. > 4 tabs content will come from the server as a response and another two tabs > content comes from an external URL. For ex: width='100%' > height='100%' src='http://www.google.com' frameborder='yes' > scrolling='yes'> So one o

Re: [iText-questions] Reg: Tabs to PDF generation

2010-06-08 Thread kishore
1T3XT info 1t3xt.info> writes: > > Kishore Chitturi wrote: > > > > Hi, > > I have 6 tabs in a JSP. > > Do you mean you have tabs in HTML that is generated from a JSP page? > > > Out of those 6, 2 tabs information will come > > from an external URL. > > I don't understand. You'll have to cla

Re: [iText-questions] Reg: Tabs to PDF generation

2010-06-08 Thread 1T3XT info
Kishore Chitturi wrote: > > Hi, > I have 6 tabs in a JSP. Do you mean you have tabs in HTML that is generated from a JSP page? > Out of those 6, 2 tabs information will come > from an external URL. I don't understand. You'll have to clarify. > Can you please let me know how i can generate tab

[iText-questions] Reg: Tabs to PDF generation

2010-06-08 Thread Kishore Chitturi
Hi, I have 6 tabs in a JSP. Out of those 6, 2 tabs information will come from an external URL. Can you please let me know how i can generate tabs to PDF? Thanks in advance. Regards Kishore CH =-=-= Notice: The information contain

Re: [iText-questions] max number of comboboxes in a pdfform is 85?

2010-06-08 Thread mkl
camikusch, camikusch wrote: > the example i posted happen to send less then 1024bytes of data to the > webserver which is fine, but when the amount of data exceeds 1023 byte > (pdfformfield names and the associated data) adobe reader sends a "expect > 100-continue" header... According to the HTT

Re: [iText-questions] form flattening causing data loss

2010-06-08 Thread 1T3XT info
gregg.gilb...@sungard.com wrote: > I took out the acrofields.setField method and replaced with this example > I found. You're replacing the XML stream with the XFA form with another XML stream. That's one way to fill out an XFA form, but flattening will never work in this case, because the for

Re: [iText-questions] form flattening causing data loss

2010-06-08 Thread Gregg.Gilbert
I took out the acrofields.setField method and replaced with this example I found. pdfReader = new PdfReader(pdfInFile); pdfStamper = new PdfStamper(pdfReader, new FileStream(pdfOutFile, FileMode.Create)); pdfFormFields = pdfStamper.AcroFields; xml_reader = new XmlTextReader(xmlPath);

Re: [iText-questions] max number of comboboxes in a pdfform is 85?

2010-06-08 Thread Leonard Rosenthol
I can tell you that people have been sending >1024 bytes of form data from Acrobat/Reader for over a decade - so whatever is going on, is on your server... Leonard -Original Message- From: camikusch [mailto:camiku...@web.de] Sent: Tuesday, June 08, 2010 4:22 AM To: itext-questions@lists

Re: [iText-questions] How to extract embedded file ?

2010-06-08 Thread 1T3XT info
Eric Chow wrote: > Hello, > > How can I extract all the embedded files in PDF using iText Java ? That's explained in chapter 16 of the second edition of iText in Action. However: this chapter isn't available in the MEAP yet. > I just want to save all the embedded files to the file disk with the

[iText-questions] How to extract embedded file ?

2010-06-08 Thread Eric Chow
Hello, How can I extract all the embedded files in PDF using iText Java ? I just want to save all the embedded files to the file disk with the original file name. Please help and show me sample? Best regards, Eric -- T

Re: [iText-questions] RTF libs compatibility from 2.1.7 to 5.0.2

2010-06-08 Thread 1T3XT info
Jaime Bravo wrote: > Are there plans to include the RTF packages in a next release? No, there are no plans in that direction. The main reason: we have nobody to support that package. > If no then what will happen with them? They are waiting for somebody willing to invest in that package. Invest

Re: [iText-questions] Paragraph negative spacing weirdness in PdfPTables

2010-06-08 Thread fhomasp
I realize it must be difficult to reproduce. So I made a JUnit test at home which demonstrates the problem (if it is a problem but I assume so) Please note the line: par2.setSpacingAfter(-1.2f); If one adjusts this to setSpacingAfter(0f); then the tablesize is cut correctly. Now it is spanned o

[iText-questions] RTF libs compatibility from 2.1.7 to 5.0.2

2010-06-08 Thread Jaime Bravo
Some time ago, I downloaded the iText 5.0.2 and today I needed to write a small standalone application to convert RTF to PDF. Obiously the release 5.0.2 doesn't come with packages for manipulate RTF docs. So I went in search of previous releases on section 'Files'  from project sourceforge page

Re: [iText-questions] form flattening causing data loss

2010-06-08 Thread Paulo Soares
Can you post the PDF? Paulo From: Paulo Soares [mailto:psoa...@glintt.com] Sent: Monday, June 07, 2010 10:07 PM To: Post all your questions about iText here Subject: Re: [iText-questions] form flattening causing data loss If the PDF is a static XFA you can flatte

Re: [iText-questions] Blockquote not supported by HTMLWorker?

2010-06-08 Thread Apeksha
Hey, i found the solution how to get indentation worked on pdfs. Made changes to 2 files: HTMLWorker.java and FactoryProperties.java HTMLWorker.java protected Stack blockQuoteStack = new Stack(); protected float indentSpace = 0.0f; public void startElement(String tag, HashMap h) {

Re: [iText-questions] Problem with som characters when creating pdf.

2010-06-08 Thread 1T3XT info
Svensson Robert wrote: > Hi we use iText to create a pdf of our product detail information. The > problem is when we have countries that have special characters like Litauen. Which font and which encoding are you using? > Is there a work around this problem? Yes: you need to select a font that

Re: [iText-questions] max number of comboboxes in a pdfform is 85?

2010-06-08 Thread 1T3XT info
camikusch wrote: > since it seems the communication between adobe reader and the receiving > webserver is the issue here i'm not quite sure this belongs to this > mailing-list. but... maybe someone can help anyhow. Thanks for the feedback. The problem was a mystery to us, and you've done a good j

Re: [iText-questions] max number of comboboxes in a pdfform is 85?

2010-06-08 Thread camikusch
Am Wed, 2 Jun 2010 06:32:30 -0700 schrieb Leonard Rosenthol : i discovered the error has nothing to do with the number or kind of pdfform elements but the amount of data transmitted. the example i posted happen to send less then 1024bytes of data to the webserver which is fine, but when the amount

[iText-questions] Problem with som characters when creating pdf.

2010-06-08 Thread Svensson Robert
Hi we use iText to create a pdf of our product detail information. The problem is when we have countries that have special characters like Litauen. Example when we are trying to write the word masė it is created as mas in the pdf. Is there a work around this problem?? Kind regards Robert Svens

Re: [iText-questions] Question regarding Inverted PDF

2010-06-08 Thread 1T3XT info
Naga Praveen Kurmala wrote: > I want to know how to differentiate these type of documents with > normal pdf’s. The rotation angle for the attached one is “ZERO”. As explained in chapter 1 of the second edition of "iText in Action", there are two ways to create a document in landscape: Either yo