PDF Viewer implements the x-callback-url protocol, which allows iOS and Mac developers to expose and document the methods they make available to other apps and return useful data. This feature is available only for users that are subscribed to PDF Viewer Pro.

PDF Viewer URL Scheme actions look like this:

pdfviewer://x-callback-url/[action]?[action parameters]&[x-callback parameters]

Add to PDF Viewer

To send PDF files from Safari to PDF Viewer you can use this HTML snippet:

<a href="pdfviewer://x-callback-url/add-file?url=https://pspdfkit.com/downloads/case-study-box.pdf">Add to PDF Viewer</a>

Action: Add "Case Study" to PDF Viewer

The PDF will be automatically saved in PDF Viewer.



Open the local file from the path.


  • path - required path to a file.




Store a file (or download from url) locally as filename.

  • url - URL address to a file.
  • data - base64 representation of a file. This parameter must be URL encoded.
  • filename - file name with extension. Both data and filename are required to successfully add a file.
  • open - optional. Open newly added file.


Did this answer your question?