Stamp with fillable text field upon placing

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
Christiaan
User
Posts: 3
Joined: Tue Jun 19, 2018 8:49 am

Stamp with fillable text field upon placing

Post by Christiaan »

Hello,

Today I have been trying to create a stamp with a fillable text field. I'm not sure how to approach this.
So far I know this can be done via a JAVA script that lets a input box pops up whenever this stamp is placed inside a PDF.
Because I have no experience in JAVA whatsoever I have no clue on how to tackle this ! Could anybody offer me help ?

Kind regards,

Christiaan
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Stamp with fillable text field upon placing

Post by Will - Tracker Supp »

Hi Christiaan,

Thanks for the post - There is no way to do this I'm afraid. This is simply the way that dynamic stamps work within PDF's and the dialog is what allows the field inside to be filled.

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Christiaan
User
Posts: 3
Joined: Tue Jun 19, 2018 8:49 am

Re: Stamp with fillable text field upon placing

Post by Christiaan »

Will - Tracker Supp wrote:Hi Christiaan,

Thanks for the post - There is no way to do this I'm afraid. This is simply the way that dynamic stamps work within PDF's and the dialog is what allows the field inside to be filled.

Thanks,
Hi Will,

Thanks for your reply. This seems te be what I'm looking for a fillable field inside my stamp.

Christiaan
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Stamp with fillable text field upon placing

Post by Will - Tracker Supp »

Hi Christian,

Well that can be done in a sense, but it is important to note that a dynamic stamp is dynamic until it is placed, and once placed and the data entered into the dialog, the stamp essentially becomes an ordinary 'flat' stamp. Please see here for instructions on creating dynamic stamps:
https://www.pdf-xchange.com/knowle ... nge-Editor

Or here:
https://help.pdf-xchange.com/pdfxe ... amic+stamp

If you need any further help, let us know.
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Christiaan
User
Posts: 3
Joined: Tue Jun 19, 2018 8:49 am

Re: Stamp with fillable text field upon placing

Post by Christiaan »

I have been over those links and they cover only dates where I am looking for a text field. So far I can't find any.

The JAVA code used for a date is

Code: Select all

var d = new Date;
event.value = util.printd("yyyy/mm/dd/ HH:MM:ss", d);
How can I alter this so that I can fill out a text field ?
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Stamp with fillable text field upon placing

Post by Will - Tracker Supp »

Hi Christiaan,

This would require a knowledge of JavaScript and the Adobe JS API (the reference manual can be found here: https://www.adobe.com/content/dam/acom/ ... erence.pdf). We do not generally write scripts for users except in exceptional circumstances. The onus is on users to learn the API and write the scripts themselves, as we simply do not have the manpower to write JavaScripts for all users that require/want them.

The general idea is the same as in those links, but you would need to bring up a dialog that allows takes the user's input and places it in the form field of the stamp.

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Ali-Albalushi
User
Posts: 1
Joined: Mon Dec 10, 2018 11:20 am

Re: Stamp with fillable text field upon placing

Post by Ali-Albalushi »

We really do need the JavaScript to enable the text field to be fillable when it is part of the stamps in which it seem as common request made by many of PDF XChange software users. please do consider that this would benefit more then 50K of your end-users, and if that is not worth the man-hours then I don't know what is.

We are using this software in many of our projects here in Oman. your support will be well appreciated.
lev
User
Posts: 258
Joined: Fri Apr 11, 2014 1:18 am

Re: Stamp with fillable text field upon placing

Post by lev »

Ali-Albalushi, if you explain what exactly you are looking for, someone here may be able to help you. As a start take a look at viewtopic.php?f=62&t=30354&p=120515&hil ... ty#p120515. There's a file attached to one of the posts that you can dissect. Keep in mind that writing code for custom stamps is outside the scope of Tracker Software.

Lev
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17910
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Stamp with fillable text field upon placing

Post by Tracker Supp-Stefan »

Thanks for the help Lev!

Ali-Albalushi - I hope the above advise will help you get your needed functionality! And if you have any further queries - please do not hesitate to ask us and we will gladly help!

Regards,
Stefan
Post Reply