Print Page | Close Window

DrawHTMLTextBox - UL alignment

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2193
Printed Date: 26 Jun 25 at 6:31PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DrawHTMLTextBox - UL alignment
Posted By: rweetch
Subject: DrawHTMLTextBox - UL alignment
Date 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



Replies:
Posted By: Jan
Date 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>");



Posted By: AndrewC
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk