Re: [iText-questions] IText, XMLWorker & CSS

2012-03-14 Thread Dean McCarthy
” issue is something else, please be specific, or show your HTML / stylesheet. Cheers Dean Dean McCarthy | Managing Director BCM International Limited PO Box 302 392 | North Harbour 0751| Auckland | New Zealand Building G|4 Orbit Drive |Albany 0632 | Auckland |New

Re: [iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-10 Thread Dean McCarthy
wrong attributes in the link tag(I am using just the supported ones: type and href)? /Myriam ps: Good tip for the CSS fonts! 2012/2/9 Dean McCarthy mailto:dean.mccar...@bcmi.co.nz>> Hi Myriam It looks like you're not telling XMLworker about your external CSS file. Here is my working

Re: [iText-questions] XMLWorker : HTML to PDF problem with external css

2012-02-09 Thread Dean McCarthy
Hi Myriam It looks like you're not telling XMLworker about your external CSS file. Here is my working code, in VB... Protected Sub AddHTML(ByVal HTMLContent As String) Dim HtmlContext As HtmlPipelineContext = New HtmlPipelineContext HtmlContext.SetTagFactory(iTextSharp.tool.

[iText-questions] iTextSharp - XMLWorkerHelper - Parsing HTML into a list of Element objects

2012-02-04 Thread Dean McCarthy
Could somebody please provide an example of parsing HTML into a list of elements using XMLWorkerHelper in iTextSharp (C# or VB). The JAVA version as given in the documentation is: XMLWorkerHelper.getInstance().parseXHtml(new ElementHandler() { public void add(final Writable w) { if (w instanceof

[iText-questions] Registering fonts for use with CSS in XMLWork

2012-01-26 Thread Dean McCarthy
I am trying to use XMLWorker instead of HTMLWorker. My issue is with some Windows fonts in the CSS file. Other properties (Font Size, Font Colour, etc) within the CSS are displaying in the PDF just fine, however the font is incorrect. For HTMLWorker I used the following: FontFactory.Register("