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 - Spaces lost in multiline form field
  FAQ FAQ  Forum Search   Register Register  Login Login

Spaces lost in multiline form field

 Post Reply Post Reply
Author
Message
CASheaCo View Drop Down
Beginner
Beginner


Joined: 16 Sep 11
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote CASheaCo Quote  Post ReplyReply Direct Link To This Post Topic: Spaces lost in multiline form field
    Posted: 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 10 Oct 11 at 6:18AM
We will be making some changes to fix this to work the same as Acrobat.  

Andrew.
Back to Top
CASheaCo View Drop Down
Beginner
Beginner


Joined: 16 Sep 11
Location: United States
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote CASheaCo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
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