Print Page | Close Window

HTML Drawing bug/feature

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=2061
Printed Date: 19 Jan 26 at 10:38AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: HTML Drawing bug/feature
Posted By: HNRSoftware
Subject: HTML Drawing bug/feature
Date Posted: 02 Dec 11 at 3:18PM

In testing the HTML drawing aspect (v8.13)

     s := '<p>Now is the time for the <b>Quick</b> <i> Brown </i> <u>Fox</u> to jump over the lazy dog''s incredibly ugly back. <br><br>More on this story as events unfold.';
     s := QP.DrawHTMLTextBox(1.00,1.00,6.00,0.33,s);


s ought to contain the portion of the original html string that didn't draw in the call.  Here is what s actually contains:


"<stack><!--0000000101EC4ADC00000010##000000        N00000000L--></stack><br>More on this story as events unfold."


This is more or less correct, and a second call outputs the remainder correctly, but it makes it more difficult for the calling code to determine if there is more text to output.  Removing everything up through "</stack>" does not seem to affect the output.

 




Replies:
Posted By: HNRSoftware
Date Posted: 02 Dec 11 at 4:00PM
actually, it is a bug - besides the weird <stack> thing, it is incorrectly handling the formatting tags as it breaks the string, so that paired tags like <b> and </b> may wind up in two lines and may not work correctly, or at all.
 
Line breaking without formatting tags seems to work decently (a few tests), but my Quick Brown string really confuses it, even if it shouldn't need to break the line to fit the width, it still thinks it has to.  



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