Printer API
Print images and PDFs from your web app via AirPrint: send files to the native iOS print dialog with a single link.
The Printer API sends a remote file (image or PDF) to the native iOS print dialog (AirPrint), so the user can print it to any configured printer or save it as a PDF.
How to Use:
<a href="printitem://?jobName=Invoice%20%23123&printItem=https://example.com/invoice.pdf"> Print invoice </a>
Query Parameters:
Name
Required
Description
printItemyes
Full URL of the file to print (PDF, JPG, PNG, WebP…).
jobNameno
Human-readable job name shown in the print dialog.
How It Works:
- The app downloads the file from
printIteminto a temporary cache. - The file is handed to the native
UIPrintInteractionController, which shows the iOS print dialog. - The user picks an AirPrint printer (or Save as PDF via the share options) and confirms.
Notes: The target file must be publicly reachable from the device (the URL must resolve). URL-encode special characters in the jobName parameter (e.g., %20 for spaces).