Skip to main content
Inspiring
August 26, 2021
Question

Sharing my Work

  • August 26, 2021
  • 3 replies
  • 1063 views

Good Afternoon Community

 

Over the past several weeks I have been working with the development of a quite complex form for use in my workplace. I have been somewhat limited by having to use the Acrobat DC Pro as my development environment as it is somewhat limited compared to other SDE that I have used.  I am also somewhat limited in my programing abilities as I really haven't done anything for about 20 years.

 

Despite all these limitations, I have managed to get a pretty functional document built that will more than fulfil its requiremenst.  A lot of this was only made possible by the community help I recieved and the input of  a few individuals.

 

What I will do in the next couple of days is put a copy of the code I created up on this forum along with a copy of the form.  I have to do a bit of sanitising though as it has some proprietry information in it that I can't share.

 

The code is a little crude and my next thing to do is try to put some of the code into functions rather than just the linear flow that it cuurrently follows. I have cut and pasted code in several spots that it know should be functions.  Hopefully I can make the code a little more efficent.

 

Anyway,  just a big thankyou to all that assisted along the way.

 

James

This topic has been closed for replies.

3 replies

Jimbo2407Author
Inspiring
August 26, 2021

Hi All,

 

As promised here is my working product.  I have had to redact some information that was Commercial in nature but I don't think it will affect the function of the form to much.

 

The code still needs to be tidied up a little and I think I can make it far more efficent using some functions in lieu of the sequential code that i have repeated in some spots.  I am also a little better at creating loops for fields so should be able to streamline some of the code with loops.

 

For those who aren't familiar with Notepad++ I would highly recommend it as a tool for making your code look better and for finding problems with brackets and parenthesis not lining up.

 

I hope that this is of some benifit to members of this forum.  I know that I had to do a lot of research to get bits working as there doesn't seem to be a definative reference for JScript when used in Adobe Acrobate DC Pro. It was always hard to find what methods, functions and attributes were available and which one could be used to test or manipulat ethe field in th form.

 

All this aside, it has been fun for an old timer like myself to dust off some old programming skill and make a functional product that will infact make my life a little easier at work.

 

Good luck and happy programming/scripting

James

Jimbo2407Author
Inspiring
August 27, 2021

Hi All,

As an addendum to my thread above, I have actually located the latest versions of the JS API Reference and the Developing Abrobat using Javascript.  Only wish I'd had these earlier to assist with my scripting work.

 

They can be found here:-

https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf

https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsdevguide.pdf

 

Participant
August 26, 2021

This is strong! I couldn't do that.

BarlaeDC
Community Expert
Community Expert
August 26, 2021

Hi,

 

Awesome, glad you achieved your aim and this forum was able to help you get there, look forward to seeing the finished product.