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!
Preserve leading spaces |
Post Reply |
Author | |
jcurtiss
Beginner Joined: 10 Jun 15 Location: Hutchinson, MN Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 10 Jun 15 at 8:38PM |
When using QP.DrawWrappedText it looks like the leading spaces are removed. So if my original text is
sentence 1<CR><LF> hdr1 hdr2 hdr3<CR><LF> a a1 a2<CR><LF> b1 b2<CR><LF> c1 c2<CR><LF> I end up with sentence 1 hdr1 hdr2 hdr3 a a1 a2 b1 b2 c1 c2 Is there a way of preventing the leading spaces from being trimmed? Thank you, John
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(1)
|
Change them to non breaking space, I mean char A0 in hex.
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
jcurtiss
Beginner Joined: 10 Jun 15 Location: Hutchinson, MN Status: Offline Points: 3 |
Post Options
Thanks(0)
|
What I did is if the first character of each line was a space replace that character with a non-breaking space. The other spaces I left alone. If I replace every space with a non-breaking space then the lines that should word wrap won't.
Thank you for pointing me in the right direction! I appreciate your help. John
|
|
mLipok
Senior Member Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 449 |
Post Options
Thanks(0)
|
You're welcome.
Cheers! mLipok
|
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store