My Javascript is over 1000 lines, so Editing it for too long crashes my Adobe. Is there a way to fix this?

Feb 06, 2019

Copy link to clipboard

Copied

The question itself is pretty much the short of it.

My Javascript has become too large, and It sometimes crashes on me when I attempt to edit it for too long.

Is there a way to fix this?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

131

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

My Javascript is over 1000 lines, so Editing it for too long crashes my Adobe. Is there a way to fix this?

Feb 06, 2019

Copy link to clipboard

Copied

The question itself is pretty much the short of it.

My Javascript has become too large, and It sometimes crashes on me when I attempt to edit it for too long.

Is there a way to fix this?

TOPICS
Acrobat SDK and JavaScript, Windows

Views

132

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 06, 2019 0
Feb 06, 2019

Copy link to clipboard

Copied

Don't edit the code within Acrobat. Use a proper code editor (I like to use Notepad++), but not as an "external editor". I write all the code there, and then copy it and paste into Acrobat's built-in editor when ready.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2019 1
Feb 06, 2019

Copy link to clipboard

Copied

That's what I've resorted to doing now, it makes creating the code SO much easier.

In your experience, what is the largest script you've written within Acrobat?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2019 0
Feb 06, 2019

Copy link to clipboard

Copied

Hard to say... Must be at least 10K lines of code. At some point it gets too large for the built-in editor and you have to either split it or use an external editor to enter it. In that situation I prefer to use Notepad, as it's the most basic and simple one to use.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2019 1
Feb 06, 2019

Copy link to clipboard

Copied

Well, that is good to know because it seems I just hit the cap for how much code I can have for the in-built Acrobat editor. 

I just set up Notepad as my external editor.   How does one access the javascript in the notepad file?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2019 1
try67 LATEST
Feb 06, 2019

Copy link to clipboard

Copied

Once you've set up Notepad as the external editor it will automatically open each time you enter the JS editor.

You need to paste (or write) your code in it, then close the application (and save the file, of course) for it to be applied in the PDF.

Also, while Notepad is open you can't access the PDF, as it's a modal window, just like the built-in editor.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 06, 2019 1