You're right Keith

I must check that nothing else changed. If it works I'll commit the fix
later today. (in the Java version )

thanks

On 29/11/11 22:29, Keith O wrote:
> Download the source, and try replacing the method in the attachment and
> rebuilding the solution.
> 
> I think the problem is that for ordered lists you need to set the
> List's Autoindent property to true. The only changes in the attachment are:
> 
>  1. Move the List's `Alignindent` and `Autoindent` defaults (false) to
>     the top of the method. (to lines 7/8)
>  2. Set the List's `Autoindent` property to true for numbered lists
>     (line 17)
> 
> 
> Just a quick look at the source code and only tested for this specific
> case. So this may not be the perfect fix, but it should get you started.
> Paulo just released iTextSharp 5.1.3 this weekend (THANK YOU!), so it
> may be a while before the .NET version of XML Worker 1.1.1 or any other
> changes are done.
> 
> HTH - keith
> 
> ------------------------------------------------------------------------
> Date: Tue, 29 Nov 2011 13:58:44 -0500
> From: stephenmb...@gmail.com
> To: itext-questions@lists.sourceforge.net
> Subject: Re: [iText-questions] HTML to PDF - XMLWorker Ordered Lists?!?
> 
> Thanks for the response.  An explanation eventually would be pretty
> sweet.  I will continue to look for a workaround, short of hard coding
> the numbering in the html.
> 
> 
> 
> On Tue, Nov 29, 2011 at 1:51 PM, Balder VC <li...@redlab.be
> <mailto:li...@redlab.be>> wrote:
> 
>     It's easily reproduced. It could be a bug.
> 
>     Can't explain what's happening, yet. Don't have time right know.
> 
> 
>     On 27/11/2011 19:39, Stephen Bell wrote:
> 
>         I am looking to convert the generated HTML output from an ASPX
>         page to a PDF file.  I have this "sort of" working using the
>         XMLWorker.  The ASPX / HTML page that I am looking to convert
>         has an orderd list on it - what I am seeing is for list items
>         1-9 everything comes out perfect.  Once I get to double digits -
>         greater than 10 - the trailing period after 10. , 11., 12., etc
>         is not present and the spacing is not correct.
> 
>         The line of code that is doing the conversion for me is simply :
>         GetInstance().ParseXHtml(writer, doc, New StringReader(markup))
>         - where the markup variable is a string of the generated HTML.
> 
>         Can anyone explain why this is happening and what I need to do
>         to fix the output?
> 
>         Thanks
> 
>         sb
> 
>

-- 
Balder VC
http://www.redlab.be/blog/
http://twitter.com/redlabbe

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to