Skip to Content

If you are targeting newer versions of javascript, set the appropriate language_in option.

Hi everyone,

I want to use pdf.js library to my project. I have added it to my scripts files but after that when I rebuild the code it gives me an error like this. What is the reason of this error ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 03 at 08:21 AM


    There may be some limitations on integrating an external javascript library in a project. The Agent uses the Javascript engine which is natively provided by Windows (JScript 5.8.16384, following the ECMAScript 3 standard). Some useful methods were covered using polyfills, but not all methods from ES5.

    You cannot integrate a library if it uses syntax above ECMAScript 3 which is not covered in the SDK by polyfills.

    You cannot integrate a library if it uses an anonymous function encapsulating the entire lib.

    Some libraries have variables which name is already declared in the SDK. Thus it is not possible to integrate them, unless you update the library to remove these names.

    That's why integrating an external library might be a difficult process as you will need to adapt the library so it can be compiled in the solution.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.