PDF Viewer API Service
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.
document - URL of the PDF document to viewkey - Your API authentication key
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
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=widthCustom zoom level (75%):
/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&zoomPercentage=75Custom download filename:
/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&downloadAs=my-report.pdfRead-only mode (no annotations):
/api/v1/viewer?document=https://example.com/doc.pdf&key=<YOUR_API_KEY>&enableAnnotations=falseSupported Features:
• Document viewing and navigation
• Search functionality
• Zoom controls
• Text selection and copying
• Annotation tools
• PDF export with annotations