diff --git a/pdf-toolkit/pdf/quilt.pdf b/pdf-toolkit/pdf/quilt.pdf new file mode 100644 index 0000000..d26b7e0 Binary files /dev/null and b/pdf-toolkit/pdf/quilt.pdf differ diff --git a/pdf-toolkit/pdf/shapes.pdf b/pdf-toolkit/pdf/shapes.pdf new file mode 100644 index 0000000..79f7ec7 --- /dev/null +++ b/pdf-toolkit/pdf/shapes.pdf @@ -0,0 +1,68 @@ +%PDF-1.4 +%“Œ‹ž ReportLab Generated PDF document http://www.reportlab.com +1 0 obj +<< +/F1 2 0 R +>> +endobj +2 0 obj +<< +/BaseFont /Courier /Encoding /WinAnsiEncoding /Name /F1 /Subtype /Type1 /Type /Font +>> +endobj +3 0 obj +<< +/Contents 7 0 R /MediaBox [ 0 0 2383.937 3370.394 ] /Parent 6 0 R /Resources << +/Font 1 0 R /ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] +>> /Rotate 0 /Trans << + +>> + /Type /Page +>> +endobj +4 0 obj +<< +/PageMode /UseNone /Pages 6 0 R /Type /Catalog +>> +endobj +5 0 obj +<< +/Author (anonymous) /CreationDate (D:20201102093728-01'00') /Creator (ReportLab PDF Library - www.reportlab.com) /Keywords () /ModDate (D:20201102093728-01'00') /Producer (ReportLab PDF Library - www.reportlab.com) + /Subject (unspecified) /Title (untitled) /Trapped /False +>> +endobj +6 0 obj +<< +/Count 1 /Kids [ 3 0 R ] /Type /Pages +>> +endobj +7 0 obj +<< +/Filter [ /ASCII85Decode /FlateDecode ] /Length 571 +>> +stream +Gaqc44)S:X%.&*DecG]cO!KU"J>>fJ2gDQ43JHp/K_eQX0X0-tOi&&n,XDBV,QA?Q]YlS\?N@h^nFI.k0g%XMns/2((OeT3LHP8,1]9sG=fu3CaJco+_2Q64p)"N^j1rSo;_ufeG9SrKC!RZ-?A&0oZ6Q-*f*#.';&h-_aR`@!'?FstP*6LCKB:(uSN_M4gIhoYmf0D`[cq$IpVcDEfo66t7c#C0e>i*_>3De]n:3T3pZ=X'`;K=7(Y(kcOl#1p!HT9X!^ZCCgE;X+k+FeiO:r&1_=M,KpdVb#P1=gC/@[7"M-CH@6oZf"Ub(2XAW?f!"8iH:QfT5KFq=@LpYgRl/\4/$.=!4>H+O*4TDCMbLYrf63BZ&+Xqh[ETGH$rNEg'.aa[ICpm\le:-%+^NhcqJ>4MTd2B[D6U\J$+KM7a+CqGL6/rN52LGmhs]LFOT#?>3rC6~>endstream +endobj +xref +0 8 +0000000000 65535 f +0000000073 00000 n +0000000104 00000 n +0000000209 00000 n +0000000412 00000 n +0000000480 00000 n +0000000776 00000 n +0000000835 00000 n +trailer +<< +/ID +[<5d2eca0dd0dcb5536eb06508f90fc257><5d2eca0dd0dcb5536eb06508f90fc257>] +% ReportLab generated PDF document -- digest (http://www.reportlab.com) + +/Info 5 0 R +/Root 4 0 R +/Size 8 +>> +startxref +1496 +%%EOF diff --git a/pdf-toolkit/pdftk-stamp-background.ipynb b/pdf-toolkit/pdftk-stamp-background.ipynb new file mode 100644 index 0000000..23d8ff9 --- /dev/null +++ b/pdf-toolkit/pdftk-stamp-background.ipynb @@ -0,0 +1,75 @@ +{ + "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": 7, + "metadata": {}, + "outputs": [], + "source": [ + "!pdftk pdf/quilt.pdf background pdf/shapes.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": 8, + "metadata": {}, + "outputs": [], + "source": [ + "!pdftk pdf/quilt.pdf stamp pdf/shapes.pdf output pdf/quilt-stamped.pdf " + ] + }, + { + "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 +}