An open API service indexing awesome lists of open source software.

https://github.com/lucee/extension-print

Printing support for Lucee, CFPRINT, getPrinterList, getPrinterInfo
https://github.com/lucee/extension-print

lucee print

Last synced: 3 months ago
JSON representation

Printing support for Lucee, CFPRINT, getPrinterList, getPrinterInfo

Awesome Lists containing this project

README

          

# Lucee Print Extension

[![Java CI](https://github.com/lucee/extension-print/actions/workflows/main.yml/badge.svg)](https://github.com/lucee/extension-print/actions/workflows/main.yml)

Provides CFML print tags and functions for Lucee

Basic compatibility with the Adobe implementation (which is broken in ACF 2023 and ACF 2025)

Initial version just supports local printers

Requires Lucee 6.2.1.122 or newer

# Printer Support

Not all printers support printing PDF directly, when it's not available, `` will fallback to using Apache PDFBox to render the pages to PNG and print those.

There is a `renderer` attribute, which defaults to `AUTO`

The other options are

- `printer` pass the PDF file directly to the printer to render, if your printer doesn't support that according to java, an error will be thrown
- `raster` render the PDF using PDFBox and then print the resulting PNG images

# Future Plans

Libaries used

## Network printer resolution, using the bonjour protocol (ipp)

https://github.com/jmdns/jmdns
https://javadoc.io/doc/org.jmdns/jmdns/latest/index.html

getPrinterList(network:boolean)

### Network

- false, returns a list of local printers
- true, returns an array containing structs detailing the available printers, including, `name`, `url` and `properties`

## Network printing using IPP

https://github.com/gmuth/ipp-client-kotlin
https://javadoc.io/doc/de.gmuth/ipp-client/latest/index.html

Docs: https://docs.lucee.org/categories/print.html

Issues: https://luceeserver.atlassian.net/issues/?jql=labels%20%3D%20%22print%22

Releases: https://download.lucee.org/#96D2AC81-9926-4B9A-B2FC5ED770C54217