Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Zooming

The PDF zoom feature allows you to adjust the page size while reading PDF documents for an enhanced reading experience. Specifically:

Manual Zoom: Use gestures to zoom in and out, adjusting the size of the PDF pages for a clearer view of the document content.

PDF zoom functionality caters to the diverse needs of users in various situations. Users can choose the most suitable zoom level based on their preferences while reading PDF documents, enhancing the clarity and readability of the content.

This example shows how to set custom zooming:

swift
// Set the zoom ratio to five times.
pdfview.setScaleFactor(5.0, animated: true)
objective-c
// Set the zoom ratio to five times.
[pdfview setScaleFactor:5.0];