What is the maximum file size that WebViewer can load?

Question: What is the maximum file size that WebViewer can load?

Answer: It depends.

For PDF files, the limit is 2GB.
Note that we are working to increase this limit, but we have no such timeline for it yet.

For XOD files or loading files with WebViewer Server, there is no such limit.

@achen Can we add a limit for the signature file upload? If yes then how?

Hey @danish.hayat ,

Here is a possible workaround to your question:

  1. get the SignatureCreateTool via this API: PDFTron WebViewer Class: DocumentViewer
  2. alter the ACCEPTED_FILE_SIZE on the SignatureCreateTool that you retrieved from step 1.
    signatureCreateTool. ACCEPTED_FILE_SIZE = 30
  3. then you will need to listen to this event: PDFTron WebViewer Class: SignatureCreateTool
    signatureCreateTool..addEventListener('fileRejected', ...)