[iText-questions] Displaying Japanese in HTML Export

2005-05-21 Thread Benjamin Pasero
Hi, when exporting Japanese content into HTML, I am having the problem that the characters wont display correctly. But everything works fine, when exporting it into PDF. I am using a special Japanese Font, and it is looking good in PDF, but not in HTML. I am also having iTextAsian on the Classpath

Re: [iText-questions] Possible to prevent HtmlWriter replacing < and > with entities?

2004-11-01 Thread Benjamin Pasero
Replying to my own post, I am know extending the HtmlWriter and overwriting the write() Method such as any > and < from the String is restored as < and >. Will this result in any problems? Why at all is iText using that HtmlEncoder:encode() Method? Regards, Ben Hi, I am using iText to generate

[iText-questions] Possible to prevent HtmlWriter replacing < and > with entities?

2004-10-31 Thread Benjamin Pasero
Hi, I am using iText to generate a HTML document out of a String that also may contain HTML Tags. Now, the HtmlWriter is replacing any < and > with entities (< and >). Is it possible to prevent the HtmlWriter to replace HTML Tags with the entities? Thanks for helping, Ben --

Re: [iText-questions] Howto display HTML String in PDF?

2004-09-17 Thread Benjamin Pasero
Replying to my own post, one solution would be: Document doc = new Document(PageSize.A4, 50, 50, 108, 80); OutputStream SalidaPdf = new FileOutputStream("C:/test.pdf"); PdfWriter writer = PdfWriter.getInstance(doc, SalidaPdf); doc.open(); doc.resetPageCount(); try { new HTMLWorker(doc).parse(new

[iText-questions] Howto display HTML String in PDF?

2004-09-17 Thread Benjamin Pasero
Hi, I am having a String filled with HTML Tags and Text. I wonder if there is an easy way to pass that String into a Document having all simple Tags (like Anchor, Bold, Italic, Paragraph, BR) displayed as such. For example a Method that returns a Paragraph, filled with correctly styled Chunks for e

[iText-questions] Howto have Chapter/Section with TableCells

2004-09-16 Thread Benjamin Pasero
Hi, I am using a Table to display three columns. The first column contains a Cell that is filled with a Title. The Title exists of a Paragraph that contains a Chunk. I would like to have that Title appear as Outline. Is it possible to have the content of a Cell be the Chapter or Section? If not, I