WebViewGold Documentation · iOS
🇺🇸 English
Get WebViewGold

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
printItem
yes
Full URL of the file to print (PDF, JPG, PNG, WebP…).
jobName
no
Human-readable job name shown in the print dialog.

How It Works:

  1. The app downloads the file from printItem into a temporary cache.
  2. The file is handed to the native UIPrintInteractionController, which shows the iOS print dialog.
  3. 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).

Too busy? We set up your app for you.

Our team configures, builds & submits your WebViewGold app — done-for-you, fast turnaround, Made in Germany.

Get your app set up →

Build in your browser

No Mac, no IDE: the WebViewGold Cloud Builder configures, builds & uploads your app online.

Discover Cloud Builder →