Class: PDFDocumentProperties

PDFDocumentProperties(options, overlayManager, eventBus, l10n)

new PDFDocumentProperties(options, overlayManager, eventBus, l10n)

Parameters:
Name Type Description
options PDFDocumentPropertiesOptions
overlayManager OverlayManager Manager for the viewer overlays.
eventBus EventBus The application event bus.
l10n IL10n Localization service.
Source:

Methods

close()

Close the document properties overlay.
Source:

open()

Open the document properties overlay.
Source:

setDocument(pdfDocument, url)

Set a reference to the PDF document and the URL in order to populate the overlay fields with the document properties. Note that the overlay will contain no information if this method is not called.
Parameters:
Name Type Default Description
pdfDocument PDFDocumentProxy A reference to the PDF document.
url string null The URL of the document.
Source:

setFileSize(fileSize)

Set the file size of the PDF document. This method is used to update the file size in the document properties overlay once it is known so we do not have to wait until the entire file is loaded.
Parameters:
Name Type Description
fileSize number The file size of the PDF document.
Source: