Skip to content

Instantly share code, notes, and snippets.

View DocumentAlchemy's full-sized avatar

Document Alchemy DocumentAlchemy

View GitHub Profile
@DocumentAlchemy
DocumentAlchemy / combine-pdf-example.sh
Created April 19, 2016 07:54
Example of a curl command to join two PDF documents using <https:/documentalchemy.com/>
curl -H "Authorization: da.key=403l1zh3dkbakyb9" \
-X POST \
-F "[email protected]" \
-F "document=@DOC_BODY.PDF" \
https://documentalchemy.com/api/v1/documents/-/rendition/combined.pdf \
-o "combined.pdf"
@DocumentAlchemy
DocumentAlchemy / add-cover.sh
Created April 20, 2016 06:30
Shell script to join PDF documents - add a "cover page" to one or more PDF documents using curl and https://documentalchemy.com/
#!/bin/bash
# Adds a cover page to one or more PDF documents.
# USAGE: add-cover.sh <COVER-PAGE> <FILES>
#
# EXAMPLE: add-cover.sh cover.pdf doc/*.pdf
# This is your DocumentAlchemy API key. It may be set via the
# environment variable named `DA_API_KEY`.
@DocumentAlchemy
DocumentAlchemy / add-cover.sh
Created April 23, 2016 14:31
Add a cover page to one or more PDF documents using curl and https://documentalchemy.com/
#!/bin/bash
# Adds a cover page to one or more PDF documents.
# USAGE: add-cover.sh <COVER-PAGE> <FILES>
#
# EXAMPLE: add-cover.sh cover.pdf doc/*.pdf
# This is your DocumentAlchemy API key. It may be set via the
# environment variable named `DA_API_KEY`.