Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 492 Bytes

tips.md

File metadata and controls

22 lines (15 loc) · 492 Bytes

Tips / Tricks

Simplify your workflow with aliases:

# Set an alias in `~/.bashrc`
alias htmltopdf="docker run --rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf "

# Reload
source ~/.bashrc

# Convert HTML to PDF
htmltopdf http://blog.arachnys.com/

Suppress errors (e.g. extension "RANDR" missing):

# Redirect errors to /dev/null
docker run --rm -v $(pwd):/converted/ arachnysdocker/athenapdf athenapdf 2> /dev/null http://blog.arachnys.com/