Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DrawHTMLTextBox - UL alignment
  FAQ FAQ  Forum Search   Register Register  Login Login

DrawHTMLTextBox - UL alignment

 Post Reply Post Reply
Author
Message
rweetch View Drop Down
Senior Member
Senior Member


Joined: 22 Feb 11
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote rweetch Quote  Post ReplyReply Direct Link To This Post Topic: DrawHTMLTextBox - UL alignment
    Posted: 20 Mar 12 at 1:08PM
I am writing some html to a box area and the text contains a set of bullet points. Unfortunately the bullet points are rendred outside the area with the text aligning with the left border of the area and the bullet point to the right of that.
 
The text is
'<ul><li>some text 1</li><li>some text 2</li></ul>'
 
Any ideas? Thanks
Back to Top
Jan View Drop Down
Beginner
Beginner


Joined: 24 May 10
Location: Czech Republic
Status: Offline
Points: 14
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jan Quote  Post ReplyReply Direct Link To This Post Posted: 21 Mar 12 at 8:55AM
On 7.26 it look's correct?

qp.SetOrigin(1);

qp.SetPageDimensions(598.0, 845.0);

int iFontID = qp.AddTrueTypeFont("Times New Roman {1250}", 0);

qp.SetHTMLNormalFont("Times New Roman {1250}", iFontID);

qp.DrawBox(10, 0, 300, 100, 0);

qp.DrawHTMLTextBox(10, 0, 300, 100, "<ul><li>some text 1</li><li>some text 2</li></ul>");

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 22 Mar 12 at 10:48AM

This has been fixed in QPL 8.14 beta 7 (Maybe Final).  The indent for the bullet list was hardcoded to a fixed value that worked well with 12pt fonts but was not so good with 72pt text.

Andrew.


Edited by AndrewC - 22 Mar 12 at 10:53AM
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store