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 lost in multiline form field |
Post Reply
|
| Author | |
CASheaCo
Beginner
Joined: 16 Sep 11 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Spaces lost in multiline form fieldPosted: 07 Oct 11 at 9:41PM |
|
I have run into a problem with multiline form fields when I include mulitple spaces in a string that I am saving.
If I do the following: A:='A bcd'; QuickPDF.SetFormFieldValue(idx, A); QuickPDF.FlattenFormField(idx); QuickPDF.SavetoFile('Temp.pdf'); When I look at Temp.pdf the field is "A bcd" If do not flatten, when I look at the file in Adobe the spaces are still there. Is there something I can do to stop the flattening process from removing the spaces? Thank you
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Oct 11 at 11:51AM |
|
Hi Shea!
What you described is the normal way. Multiple spaces in one row will be condensed to one. Try this ... A := 'A' + #32 + #32 + 'bcd'; ...or something with Chr(32). This will work. Cheers and welcome here, Ingo |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 Oct 11 at 6:18AM |
|
We will be making some changes to fix this to work the same as Acrobat.
Andrew.
|
|
![]() |
|
CASheaCo
Beginner
Joined: 16 Sep 11 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 Oct 11 at 3:21PM |
|
Thanks, Ingo and AndrewC.
Ingo suggestion did not work. The spaces do not get lost when the string is assigned to the field, they get lost in the flattening process. Is there some workaround that you can suggest while QuickPDF is being fixed? Thanks
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 Oct 11 at 4:20PM |
|
We have added a fix to the 8.12 beta release due out later today.
The fix preserves spaces. The only small issue is leading spaces. Acrobat ignores leading spaces when drawing the form field text string and we have made QPL draw the string the same way when leading spaces are used.
|
|
![]() |
|
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