{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# PDFTK Stamp / Background" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Background: \n", "\n", "`pdftk in.pdf background back.pdf output out.pdf`" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "!pdftk pdf/hope.pdf background pdf/HOPE_blue.pdf output pdf/quilt-background.pdf " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Stamp:\n", "\n", "`pdftk in.pdf stamp stamp.pdf output out.pdf`" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [], "source": [ "!pdftk pdf/map.pdf stamp pdf/A32.pdf output pdf/stamped.pdf\n", "\n", "# with many pages, stamp will be applied for each page" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "ename": "SyntaxError", "evalue": "invalid syntax (, line 1)", "output_type": "error", "traceback": [ "\u001b[0;36m File \u001b[0;32m\"\"\u001b[0;36m, line \u001b[0;32m1\u001b[0m\n\u001b[0;31m $ pdftk A3.pdf cat 1-endeast output A32.pdf\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n" ] } ], "source": [] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 4 }