Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
attah authored Oct 29, 2024
1 parent 133a2a2 commit 39c5d4a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Takes a PDF document and makes it suitable for printing, by:
- rotate and scale to fit as needed to a desired page size
- convert to PDF 1.7¹, Postscript level 2 or PWG/URF raster

1. PDF 1.5 if using Cairo < 1.18.
1. PDF 1.5 if using Cairo < 1.17.6.

## baselinify
Takes a JPEG and losslessly repacks it to the baseline ecoding profile, keeping only JFIF and Exif headers.
Expand All @@ -41,6 +41,8 @@ Install dependencies:

`sudo apt install libpoppler-dev libpoppler-glib-dev libcairo2-dev libglib2.0-dev libjpeg-dev libcurl4-openssl-dev zlib1g-dev`

These are the aggregate dependencies; **ippclient** needs all of them and e.g. **ppm2pwg** needs none of them.

Build:

`make -j$(nproc)`
Expand All @@ -52,15 +54,17 @@ Build:
A bit of friendly comparison helps make sure the featureset is well-rounded and performance is on par.

### Basics
| | PDF renderer | Language | License |
| ------------------------------------------------------- | --------------- | ----------- | ------------------ |
| pdf2printable | Poppler | C++ | GPL3 |
| [ipptransform](https://github.com/OpenPrinting/libcups) | XPDF or Poppler | C | Apache 2.0 |
| [mutool](https://mupdf.com/) | MuPDF | C | AGPL or commercial |
| [jrender](https://github.com/HPInc/jipp) | Apache PDFBox | Java/Kotlin | MIT |
| | PDF renderer | Language | License |
| ------------------------------------------------------- | --------------------- | ----------- | ------------------ |
| pdf2printable | Poppler&sup1; | C++ | GPL3 |
| [ipptransform](https://github.com/OpenPrinting/libcups) | XPDF or Poppler&sup1; | C | Apache 2.0 |
| [mutool](https://mupdf.com/) | MuPDF | C | AGPL or commercial |
| [jrender](https://github.com/HPInc/jipp) | Apache PDFBox | Java/Kotlin | MIT |

Not in the running: cups-filters (can't get them to run outside CUPS), Android/Apple built-ins and Google Cloud Print (not available standalone).

1. pdf2printable uses the Cairo backend in Poppler and ipptransform uses the Spalsh backend inhertited from XPDF. Cairo generally produces higher quality rasterization, but is slightly more prone to misrendering with unusual PDFs.

### Format support

| | PDF | Postscript | PWG | URF | PCLm&sup1; | PCL&sup2; |
Expand Down

0 comments on commit 39c5d4a

Please sign in to comment.