VPDF

PDF Viewer API Service

API Endpoint

GET /api/v1/viewer?document=<PDF_URL>&key=<YOUR_API_KEY>&[fitTo=height|width]&[zoomPercentage=50-300]&[downloadAs=filename.pdf]&[enableAnnotations=true|false]

View PDF documents with annotation, search, and zoom capabilities.

Parameters

Required:

document - URL of the PDF document to view
key - Your API authentication key

Optional:

fitTo - Auto-adjust zoom to fit page
height - Fit full page height to viewport
width - Fit full page width to viewport

zoomPercentage - Set manual zoom level (50-300)
50 - 50% zoom (minimum)
100 - 100% zoom (actual size)
200 - 200% zoom
300 - 300% zoom (maximum)

downloadAs - Custom filename for PDF downloads
my-document.pdf - Download as "my-document.pdf"
report-2023.pdf - Download as "report-2023.pdf"
• Default: document.pdf if not specified

enableAnnotations - Show/hide annotation tools
true - Show annotation tools (default)
false - Hide annotation tools

Example Usage

Basic usage:

/api/v1/viewer?document=https://www.irs.gov/pub/irs-pdf/fw4.pdf&key=<YOUR_API_KEY>

Fit to page width:

/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&fitTo=width

Custom zoom level (75%):

/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&zoomPercentage=75

Custom download filename:

/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&downloadAs=my-report.pdf

Read-only mode (no annotations):

/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&enableAnnotations=false

Supported Features:
• Document viewing and navigation
• Search functionality
• Zoom controls
• Text selection and copying
• Annotation tools
• PDF export with annotations

View Demo →