Print Page | Close Window

NewFormField title with periods

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3435
Printed Date: 22 Nov 24 at 7:00PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: NewFormField title with periods
Posted By: BobW
Subject: NewFormField title with periods
Date Posted: 31 Jan 17 at 9:23PM
The NewFormField method does not accept a period in the title but the SetFormFieldTitle does.  I needed to have a period in the title because the PDFs I am creating are being automatically filled in by another process and the title (name) of the form field is being referenced like a mail-merge and the field names contain titles.

I'm curious as to why periods are not allowed in NewFormField but mostly I'm writing this note so future users searching the forum will find this and see how they can programmatically create a form field with a period in the title.

Thx,

Bob



Replies:
Posted By: BobW
Date Posted: 31 Jan 17 at 10:41PM
Ah, I'm learning more about PDFs all the time!  The period is the delimiter for the parent/child relationship with Form Fields.  That explains why it's not a good character to have in the name.  Still, what I am doing seems to work just fine with the external process that fills in the fields.  I rewrote my program to separate the field names with periods into parent and child, then find the parent, get its index, and add the new form field as a child of that parent. Seems to work great!


Posted By: Ingo
Date Posted: 31 Jan 17 at 10:43PM
Hi Bob,

this is the user/user-forum ;-)
Perhaps it's better to post such things on the official support page of Debenu?



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk