Skip to content

Add support for AppOptions #22

@sbutlerjr

Description

@sbutlerjr

Add support for the AppOptions (https://github.com/Servoy/svyPDFViewer/blob/master/pdfviewer/pdfJsViewer/pdfjs_2.9/web/viewer.js#L46-L208) so that options can be customized without forking the core viewer JS. It would allow setting permissions (printing, downloading, etc) as well as printResolution.

Example usage setting the printResolution AppOption

document.addEventListener('webviewerloaded', function() {
  PDFViewerApplicationOptions.set('printResolution', 300);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions