question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doc.info in scripting API being currently implemented is not spec-compliant

See original GitHub issue

Don’t get me wrong, it’s great that @calixteman wanted to implement that — JS should definitely be supported! I don’t want to come off as rude or attacking.

For starters, JS reference specified in the commit comment is outdated. It’s version 8.1 from 2007… We’re more than decade past that now. We should be implementing Acrobat DC SDK (here in a nice HTML version).

Other than that, the Doc object now is only implemented with info property with standard fields (Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate and Trapped, case insensitive). But according to the spec (even in that old version), this object can contain other, non-standard properties, that can be set both in Acrobat interface and in JS (which are case-sensitive then).

Acrobat 9.0 introduced another field to that property, Authors, containing semicolon-delimited list of authors.

There are probably other problems with that code due to the outdated spec @calixteman was apparently working on.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
calixtemancommented, Feb 14, 2021

It isn’t available for now in Firefox: we’re still waiting for a review.

0reactions
timvandermeijcommented, Feb 14, 2021

The master branch is synced periodically with Firefox upstream (every week or so), so it should already be in a Firefox Nightly release, albeit disabled by default with a preference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scripting API: MonoBehaviour - Unity - Manual
Editor-only function that Unity calls when the script is loaded or a value changes in the Inspector. OnWillRenderObject, OnWillRenderObject is called for each ......
Read more >
JavaScript API client | Sanity.io plugin
If your runtime environment doesn't provide a spec compliant Promise implementation, we recommend using native-promise-only, es6-promise or another spec- ...
Read more >
How to fix Error: Not implemented: navigation (except hash ...
The reason JSDOM complains about the Error: Not implemented: navigation (except hash changes) is because JSDOM does not implement methods ...
Read more >
GraphQL Code Libraries, Tools and Services
A powerful JavaScript GraphQL client, designed to work well with React, React Native, Angular 2, or just plain JavaScript.
Read more >
Node.js 18 is now available!
In Node.js 18, an experimental global fetch API is available by default. ... The implementation strives to be as close to spec-compliant as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found