All Projects → vibranthq → press-ready

vibranthq / press-ready

Licence: other
🚀 Make your PDF press-ready PDF/X-1a.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Mustache
554 projects
Makefile
30231 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to press-ready

pyxpdf
Fast and memory-efficient Python PDF Parser based on xpdf sources
Stars: ✭ 26 (-53.57%)
Mutual labels:  pdf-converter, xpdf
pdftron-android-samples
PDFTron Android Samples
Stars: ✭ 30 (-46.43%)
Mutual labels:  pdf-converter
bootstrap-print
To manage print media for Twitter Bootstrap v3.
Stars: ✭ 60 (+7.14%)
Mutual labels:  printing
WeReadScan
扫描“微信读书”已购图书并下载本地PDF的爬虫
Stars: ✭ 273 (+387.5%)
Mutual labels:  pdf-converter
Print-Reset-Tool
No description or website provided.
Stars: ✭ 18 (-67.86%)
Mutual labels:  printing
escpos-tools
Utilities to read ESC/POS print data
Stars: ✭ 145 (+158.93%)
Mutual labels:  printing
node-poppler
Asynchronous node.js wrapper for the Poppler PDF rendering library
Stars: ✭ 97 (+73.21%)
Mutual labels:  pdf-converter
barcode
No description or website provided.
Stars: ✭ 27 (-51.79%)
Mutual labels:  printing
PdfToImage
Convert PDF To jpg in c# (using PdfiumViewer)
Stars: ✭ 23 (-58.93%)
Mutual labels:  pdf-converter
chrome-raw-print
Chrome app to enable raw printing from a browser
Stars: ✭ 57 (+1.79%)
Mutual labels:  printing
paper-store
Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general.
Stars: ✭ 28 (-50%)
Mutual labels:  printing
jipp
A Java implementation of IPP
Stars: ✭ 97 (+73.21%)
Mutual labels:  printing
Office2PDF
Office 文件(Word、Excel、PPT)批量转为 PDF 文件,文档完善,自用满意
Stars: ✭ 114 (+103.57%)
Mutual labels:  pdf-converter
winprint
winprint 2.0 - Advanced source code and text file printing. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises. Works great with Powershell.
Stars: ✭ 52 (-7.14%)
Mutual labels:  printing
Android-XML-to-PDF-Generator
This library is for convert XML to PDF very easily using Step Builders Pattern
Stars: ✭ 140 (+150%)
Mutual labels:  pdf-converter
floaxie
Floating point printing and parsing library based on Grisu2 and Krosh algorithms
Stars: ✭ 28 (-50%)
Mutual labels:  printing
iOS-AirPrint-for-Mac
enable iOS Airprint Sharing on Mac OS
Stars: ✭ 24 (-57.14%)
Mutual labels:  printing
pdf2jpg
Utility to convert PDF into JPG files
Stars: ✭ 39 (-30.36%)
Mutual labels:  pdf-converter
ngx-print
🖨️ A plug n' play Angular (2++) library to print your stuff
Stars: ✭ 124 (+121.43%)
Mutual labels:  printing
chromic pdf
Convenient HTML to PDF/A rendering library for Elixir based on Chrome & Ghostscript
Stars: ✭ 196 (+250%)
Mutual labels:  pdf-converter

🚀 press-ready
screencast

Make your PDF compliant with press-ready PDF/X-1a.

npm: version npm: total downloads Build Status Codacy Badge Total alerts

🇯🇵 日本語

Table of Contents

Install

via Docker 🐳 (Recommended)

Pull vibranthq/press-ready image from Docker Hub.

docker pull vibranthq/press-ready

then assign an alias for press-ready:

alias press-ready="docker run --rm -it -v \$PWD:/workdir vibranthq/press-ready"

via npm 📦

npm install -g press-ready # npm
yarn global add press-ready # yarn

and install system dependencies to run press-ready.

macOS

brew install poppler ghostscript

Ubuntu

apt-get install poppler-utils ghostscript

Windows

Download and install the Ghostscript for Windows at https://www.ghostscript.com/download/gsdnld.html. Then, add the installed Ghostscript's bin directory (e.g., "C:\Program Files\gs\gs9.52\bin") to the PATH environment variable.

Download and install the Xpdf command line tools for Windows at http://www.xpdfreader.com/download.html. Then, add the installed Xpdf's bin directory (e.g., "C:\xpdf-tools-win-4.02\bin64") to the PATH environment variable.

Usage

Run press-ready with -i, --input. If -o, --output is missing, output.pdf going to be used for default output path.

press-ready build -i <input.pdf> -o <output.pdf>

Run with --help for the help.

❯ press-ready --help
press-ready <command>

Commands:
  press-ready build         build PDF
  press-ready lint <input>  lint PDF

Options:
  --version  Show version number                                       [boolean]
  --help     Show help                                                 [boolean]

Options

Color Mode

Press-ready will use CMYK by default. Give --gray-scale option to let them use Grayscale instead.

pres-ready build \
  --input ./input.pdf \
  --output ./output.pdf \
  --gray-scale

Boundary Boxes

Option --boundary-boxes will build TrimBox, CropBox and BleedBox on a generated PDF.

press-ready build \
  --input ./input.pdf \
  --output ./output.pdf \
  --boundary-boxes

Outlined Fonts

You might not want to use this option since press-ready automatically guess whether embedded fonts should be outlined. However, you can still control this behavior by passing --enforce-outline or --no-enforce-outline.

press-ready bulid \
  --input ./input.pdf \
  --output ./output.pdf \
  --enforce-outline

Color Profile

Currently, there is only support for Japan 2001 Coated. If you have any suggestions, please consider submitting an issue.

Tips

Lint PDF

press-ready lint ./input.pdf

press-ready lint command produces lint result on specified PDF.

==> Linting metadata for './cli/test/fixture/review.pdf'
==> Title Re:VIEWテンプレート
==> Page No. 8
==> PDF version 1.5
==> TrimBox 48.19,66.61,467.72,661.89
==> BleedBox 39.68,58.11,476.22,670.39
==> Listing fonts
name                                      type         embedded  subset
ORFHCM+NimbusSanL-Regu                    Type 1C      yes       yes
JCEWND+NimbusSanL-Bold                    Type 1C      yes       yes
ASNLWJ+NotoSansCJKjp-Bold-Identity-H      CID Type 0C  yes       yes
HPDDST+LMRoman9-Regular                   Type 1C      yes       yes
RJMBNU+NotoSerifCJKjp-Regular-Identity-H  CID Type 0C  yes       yes
==> Every font is properly embedded or no fonts embedded

Pull resource from AWS S3

! This feature is not yet available in press-ready v2. If you need this feature, use press-ready v1 (vibranthq/pdfx) image instead.

Just run with S3 URL: docker run -t vibranthq/press-ready <input s3url> <output s3url>.

For fetching and uploading AWS S3 resources, you need to set env var AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

docker run --rm -it \
  -e AWS_ACCESS_KEY_ID=<aws_key_id> \
  -e AWS_SECRET_ACCESS_KEY=<aws_secret> \
  vibranthq/pdfx s3://bucket/input.pdf s3://bucket/output.pdf

Advanced Usage

Heroku

To run press-ready on Heroku, make sure you add heroku-buildpack-xpdf.

Contribution

PRs are welcome. Make sure to do make test before filing pull requests.

Development Build

make build
make test

Blogs

Contributors

Thanks goes to these wonderful people (emoji key):


Yasuaki Uechi

💻 📖

Kenshi Muto

💻

Shinyu Murakami

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].