Re: [iText-questions] HTML to PDF

2012-05-17 Thread 1T3XT BVBA
On 17/05/2012 23:47, Hugh McLaughlin wrote: Ok, I've switched over to XMLWorker, and studied the documentation and example at: http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html However, I receive an error on the first line: Dim HtmlContext As HtmlPipelineContext = New HtmlPipeli

Re: [iText-questions] Bug?when I make a cast

2012-05-17 Thread 1T3XT BVBA
On 17/05/2012 12:26, Lluís Janer Pons wrote: > Please if you can tell me a solution for this or if you can > comprobateif thisis a bug. We'll throw away (or at least deprecate) HTMLWorker in future releases. We'll invest in the further development of XML Worker. --

Re: [iText-questions] HTML to PDF

2012-05-17 Thread Alexis Pigeon
Hi Hugh, On 17 May 2012 23:47, Hugh McLaughlin wrote: > Ok, I’ve switched over to XMLWorker, and studied the documentation and > example at: > > ** ** > > http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html > > ** ** > > However, I receive an error on the first line: > > **

Re: [iText-questions] HTML to PDF

2012-05-17 Thread Hugh McLaughlin
Ok, I've switched over to XMLWorker, and studied the documentation and example at: http://demo.itextsupport.com/xmlworker/itextdoc/flatsite.html However, I receive an error on the first line: Dim HtmlContext As HtmlPipelineContext = New HtmlPipelineContext() I'm using itext.xmlworke

Re: [iText-questions] wrong Encoding

2012-05-17 Thread ajula
Thanks for the advice but that it does not work for C# (ASP.NET). In C # are only these four methods: XMLWorkerHelper.GetInstance().ParseXHtml(IElementHandler d, TextReader inp); XMLWorkerHelper.GetInstance().ParseXHtml(IElementHandler d, Stream inp, Encoding charset); XMLWorkerHelper.GetInstanc

Re: [iText-questions] Scaling imported Swing Elements

2012-05-17 Thread Bill Ensley
Im sorry, my text correct messed up your name. - bill - Original Message - From: Bill Ensley To: Post all your questions about iText here Sent: Thu, 17 May 2012 08:41:25 -0700 (PDT) Subject: Re: [iText-questions] Scaling imported Swing Elements Hi Banjos For starters you are mixing p

Re: [iText-questions] Scaling imported Swing Elements

2012-05-17 Thread Bill Ensley
Hi Banjos For starters you are mixing pixels and points. Your pdf document is in points. Your panel is in pixels. You need to: a) find out what your pixel per inch value is, likely 96 but not guaranteed. Most Modern apps define their own pixel value. B) If you are 96 then points = (pixels *

[iText-questions] Scaling imported Swing Elements

2012-05-17 Thread borric
Hi, I use following code to export a jPanel to PDF: Document document = new Document(PageSize.A4); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("C:\\temp\\test.pdf")); document.open(); PdfContentByte contentBy

Re: [iText-questions] Bug?when I make a cast

2012-05-17 Thread Alexis Pigeon
Hi Lluís, On 17 May 2012 12:26, Lluís Janer Pons wrote: > Hello > > I am project manager of a computer company. The reason of this e-mail is > that whith your itext library when trying to convert html to Pdf, it find > an error that is not correct. > > For example this html code is correct but

[iText-questions] Bug?when I make a cast

2012-05-17 Thread Lluís Janer Pons
Hello I am project manager of a computer company. The reason of this e-mail is that whith your itext library when trying to convert html to Pdf, it find an error that is not correct. For example this html code is correct but when execute my program it give me this error: http:/

Re: [iText-questions] itext-paulo-155 and Java 7

2012-05-17 Thread Alexis Pigeon
Hi Valentin, On 17 May 2012 10:22, Valentin Ivanov wrote: > Hello, > > I use *itext-paulo-155_fixed.jar* to sign PDF files in Java 6 without any > problems. But in Java 7 I have the exception : > > /java.lang.ClassCastException: com.lowagie.text.pdf.PdfTemplate cannot be > cast to java.lang.Com

Re: [iText-questions] Comment écrire dans un tableau existant !

2012-05-17 Thread Alexis Pigeon
Hi Ahmed, 2012/5/17 Ahmed OUBAHA > Bonjour > > j'ai reussi a calculé les coordonnés X, Y des autres champs text avec > ColumnText.ShowTextAligned , mais pour les tableaux j'ai pas arrivé a le > faire , Mon pdf na pas de champs fields interactive , par contre mon > tableau existant se compose

[iText-questions] itext-paulo-155 and Java 7

2012-05-17 Thread Valentin Ivanov
Hello, I use *itext-paulo-155_fixed.jar* to sign PDF files in Java 6 without any problems. But in Java 7 I have the exception : /java.lang.ClassCastException: com.lowagie.text.pdf.PdfTemplate cannot be cast to java.lang.Comparable at java.util.TreeMap.compare(Unknown Source) at

Re: [iText-questions] Making a pdf from images ?

2012-05-17 Thread 1T3XT BVBA
On 17/05/2012 0:12, dying veteran wrote: > Dear All, > > Is there a command in itext to make a single page pdf file with two or > three images. > > Say, one image is a color, a second image is another color and third > is a B/W mask for the second color image. The second and mask are > equal pix

Re: [iText-questions] HTML to PDF

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 23:13, Hugh McLaughlin wrote: Hello Everyone and thanks for your help in advance. I am using iTextSharp 5.1.2.0 and want to convert HTML to PDF. I am going through the documentation and numerous posts. I attempted to utilize the HTML parser without success. It appears the so

Re: [iText-questions] XML to pdf

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 22:08, Ajmal Shah wrote: > Hi all, > > I am not sure if this is possible but i saw an example and got > curious. Is there any way of dynamic styling of PDFs using XML. My > problem is I have many reports (20-40) and want to use a XSLT to style > and the iText to convert the XML to

Re: [iText-questions] Word wrapping inside a column on PdfPtable

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 21:54, jveena wrote: > Is there anything I can do to not move the > second part to a new line? Introduce a different split character to split long words early. Read chapter 4 of iText in Action Second Edition to find out your options regarding tables and cells. -

Re: [iText-questions] wrong Encoding

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 19:34, aj...@centrum.cz wrote: Hi, please advice. I have text with czech characters like "Ččůřšě" but I can convert them to PDF document. Please advise me? Your example is wrong for many different reasons. This is a non-exhaustive list: 1. you store special characters in your c

Re: [iText-questions] Book itextsharrp

2012-05-17 Thread aszomor
Hi Michael, I misunderstand your question, what do you want ? You can download the full VS2008 sources from that site http://kuujinbo.info/iTextInAction2Ed/index.aspx just click the following link "Get the zipped source code from Google docs" last updated Monday, March 26, 2012 at 13:55 GMT o

Re: [iText-questions] com.itextpdf.text.html.simpleparser.CellWrapper cannot be cast to com.itextpdf.text.Paragraph

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 18:36, Raul Pastor wrote: Hello we have developed a web service which receives a xml (with tags containig html content) and sometimes we get this error when trying to convert to PDF: *"com.itextpdf.text.html.simpleparser.CellWrapper cannot be cast to com.itextpdf.text.Paragrap

Re: [iText-questions] Convert DWF to PDF

2012-05-17 Thread 1T3XT BVBA
On 16/05/2012 15:22, Khatri Anand wrote: > HI > > I want to convert DWF file to PDF file using iText. How can I? We don't do DWF to PDF conversion, so you'll need to find software that is able to parse DWF. -- Live

[iText-questions] com.itextpdf.text.html.simpleparser.CellWrapper cannot be cast to com.itextpdf.text.Paragraph

2012-05-17 Thread Raul Pastor
Hello we have developed a web service which receives a xml (with tags containig html content) and sometimes we get this error when trying to convert to PDF: *"com.itextpdf.text.html.simpleparser.CellWrapper cannot be cast to com.itextpdf.text.Paragraph*" Any idea about what could be the pr

[iText-questions] Book itextsharrp

2012-05-17 Thread michael martin
Can someone please help me with source code using iTextSharp;  here is the link  http://kuujinbo.info/cs/itext_template2.aspx how to complete this method _do_form_fields()-- Live Security Virtual Conference Exclusive liv

[iText-questions] XML to pdf

2012-05-17 Thread Ajmal Shah
Hi all, I am not sure if this is possible but i saw an example and got curious. Is there any way of dynamic styling of PDFs using XML. My problem is I have many reports (20-40) and want to use a XSLT to style and the iText to convert the XML to PDF, essentially creating something similar to crysta