[iText-questions] delete chunk of a pdf page

2007-01-29 Thread Brendan Graves
Hi there, I was wondering if anyone had any good ideas of how to go about removing all objects (graphics, images, text) below a given y co-ordinate on a single page of an existing pdf using itext? Thanks for your help! Brendan

Re: [iText-questions] Just Curious - PDFBox question

2007-01-29 Thread Ben Litchfield
Printing(and displaying) PDFs using PDFBox is not fully implemented at this time and as such YMMV with certain PDF documents. It is not really a case of PDF tools not meshing; it's a case of the PDF specification is large and many PDF tools only implement portions. Both iText and PDFBox are o

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-29 Thread Tom Bevan
Bruno, Thanks for the quick reply. Here is a little of my code //The form field in which everything is contained. PdfFormField submission = PdfFormField.createEmpty(writer); submission.setFieldName("fax"); PdfFormField hidden = PdfFormF

Re: [iText-questions] PdfStamper.close(): java.io.IOException: Notenough space

2007-01-29 Thread Paulo Soares
That's a consequence of the system not finding continuous space in the virtual memory. Since RandomAccessFile was replaced by a memory mapped file this errors pop up now and then. I'm considering reverting to the previous situation or at least provide an option to chose one of the methods. That

[iText-questions] PdfStamper.close(): java.io.IOException: Not enough space

2007-01-29 Thread Gatewood, Paul (RSIS)
I am getting java.io.IOException: Not enough space when I try to close a PdfStamper. I am having a very hard time tracking down what the problem could be (e.g. what I am doing wrong). I will include the code and stacktrace below, but first let me explain something about the environment which is m

Re: [iText-questions] Converting PDF form to HTML form

2007-01-29 Thread Dirk.Weigenand
Michael Dolgonos <[EMAIL PROTECTED]> writes: > Dirk, > What's xdp representation? I'm new to this stuff. And I have only one page. > Anything you can do to help? Well i don't know ;) See Brunos other mails. Please be more specific about your problem. For us it's clearly not so easy to read tee

[iText-questions] Just Curious - PDFBox question

2007-01-29 Thread seanka
I have tried printing with pdfbox and barcodes are not rendered. I was wanting to know if anyone knew any technical reasons for this? They have opened the issue on thier site/tracking system and have called it a bug but I find this very disturbing that PDF tools are not meshing. This just seems

Re: [iText-questions] RTF - on start page

2007-01-29 Thread Mark Hall
On Monday 29 January 2007 17:04, GAMBELLI Raffaele wrote: > I would like to have page events like pdf... There is no rendering process in the RtfWriter2, thus no events can be generated. Impossible. > My specific problem is that I have multiple tables with same header, and I > need to show this h

Re: [iText-questions] Hi Content Disposition !!!

2007-01-29 Thread Bruno Lowagie
Ramachandran wrote: > Hi > > i tried using Content-Disposition type but that is also not working. > > response.setHeader("Content-Disposition", > " inline; filename=RES-TMob.pdf"); It works for me. There are other options, for instance involving your web.xml, but that's hardly somethin

Re: [iText-questions] Converting PDF form to HTML form

2007-01-29 Thread Bruno Lowagie
Michael Dolgonos wrote: > Dirk, > What's xdp representation? *sigh* This was predictable. Download the third chapter from my book. It's available for free from this URL: http://itext.ugent.be/itext-in-action/#free Search for XDP. > Anything you can do to help? CLARIFY!!! To us your question soun

Re: [iText-questions] Converting PDF form to HTML form

2007-01-29 Thread Bruno Lowagie
Michael Dolgonos wrote: > Bruno, > I'm not sure I understood your comment.. I could have given you the very good answer given to you by Dirk Weigenand: "Do you have an xdp representation of that PDF file? If so you can use xslt to transform the form to html." But as Dirk says: it's a "beast" (mea

Re: [iText-questions] Hi Content Disposition !!!

2007-01-29 Thread Ramachandran
Hi i tried using Content-Disposition type but that is also not working. response.setHeader("Content-Disposition", " inline; filename=RES-TMob.pdf"); but again some "dispatcher.pdf" option is coming while saving...plz let me know if you know any option. "Bruno Lowagie

Re: [iText-questions] Optional content in iTextSharp and related functionality

2007-01-29 Thread Ignacio Ruiz-de-Conejo
Paulo: Properties of optional content did work, thanks a lot! Ignacio - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & busine

Re: [iText-questions] Converting PDF form to HTML form

2007-01-29 Thread Michael Dolgonos
Dirk, What's xdp representation? I'm new to this stuff. And I have only one page. Anything you can do to help? Thanks a lot, MD - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and

Re: [iText-questions] Converting PDF form to HTML form

2007-01-29 Thread Michael Dolgonos
Bruno, I'm not sure I understood your comment.. MD - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics throug

[iText-questions] RTF - on start page

2007-01-29 Thread GAMBELLI Raffaele
Hi all, this is a question for Mark: I would like to have page events like pdf... I have already read in mailing list those words: > ...There is no concept of pages in the RTF > document. Only when the > document is opened in a viewer is the document split > into multiple pages. > The only excep

Re: [iText-questions] Create RTF file with greek char

2007-01-29 Thread Bruno Lowagie (iText)
Henry Lu wrote: > Here is my code to display Greek character k - kappa: > > document.open(); > > // step 4: we add a paragraph to the document > Paragraph p = new Paragraph("Hello" + "\\u954" + "Hello"); > > document.add(p); > > But here is

Re: [iText-questions] Create RTF file with greek char

2007-01-29 Thread Henry Lu
Here is my code to display Greek character k - kappa: document.open(); // step 4: we add a paragraph to the document Paragraph p = new Paragraph("Hello" + "\\u954" + "Hello"); document.add(p); But here is the RTF output: Hello\u954Hello A

Re: [iText-questions] Rotate a rectangle

2007-01-29 Thread Bruno Lowagie (iText)
Matthias Flury wrote: > What ist the "right way" to draw a rectangle > rotated at specified angle It depends. (1) When drawing graphics on a rectangle, I usually create a PdfTemplate, draw whatever shapes I need on this small canvas, then wrap the PdfTemplate in an Image, scale, rotate, translat

Re: [iText-questions] Rotate a rectangle

2007-01-29 Thread Matthias Flury
Helo again Ok, there is probably a general missunderstanding (we were working with Perl PDF::API2 before). What ist the "right way" to draw a rectangle rotated at specified angle (we need it to put a blank bar below a stamped text)? Finaly we end up to draw lines and afterwards we fill the s

Re: [iText-questions] Rotate a rectangle

2007-01-29 Thread Bruno Lowagie (iText)
Matthias Flury wrote: > Hello everybody > > Simple itext question: > > We draw a rectangle with cb.rectange, afterwards we rotate it with > concateCTM(f1,f0,f0,f-1,0,0) Wo-ho! Are you calling this a simple iText question? Then you are making two assumptions that are wrong. This is NOT an iText

Re: [iText-questions] iText question answered

2007-01-29 Thread Paulo Soares
sigma and int are entities that are present in HTMLWorker. If you don't see them it's because the font selected doesn't have the characters. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Bruno Lowagie (iText) > Sent: Monday, January 29,

Re: [iText-questions] ExceptionConverter: org.xml.sax.SAXParseException

2007-01-29 Thread Bruno Lowagie (iText)
preeti singh wrote: > ExceptionConverter: _org.xml.sax.SAXParseException_: Expected "" > to terminate element starting on line 4. > > > This error appears once my application converts the xml file to pdf. > The xml is written as UTF-8. any idea what this exception means? Based on the message gi

Re: [iText-questions] iText question answered

2007-01-29 Thread Bruno Lowagie
Bruno Lowagie (iText) wrote: > The entities you are referring too are present in the class > com.lowagie.text.Entities, but I don't think they were implemented > in HTMLWorker (I am forwarding this to the mailing list so that > somebody can correct me if I'm wrong). I immediately have to correct m

[iText-questions] ExceptionConverter: org.xml.sax.SAXParseException

2007-01-29 Thread preeti singh
ExceptionConverter: org.xml.sax.SAXParseException: Expected "" to terminate element starting on line 4. This error appears once my application converts the xml file to pdf. The xml is written as UTF-8. any idea what this exception means?

[iText-questions] Rotate a rectangle

2007-01-29 Thread Matthias Flury
Hello everybody Simple itext question: We draw a rectangle with cb.rectange, afterwards we rotate it with concateCTM(f1,f0,f0,f-1,0,0). -> no more rectangle is shown. We tride also different values for the concateCTM. We checked alo the PDF with the Adobe illustrater to be shure that the recta

Re: [iText-questions] Compiling using 1.3

2007-01-29 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > > I compiling using 1.3 because i use that environment, and give me error > in one only class: > > ImageXRefViewer. Cannot resolve: > > import javax.swing.JSpinner; > import javax.swing.SpinnerModel; > > Is there another class "equivalent" at 1.3 ? Please follow the

Re: [iText-questions] iText question answered

2007-01-29 Thread Bruno Lowagie (iText)
Arne Venstad wrote: > I have experimented a little bit with the PdfPTable, PdfPCell and the > HTMLWorker.parseToList. > I can report that this has been successful with a sample HTM-file > created by the tiny_mce editor! > > There are a couple of unsupported entities in our sample file: The HTML

[iText-questions] Compiling using 1.3

2007-01-29 Thread mdcapurro
I compiling using 1.3 because i use that environment, and give me error in one only class: ImageXRefViewer. Cannot resolve: import javax.swing.JSpinner; import javax.swing.SpinnerModel; Is there another class "equivalent" at 1.3 ? Thanks in advance. Daniela

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-29 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > I have seen that you can create a hidden field. You can do it without > giving a type to the field. The problem is how can hidden a field that > have a type (TextField, ComboBox, .) Tom Bevan want to add a Hidden field (in HTML: type="Hidden"); you want to make a fi

Re: [iText-questions] Hidden Acrofields

2007-01-29 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > I haven't test it. I read it in the book about Annotation but I > supposed that the FLAGS_HIDDEN where only for the Annotation associated > to one field but not for the field. It's not an easy chapter, especially where I try to explain that you have AcroFields and Widge

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-29 Thread LRAMIREZ
I have seen that you can create a hidden field. You can do it without giving a type to the field. The problem is how can hidden a field that have a type (TextField, ComboBox, .) -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Bruno Lowagie (iText) Envia

Re: [iText-questions] PDF to become an open, ISO standard

2007-01-29 Thread Bruno Lowagie (iText)
Leonard Rosenthol wrote: > and you'll all note that in my "History of PDF Openness" page > ( >), I gave iText a nod for it's support of PDF and Open Source! So I see. I started working on iText in December 1998. I'm not sure

Re: [iText-questions] Hidden Acrofields

2007-01-29 Thread LRAMIREZ
I haven't test it. I read it in the book about Annotation but I supposed that the FLAGS_HIDDEN where only for the Annotation associated to one field but not for the field. Regards. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Bruno Lowagie (iText) Envia

Re: [iText-questions] Inserting Hidden fields into a PDF document

2007-01-29 Thread Bruno Lowagie (iText)
Tom Bevan wrote: > Could someone please post a snippet of code that demonstrates how to > insert a hidden field into a PDF document? > > Whenever I add a field which is not written out it just seems to wipe > out the entire form. On page 499 of the book, I give an overview of HTML form elements

Re: [iText-questions] Hidden Acrofields

2007-01-29 Thread Bruno Lowagie (iText)
[EMAIL PROTECTED] wrote: > I want to know how can I hide a Field of one AcroForm. I want throught > the iText API change dinamically the visibility of AcroFields. OK. > I have seen in the API that it is possible to work with layers but I > want to know if there is other method to do it. Are yo

Re: [iText-questions] PDF to become an open, ISO standard

2007-01-29 Thread Leonard Rosenthol
and you'll all note that in my "History of PDF Openness" page (), I gave iText a nod for it's support of PDF and Open Source! Leonard P.S. If anyone has any questions about our announcement - feel free to ask! On Jan 29,

[iText-questions] Hidden Acrofields

2007-01-29 Thread LRAMIREZ
I want to know how can I hide a Field of one AcroForm. I want throught the iText API change dinamically the visibility of AcroFields. I have seen in the API that it is possible to work with layers but I want to know if there is other method to do it. I have seen in the API, the method public boole

[iText-questions] PDF to become an open, ISO standard

2007-01-29 Thread Bruno Lowagie (iText)
This might interest you: http://www.desktoplinux.com/news/NS2782821882.html - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & bu

Re: [iText-questions] Hi !!! Need Docs.

2007-01-29 Thread Bruno Lowagie (iText)
Ramachandran wrote: > Hi Bruno, > > one issue i got from my client about PDF Gen is file name . Please don't mail questions to me personally, use the list!!! > I have given : > p_response.setContentType("application/pdf"); >PdfWriter writer =PdfWriter.getInstance(document, > p_response.g

[iText-questions] Indentation of a PdfPTable

2007-01-29 Thread Eric Summkeller
I just want to set a left indentation for a PdfTable. Any ideas how I could do this? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions

Re: [iText-questions] iText-Questions

2007-01-29 Thread Bruno Lowagie (iText)
(Somebody) wrote: > As you have figured out by now, even though I've been > programming for 40 years I am a rank amateur when it comes > to most of the technologies involved with iText. No, I didn't figure that out, I usually don't look at the names of the people that post questions on the mail

Re: [iText-questions] It works on Windows but not on Linux : The document has no pages.

2007-01-29 Thread Bruno Lowagie (iText)
Philippe Vandenhove wrote: > finally the exception : > ExceptionConverter: > java.io.IOException: The document has no pages. This exception is normally thrown when you close the document (document.close()), but in this case, the cause of the error is probably to be found at an earlier stage. If I

[iText-questions] It works on Windows but not on Linux : The document has no pages.

2007-01-29 Thread Philippe Vandenhove
Hello , Here is the code that cause problem. I create an image with a blob if(cpas.getLogo()!=null) { PdfPCell cell =getPdfPCellImage(getImage(cpas.getLogo(), Image.NO_BORDER),0, Element.ALIGN_CENTER); tableHeader.addCell(cell); } // first method called

Re: [iText-questions] Please Help with weird issue

2007-01-29 Thread Bruno Lowagie (iText)
mike smith wrote: > Hi, > > Thanks for your help. I have tried to do what you said, but when I tried > it, I always ran into some error (e.g Page getting cut off or other text > showing up that I don't want). I'm not sure which advise you followed. Have you imported pages, wrapped them in an i

Re: [iText-questions] placing pdfptable on existing pdfpage and inbetween the texts.

2007-01-29 Thread Bruno Lowagie (iText)
KUMAR PRASHANT wrote: > Dear bruno, >now i am able to place my table on existing pdf with the > same code which i sent you.only problem was there that i was not closing > the stamper.now my problem is that if there is text on the Template pdf > at the position where i want to pla

Re: [iText-questions] placing pdfptable on existing pdfpage and inbetween the texts.

2007-01-29 Thread Bruno Lowagie (iText)
KUMAR PRASHANT wrote: > Dear Bruno, > i am sending my code in which i am trying to place a > pdfptable on existing pdf.this existing pdf has multiline text.i have to > place the table in between the text.with this code there is no compile > time error nor any runtime error.it