[iText-questions] How to convert PDF to plain TXT if the pdf is converted by plain txt before?

2007-04-06 Thread jenkinv
How to convert PDF to plain TXT if the pdf is converted by plain txt before?Thank you!Jen.- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your op

Re: [iText-questions] opening url in new window

2007-04-06 Thread Paulo Soares
You have the writer but you don't have a document.open(). Paulo - Original Message - From: <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Friday, April 06, 2007 5:51 PM Subject: Re: [iText-questions] opening url in new window Paulo, I do have a PdfWriter a

[iText-questions] RTF Line spacing

2007-04-06 Thread John Mapoles, Ph.D.
Hi, I'm building a set of scripts that create RTF documents. I'm using the basic chunks and paragraphs and fonts as below. Is there any way to adjust the line spacing of the paragraph? Thanks, jmapoles Document document = new Document( PageSize.LETTER , 72 , 72 , 72 , 72 ); RtfWriter2 writer =

Re: [iText-questions] copy xfaForm?

2007-04-06 Thread Mark Storer
Paul Hastings sustainableGIS.com> writes: > well if it's going to require reworking iText, i think > it's beyond what i can do to help these folks. can i > simply tell them 'sorry'? Yes it is, and yes you can. --Mark Storer Senior Software Engineer Cardiff.com #include typedef disclaime

Re: [iText-questions] Unable to close the window PDF embedd ed in the windows browser

2007-04-06 Thread Mark Storer
Bruno Lowagie (iText lowagie.com> writes: > > Maybe you are just asking for something that is impossible... > br, > Bruno Bruno's right. Acrobat doesn't provide any way for a PDF to communicate with a browser containing it. You cannot close the window... directly. I'm not a Web Guy, but it

Re: [iText-questions] opening url in new window

2007-04-06 Thread tnavarra
Paulo, I do have a PdfWriter as one of the arguments. Tom > One of the arguments of PdfAction.javaScript() is a PdfWriter. > > Paulo > > > > De: [EMAIL PROTECTED] em nome de > [EMAIL PROTECTED] > Enviada: sex 06-Abr-07 16:34 > Para: Post all your questions about

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Paulo Soares
It's complex but doable. You'll have to parse the child content to replace the names that exist in the parent with unique names and change the resources accordingly. In the parent you'll have to look for the Do and in its place reset the graphic state but not the transform. You'll also have to l

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Leonard Rosenthol
Flattening XObjects is well defined - but tricky to get correct. First, you'll need a content stream parser to be able to find where each form xobject exists in each content stream and the current graphics state at the time of the "Do" operator. Next, as you find each one - you need to recurs

Re: [iText-questions] opening url in new window

2007-04-06 Thread Paulo Soares
One of the arguments of PdfAction.javaScript() is a PdfWriter. Paulo De: [EMAIL PROTECTED] em nome de [EMAIL PROTECTED] Enviada: sex 06-Abr-07 16:34 Para: Post all your questions about iText here Assunto: Re: [iText-questions] opening url in new window Paulo,

Re: [iText-questions] opening url in new window

2007-04-06 Thread tnavarra
Paulo, Here is a code sample Document document = new Document(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); PdfWriter writer = PdfWriter.getInstance(document, baos); Chunk link = new Chunk("<-- view page-->");

Re: [iText-questions] opening url in new window

2007-04-06 Thread Paulo Soares
De: [EMAIL PROTECTED] em nome de [EMAIL PROTECTED] Enviada: sex 06-Abr-07 15:13 Para: iText-questions@lists.sourceforge.net Assunto: [iText-questions] opening url in new window Thank you for your help. I am attempting to add a link within the PDF to open a p

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Fabrizio Accatino
Paulo, yes, I know iText can't do that. But if I work inside the library, extending/modifying it, is it possible? In your opinion, do you think it is a very complex work? Can you give me some "start points" to investigate? Fabrizio On 4/6/07, Paulo Soares <[EMAIL PROTECTED]> wrote: iText ca

Re: [iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Paulo Soares
iText can't flatten nested objects unless you are willing to invest quite a bit of development time. Paulo De: [EMAIL PROTECTED] em nome de Fabrizio Accatino Enviada: sex 06-Abr-07 14:52 Para: iText-questions@lists.sourceforge.net Assunto: [iText-questions] How

[iText-questions] opening url in new window

2007-04-06 Thread tnavarra
Thank you for your help. I am attempting to add a link within the PDF to open a page on the same domain in a new window. The following opens the link but in the same browser window. Chunk link = new Chunk("<-- view page -->"); link.setAction(PdfAction.gotoRemotePage("http://mydomain/mypage","pag

[iText-questions] How to reduce levels of nested xobjects?

2007-04-06 Thread Fabrizio Accatino
I have a pdf. I insert it in a new pdf using PdfReader, AddTemplate, etc. Then I get the resulting pdf and do the same. I insert it in a new pdf. And then I repeat the same many times. The resulting pdf contains a sequence of nested Form Xobjects The question is: is there a way to reduce the lev

Re: [iText-questions] Automatically fitting text to a defined area

2007-04-06 Thread Paulo Soares
See PdfSignatureAppearance.fitText(). Paulo De: [EMAIL PROTECTED] em nome de David Powell Enviada: sex 06-Abr-07 13:14 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] Automatically fitting text to a defined area Does iText provides a met

Re: [iText-questions] Problem to Print a PDF

2007-04-06 Thread Paulo Soares
You should ask that in an Acrobat forum, iText just places whatever javascript you create, it doesn't process it. Paulo De: [EMAIL PROTECTED] em nome de Hilbert Rémy (GFDI) Enviada: sex 06-Abr-07 12:12 Para: itext-questions@lists.sourceforge.net Assunto: [iText

Re: [iText-questions] Watermark and PdfPublicKeySecurityHandler

2007-04-06 Thread Paulo Soares
See http://www.lowagie.com/iText/history.html#V200. Paulo De: [EMAIL PROTECTED] em nome de [EMAIL PROTECTED] Enviada: sex 06-Abr-07 12:03 Para: itext-questions@lists.sourceforge.net Assunto: [iText-questions] Watermark and PdfPublicKeySecurityHandler Hi I

[iText-questions] Automatically fitting text to a defined area

2007-04-06 Thread David Powell
Does iText provides a method to automatically fit a given text string to a defined area? What I would like to do is to define an area bounded by a rectangle and then add some text to that area and having the text automatically resize(larger or smaller) so that it fits the area exactly. Is this pos

[iText-questions] Problem to Print a PDF

2007-04-06 Thread GFDI
Hi, I wrote a Servlet who have to print silently the pdf. I used the same code as in your example (see http://itextdocs.lowagie.com/tutorial/general/webapp/index.html#silentprint) It's working well but I have to set the name of the printer So i use this code : StringBuffer javascript

[iText-questions] Watermark and PdfPublicKeySecurityHandler

2007-04-06 Thread hiphopnature
Hi I have downloaded the latest iText-2.0.1, somehow I got problems with Watermark and PdfPublicKeySecurityHandler. For PdfPublicKeySecurityHandler, I had to go to bouncycastle (http://www.bouncycastle.org) and get their jar in order for me to keep the program running (the setEncryption w