Re: [iText-questions] Table/Text overlap

2008-11-07 Thread Hamilton, Ken
Thanks for your time. I have it working fairly well. One problem I haven't solved is how to fully remove PdfPTable rows after simulating a go() to deal with widows. I use go(true) to add a table toward the bottom of the page, discover that it will cross a page boundary, so add a new page and call g

Re: [iText-questions] Pdf error on adding image on every page

2008-11-07 Thread Paulo Soares
Put the image before the beginText(). Paulo From: anjaliv9 [EMAIL PROTECTED] Sent: Friday, November 07, 2008 7:32 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Pdf error on adding image on every page I am writing a table to the

[iText-questions] Advanced tab in Document Properties

2008-11-07 Thread strebor1982
In the advanced tab of the document properties is it it possible to set the language under the 'Reading options'? I found that you can set the 'Binding' option above it by doing PdfWriter.setViewerPreferences(PdfWriter.DirectionR2L) Thanks -- View this message in context: http://www.nabble.co

[iText-questions] Pdf error on adding image on every page

2008-11-07 Thread anjaliv9
I am writing a table to the document and on every page I need to add an image and a title. Here is code snippet. cb = stamper.getOverContent(i); Rectangle rect = reader.getPageSizeWithRotation(i); cb.beginText();

Re: [iText-questions] Signature not found : Bug or feature ?

2008-11-07 Thread Paulo Soares
It may not be needed to loop through all the fields. This situation can only occur if the sigflags are set and there's an orphan signature field with a rectangle [0 0 0 0]. Paulo From: Michael Klink [EMAIL PROTECTED] Sent: Friday, November 07, 2008 3:08

Re: [iText-questions] Determining if a table will fit on a page.

2008-11-07 Thread Redefined Horizons
I was aware of the ColumnText object, but not the PdfPTable object. I'll check it out in the Javadoc and will use the method that you recommended. Thanks so much! Scott On Thu, Nov 6, 2008 at 11:59 PM, 1T3XT info <[EMAIL PROTECTED]> wrote: > Redefined Horizons wrote: >> Let me first say that the

[iText-questions] Parsing existing RTF file

2008-11-07 Thread Sainath Veepuri
Hi, I have downloaded the iText RTF & Core jars from your website. Have gone through the documentation. I haven't found any examples that parse an existing RTF file. Searched on google, but had no luck. My current requirement: User uploads a template.rtf file sent to the server.

Re: [iText-questions] Image in Cell (not PdfPCell)

2008-11-07 Thread Mirco Piccin
OK, i should read examples and itext bible better, before post questions :-D > Image logo = Image.getInstance("/path/to/my/gif"); > Cell cell = new Cell(""); > cell.setBorderWidth(0); > cell.addElement(logo); > table.addCell(cell); > ... > > Is there a way to resize the image? > Or i need to use a

[iText-questions] Disappearing text

2008-11-07 Thread Carlos Morais de Oliveira Filho
Hi, I am using iText (version 1.4.5) to generate PDF files and sometimes I get one that is missing some text. I CAN'T REPRODUCE THE ERROR, so I have no idea of where is it coming from. I'm not using various Threads. It rarely happens, but it can cause real problem when it does. Any hints? Tha

Re: [iText-questions] Image in Cell (not PdfPCell)

2008-11-07 Thread Mirco Piccin
Thanks! > Cell has a method addElement(Element element) and a constructor > Cell(Element element). Class Image implements the Element interface. > I hope this answers your question. of course, thankks. So i have: Image logo = Image.getInstance("/path/to/my/gif"); Cell cell = new Cell(""); c

Re: [iText-questions] Issue with Barcode 128 generated with iText

2008-11-07 Thread Paulo Soares
Barcode 128 allows several ways to encode the characters and iText tries to find the smallest one. It works, doesn't it? Paulo From: Navin Kumar [EMAIL PROTECTED] Sent: Friday, November 07, 2008 2:51 PM To: itext-questions@lists.sourceforge.net Cc: Rangarajan Vait

Re: [iText-questions] Manipulating tagged PDFs

2008-11-07 Thread 1T3XT info
Richard Grantham wrote: > Thanks for the prompt reply. Turns out that the lack of StructTree does > let us down. I have no idea how I'd manipulate that. Any pointers would > be gratefully received. We'd have to dig into the PDF Reference to see what's possible. I think it's not that easy (unless

Re: [iText-questions] Signature not found : Bug or feature ?

2008-11-07 Thread Michael Klink
Hello, I happened to come across signatures just like the one Andreas Kühne posted in September. As I need to be able to handle these signatures fairly soon (at least it looks like a greater hassle to persuade my users not to use the secunet application that creates these signatures), I created

Re: [iText-questions] Manipulating tagged PDFs

2008-11-07 Thread Richard Grantham
Thanks for the prompt reply. Turns out that the lack of StructTree does let us down. I have no idea how I'd manipulate that. Any pointers would be gratefully received. -Original Message- From: 1T3XT info [mailto:[EMAIL PROTECTED] Sent: 07 November 2008 12:38 To: Post all your questions a

Re: [iText-questions] modifying an XFA form via its XML?

2008-11-07 Thread 1T3XT info
Ekstrom, Max wrote: > Is there some additional step I must > take to "sync" the XFA with the form's appearance to the enduser? 1) Can you send me your original PDF (the one with THIS_IS_OLD)? 2) Is there also an AcroForm in your PDF? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/

Re: [iText-questions] Manipulating tagged PDFs

2008-11-07 Thread emac3
Thanks for the quick help. And sorry for missing this simple thing in both the online docs and the book. -Original Message- From: 1T3XT info [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 1:31 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Image

Re: [iText-questions] translates a String to a Rectangle

2008-11-07 Thread 1T3XT info
Byomokesh Sahoo wrote: > Hi, > > Plz anyone has give some sample code. I am new in Java. So i am > struggling to get this method. I have already explained: 1. You are running an application by executing a class that has a main method: public static void main(String[] args) { ... } Whatever Stri

Re: [iText-questions] Image in Cell (not PdfPCell)

2008-11-07 Thread 1T3XT info
Mirco Piccin wrote: > Hi all. > I see that is possible to add an image to PdfPCell using > > ... > Image image = Image.getInstance("image.gif"); > > ... > table.addCell(image); > ... > > This method semms to be not supported by Cell (com.lowagie.text.Cell). > Is there any tips to do

Re: [iText-questions] Manipulating tagged PDFs

2008-11-07 Thread 1T3XT info
Richard Grantham wrote: > 1) If you are importing a page that has been tagged are the tags > maintained? The marked content operators are preserved in the content stream. (Assuming that's what you mean by your question.) > 2) There appears to be some document-level PDF flag that deems the PDF > t

Re: [iText-questions] Image pattern without border possible?

2008-11-07 Thread 1T3XT info
[EMAIL PROTECTED] wrote: > Hi > > I'm using a PdfPatternPainter to add a repeated image. When using this code > > cb.setPatternFill(imgPattern); > cb.setLineWidth(0.0f); > cb.rectangle(...); > cb.fillStroke(); > > the pattern looks correct. However, it is surrounded by a visible border. > Sinc

[iText-questions] Please Update javadoc for RandomAccessFileOrArray.java

2008-11-07 Thread Andrea Vacondio
Could you please insert some javadoc for that class? It's very importat regarding memory usage and should be clear that RandomAccessFileOrArray(InputStream is) behaves differently from public RandomAccessFileOrArray(String filename). Thanks Andrea -

[iText-questions] Image pattern without border possible?

2008-11-07 Thread emac3
Hi I'm using a PdfPatternPainter to add a repeated image. When using this code cb.setPatternFill(imgPattern); cb.setLineWidth(0.0f); cb.rectangle(...); cb.fillStroke(); the pattern looks correct. However, it is surrounded by a visible border. Since I already added setLineWidth(0.0f) I was wond

Re: [iText-questions] Line below a paragraph

2008-11-07 Thread Leviter
Thanks That was exactly what I was looking for. 1T3XT info wrote: > > Leviter wrote: >> Hi, >> >> I looked around in the archive, but could not find an answer to my >> question... >> >> My question is: How can I put a line below a paragraph? > > Have a look at the separator examples:

[iText-questions] Manipulating tagged PDFs

2008-11-07 Thread Richard Grantham
Hi list, We generate tagged PDFs which we then split into sections using iText - specifically PdfCopy. The process renders the PDF "untagged". I have two questions. Apologies if they appear obvious but I'm a little ignorant as to the way tagged PDFs work. 1) If you are importing a page that has b

[iText-questions] Image in Cell (not PdfPCell)

2008-11-07 Thread Mirco Piccin
Hi all. I see that is possible to add an image to PdfPCell using ... Image image = Image.getInstance("image.gif"); ... table.addCell(image); ... This method semms to be not supported by Cell (com.lowagie.text.Cell). Is there any tips to do the job? Or i need to use the setAbsol

Re: [iText-questions] Line below a paragraph

2008-11-07 Thread 1T3XT info
Leviter wrote: > Hi, > > I looked around in the archive, but could not find an answer to my > question... > > My question is: How can I put a line below a paragraph? Have a look at the separator examples: http://1t3xt.info/examples/browse/?page=toc&id=367 Especially the LineSeparator examples. -

[iText-questions] Line below a paragraph

2008-11-07 Thread Leviter
Hi, I looked around in the archive, but could not find an answer to my question... My question is: How can I put a line below a paragraph? I tried using the Rectangle, but with no result. Does anyone have an example on how to add a single line below a paragraph? Thanks in advance, -- Marcel --