Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Print a PDF from your computer to a cloud printer

A simple PHP web application that lets you send text or PDF files to a remote printer via the Expedy Cloud Print API.

How it works

  1. The user opens the web page and either types text or uploads one or more PDF files.
  2. The application generates a PDF (using FPDF + FPDI) and saves it on the server.
  3. The PDF URL is sent to the Expedy Cloud Print API, which forwards the print job to the target printer.

Prerequisites

  • 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

Quick start

  1. Clone this repository to your web server's document root:
    git clone https://github.com/ExpedyDev/pdftoprinter.git
  2. Open index.php and set your configuration:
    • Replace ENTER YOUR PRINTER UID with your printer's UID.
    • Replace the Authorization header value with your API token:secretkey.
  3. Open the application in your browser and start printing!

Installation on Raspberry Pi

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

Tutorial

Step-by-step tutorial:
Print a PDF from your computer to a cloud printer

Links

License

This project uses the following libraries:

  • FPDF – PDF generation
  • FPDI – PDF import/merge

Releases

Packages

Used by

Contributors

Languages