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 - HTML Drawing bug/feature
  FAQ FAQ  Forum Search   Register Register  Login Login

HTML Drawing bug/feature

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


Joined: 13 Feb 11
Location: Washington, USA
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote HNRSoftware Quote  Post ReplyReply Direct Link To This Post Topic: HTML Drawing bug/feature
    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.

 

Back to Top
HNRSoftware View Drop Down
Senior Member
Senior Member


Joined: 13 Feb 11
Location: Washington, USA
Status: Offline
Points: 88
Post Options Post Options   Thanks (0) Thanks(0)   Quote HNRSoftware Quote  Post ReplyReply Direct Link To This Post 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.  
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