Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF Unordered lists list style types problem Options
AlanW
Posted: Sunday, July 24, 2011 7:53:17 PM
Rank: Newbie
Groups: Member

Joined: 7/24/2011
Posts: 4
when using an unordered list <ul>, EO.PDF always renders a list style type of square instead of a disc. Even if there is another nested unordered list, the second instance is indented correctly but still uses a square instead of cycling to a circle.

<ul>
<li>List item</li>
<li>next list item</li>
</ul>

this should produce a disc instead you get a square. even if you try
<ul style='list-style-type:disc'>, you still get a square.
How do I tell it to show a disc, circle etc.
eo_support
Posted: Sunday, July 24, 2011 8:37:05 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

If you run the same HTML snippet through our sample (All Demos -> HTML to PDF -> Basic -> Convert HTML), you should get circle. So it must have to do with other contents in your page. For example, if you have CSS rules that set all ul's list-style-type to square, then you will have square. If you have JavaScript code that dynamically change your list's type to square, then you will have square. You can try to remove other contents in your page block by block and you should be able to find out what's causing it. The converter will not switch from circle to square for no reason.

Thanks
AlanW
Posted: Sunday, July 24, 2011 9:33:55 PM
Rank: Newbie
Groups: Member

Joined: 7/24/2011
Posts: 4
I have tried this as you suggested using your demo and I am still getting squares??

if I render this code directly to a browser I get discs.
eo_support
Posted: Sunday, July 24, 2011 10:38:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
What if you run the same HTML through this demo?

http://www.essentialobjects.com/Products/EOPdf/HtmlToPdf.aspx

Thanks
AlanW
Posted: Sunday, July 24, 2011 10:53:33 PM
Rank: Newbie
Groups: Member

Joined: 7/24/2011
Posts: 4
it works as expected through this demo.
eo_support
Posted: Monday, July 25, 2011 7:21:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We cannot think of any reason that would make it render the marker differently on your machine other than our server may have a newer version. You can check whether you have the newest version, or try the demo on another machine to see if it has anything to do with your computer. We verified the same content through our demo application and it worked fine.

Thanks!
AlanW
Posted: Monday, July 25, 2011 5:17:44 PM
Rank: Newbie
Groups: Member

Joined: 7/24/2011
Posts: 4
I have updated to a newer version 3.0.44.2 from 3.0.26.2 and it now works as expected. Thanks for your prompt help.
eo_support
Posted: Tuesday, July 26, 2011 7:36:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that it works for you. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.