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!
![]() |
Spaces in DrawTextBox not displayed in pdf |
Post Reply ![]() |
Author | |
stakon ![]() Team Player ![]() Joined: 09 Oct 09 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() Posted: 07 Dec 09 at 9:41AM |
Good day,
I have noticed that when writing in a pdf file using DrawTextBox . any spaces in the string provided are truncated. For example when calling: DrawTextBox(left,top,width,height,"4 spaces 10 spaces: end",0); what is really in th pdf is: 4 spaces 10 spaces: end Btw when using DrawText, the above problem does not appear. Thanx in advance, stakon |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Stakon!
It's not a bug - It's a feature ;-) The developers had thought that it makes more sense to remove the spaces while using textboxes. But you has already seen how to avoid this behavior (using DrawText)... BTW: Is it the same if you're using Chr(32) instead of real space? Cheers, Ingo |
|
![]() |
|
stakon ![]() Team Player ![]() Joined: 09 Oct 09 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
I guess then that it is a buggy feature :p A more useful implementation would be to set the truncating on/off in the options parameter... I also tried your idea by providing ("%c",32) but it was just the same. By using DrawText i lose much of the DrawTextBox convenience... How can i make a request, so that this "fetaure" becomes friendlier? stakon. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
In the general section i've posted soemthing for this case "the first step...". Cheers, Ingo |
|
![]() |
|
JanN ![]() Senior Member ![]() Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
![]() ![]() ![]() ![]() ![]() |
http://quickpdf.org/forum/adding-spaces-to-text-field_topic1271_post5839.html
|
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
Ingo is right, it's by design. Cheers, - Rowan. Edited by Rowan - 11 Dec 09 at 6:13AM |
|
![]() |
|
stakon ![]() Team Player ![]() Joined: 09 Oct 09 Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Chr(160) works fine.
Thanx to all! |
|
![]() |
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