A simple PHP web application that lets you send text or PDF files to a remote printer via the Expedy Cloud Print API.
- The user opens the web page and either types text or uploads one or more PDF files.
- The application generates a PDF (using FPDF + FPDI) and saves it on the server.
- The PDF URL is sent to the Expedy Cloud Print API, which forwards the print job to the target printer.
- A web server with PHP and the cURL extension enabled
- An Expedy account with a registered cloud printer
- Your Printer UID and API credentials (token:secretkey) from the Expedy dashboard
- Clone this repository to your web server's document root:
git clone https://github.com/ExpedyDev/pdftoprinter.git
- Open
index.phpand set your configuration:- Replace
ENTER YOUR PRINTER UIDwith your printer's UID. - Replace the
Authorizationheader value with your APItoken:secretkey.
- Replace
- Open the application in your browser and start printing!
You can run this application on a Raspberry Pi to create a compact cloud printing station.
Follow the full installation guide here:
Installation on Raspberry Pi
Step-by-step tutorial:
Print a PDF from your computer to a cloud printer
This project uses the following libraries: