mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.33k stars 9.97k forks source link

Question:where can i find java-script built-in functions #8108

Closed jodevsa closed 7 years ago

jodevsa commented 7 years ago

Hello, i'm looking for the definitions of built-in functions like util.printf

timvandermeij commented 7 years ago

There is no printf in PDF.js. I think you are confusing PDF.js with another library. Our utilities are mostly in https://github.com/mozilla/pdf.js/blob/master/src/shared/util.js. Closing as answered.

jodevsa commented 7 years ago

what i meant is, javascript libraries used by the pdf reader mentioned here:https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

timvandermeij commented 7 years ago

PDF.js does not execute any JavaScript embedded in a PDF file for security reasons. The only exception is the print command to initiate printing a document, which is handled separately. Other JS is disabled and so far we do not intend to enable any other JS because of security concerns.

jodevsa commented 7 years ago

thanks alot for clarification .