Hi Nurettin / Paulo,
Can anybody help me with these issues?
I have tried all the suggestions provided...
Regards,
Vaibhav Gupta
*Please don't print this Email unless you really need to - this will
preserve trees on planet earth.*
On Thu, Jan 13, 2011 at 4:17 AM, Nurettin DAG <nurettin...@gmail.com> wrote:
> I do not see why 1st one does not work. Did you debug and see if code
> inside the if block gets hit for your input?
>
> For the 2nd one you should look into IncCell class constructor. It is
> pretty easy to add support for border color. Use cell.setBorderColor when
> you identify what the color should be.
>
>
> On Wed, Jan 12, 2011 at 6:26 PM, vaibhav gupta <vaibhav2...@gmail.com>wrote:
>
>> Hi Nurettin,
>>
>> 1. Well I tried the SetListSymbol() option but it doesn't seem to work.
>> Here is my piece of code:
>>
>> *List<IElement> elementsList = HTMLWorker.ParseToList(reader,
>> this._Styles, interfaceProps);*
>> *foreach (object item in elementsList)*
>> *{ *
>> * **if (item is List)*
>> * **{*
>> * **List list = item as List;*
>> * **list.Autoindent = false;*
>> * **list.IndentationLeft = 25f;*
>> * **list.SetListSymbol("\u2022 ");*
>> * **list.SymbolIndent = 10f;*
>> * **}*
>> * **document.Add((IElement)item);*
>> *}*
>>
>>
>> 2. For the second one, could you help me with the starting point where I
>> should look for making the necessary changes?
>>
>> *Note: I am using iTextSharp version 5.0.4.1.*
>>
>> Regards,
>> Vaibhav Gupta
>>
>>
>> *Please don't print this Email unless you really need to - this will
>> preserve trees on planet earth.*
>>
>>
>> On Thu, Jan 13, 2011 at 2:05 AM, Nurettin DAG <nurettin...@gmail.com>wrote:
>>
>>> The first issue was fixed in the latest version for Java. I am not sure
>>> how the porting from Java to Csharp works. It has probably not been ported
>>> yet. The fix is simply
>>>
>>> list.setListSymbol("\u2022 ");
>>>
>>> Until that gets fixed you might want to do postprocessing on the output
>>> elements on HTMLWorker.parse and do the one above for instances of
>>> com.itextpdf.text.List
>>>
>>> The second issue is unfortunately not supported. HTMLWorker currently
>>> only supports property "border" that indicates the width of border. I think
>>> when it is set to 0 (border="0") borders would not be visible, worth a shot.
>>> On the other hand, "bordercolor" is not currently supported. You might try
>>> to patch it.
>>>
>>> Good luck
>>> Nurettin
>>>
>>> On Wed, Jan 12, 2011 at 5:05 PM, vaibhav gupta <vaibhav2...@gmail.com>wrote:
>>>
>>>> Hi Guys,
>>>>
>>>> I am having some issues while converting HTML to PDF using ItextSharp.
>>>>
>>>> 1. In the unordered lists (UL) after conversion the bullets are having
>>>> no spacing in front of the text
>>>> 2. I have a table which has only outer borders but after conversion the
>>>> PDF table has all the borders enabled.
>>>>
>>>> Below is my HTML:
>>>>
>>>> *<table style="WIDTH: 100%" border="1" rules="none" cellspacing="0"
>>>> bordercolor="#00cccc" cellpadding="2" bgcolor="#99ffff" frame="box"
>>>> align="left" valign="middle"><tbody><tr><td>Table Item 1</td><td>Table
>>>> Item 2</td></tr><tr><td>Table Item 3</td><td>Table Item 4
>>>> </td></tr></tbody></table><p><strong><u><br></u></strong></p><p>
>>>> <u><br></u></p><p style="PADDING-LEFT: 100px"></p><ul><li>Bullet Item
>>>> 1</li><li>Bullet Item 2</li></ul><p><br></p>*
>>>>
>>>> Thanks in Advance,
>>>> Vaibhav
>>>>
>>>>
>>>> *Please don't print this Email unless you really need to - this will
>>>> preserve trees on planet earth.*
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Protect Your Site and Customers from Malware Attacks
>>>> Learn about various malware tactics and how to avoid them. Understand
>>>> malware threats, the impact they can have on your business, and how you
>>>> can protect your company and customers by using code signing.
>>>> http://p.sf.net/sfu/oracle-sfdevnl
>>>> _______________________________________________
>>>> iText-questions mailing list
>>>> iText-questions@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>>
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> Nurettin DAG
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Protect Your Site and Customers from Malware Attacks
>>> Learn about various malware tactics and how to avoid them. Understand
>>> malware threats, the impact they can have on your business, and how you
>>> can protect your company and customers by using code signing.
>>> http://p.sf.net/sfu/oracle-sfdevnl
>>> _______________________________________________
>>> iText-questions mailing list
>>> iText-questions@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>>
>>> 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
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Protect Your Site and Customers from Malware Attacks
>> Learn about various malware tactics and how to avoid them. Understand
>> malware threats, the impact they can have on your business, and how you
>> can protect your company and customers by using code signing.
>> http://p.sf.net/sfu/oracle-sfdevnl
>> _______________________________________________
>> iText-questions mailing list
>> iText-questions@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> 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
>>
>
>
>
> --
> Nurettin DAG
>
>
> ------------------------------------------------------------------------------
> Protect Your Site and Customers from Malware Attacks
> Learn about various malware tactics and how to avoid them. Understand
> malware threats, the impact they can have on your business, and how you
> can protect your company and customers by using code signing.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> 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
>
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
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