Acrobat DC Javascript plugin "All Javascripts" only shows 131 lines

New Here ,
Apr 08, 2022 Apr 08, 2022

Copy link to clipboard

Copied

Open a document that has links using Javascript

Clicking on a link shows information about the symbol in a rectangle

Need to export the data in all these links without clicking every single one of them. 

Open Javascript Tool in right-hand sidebar

Click on All Javascripts

131 lines of javascripts shown, helpfully highlighted for copy-paste

rdtech_0-1649430867180.png

 

But these are only links on the first page, hundreds more missing.

If I hover over the OK button strange symbols appear in the button, or it goes black. Nothing happens if I click OK, just closes the form. 

No combination of selecting pages or scrolling affects the results. First 131 lines only. 

I am about ready to scrape the file with a regex. Can anyone save me from this fate? 

TOPICS
JavaScript

Views

95

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
community guidelines
Community Expert ,
Apr 08, 2022 Apr 08, 2022

Copy link to clipboard

Copied

Did you at any point edit the code via this dialog? If so, it's possible you've corrupted the file beyond repair.

You should only use this dialog to copy the code in order to paste it elsewhere and examine it. Do NOT use it to edit the actual code.

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
community guidelines
New Here ,
Apr 09, 2022 Apr 09, 2022

Copy link to clipboard

Copied

Yes, I wiped out some parts of the screen clipping that are covered under the NDA we have with our client. But I exited without saving so all is good. 

 

Any idea why all the links don't appear? Somebody just decided to set a buffer size at a "reasonable setting" and it overflowed? 

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
community guidelines
Community Expert ,
Apr 09, 2022 Apr 09, 2022

Copy link to clipboard

Copied

There is a limit to the built-in editor, but it's much more than 131 lines.

And when you reach it it will inform you that you did.

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
community guidelines
New Here ,
Apr 16, 2022 Apr 16, 2022

Copy link to clipboard

Copied

LATEST

No idea what caused the issue but it was easy to simply open the PDF in Visual Studio Code, locate the neatly grouped javascript records and copy-paste them through a bit of scripting code to extract the fields. Done with it now. 

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
community guidelines