diff --git a/latex/notepad/forksand-letterhead.pdf b/latex/notepad/forksand-letterhead.pdf new file mode 100644 index 0000000..c3dd60d Binary files /dev/null and b/latex/notepad/forksand-letterhead.pdf differ diff --git a/latex/notepad/forksand-notepad-4x.pdf b/latex/notepad/forksand-notepad-4x.pdf new file mode 100644 index 0000000..65a5424 Binary files /dev/null and b/latex/notepad/forksand-notepad-4x.pdf differ diff --git a/latex/notepad/forksand-notepad-4x.tex b/latex/notepad/forksand-notepad-4x.tex new file mode 100644 index 0000000..c3ab231 --- /dev/null +++ b/latex/notepad/forksand-notepad-4x.tex @@ -0,0 +1,42 @@ + +% forksand-letterhead-notepad.tex +% Create thumbnail images of PDF pages +% +% Fork Sand Letterhead for Notepads +% +% Copyright (C) 2018, Fork Sand, Inc. +% +% Document template: +% Copyright (C) 2018, Fork Sand, Inc. +% Copyright (C) 2017, Jeff Moe +% Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017 Aleph Objects, Inc. +% Copyright (C) 2009, 2010 Jeff Moe +% +% This document is licensed under the Creative Commons Attribution 4.0 +% International Public License (CC BY-SA 4.0) by Fork Sand, Inc. +% + +\documentclass[twoside]{minimal} +% A4? Size Paper +%\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry} +% Letter Size Paper +\usepackage[paperwidth=21.59cm, paperheight=27.94cm,dvips=false,pdftex=false,vtex=false]{geometry} +\usepackage[final]{pdfpages} +\usepackage{pdflscape} +\usepackage{thumbpdf} +\begin{document} +% Works, but needs to be moved to top, not centered +%\includepdf[nup=1x2,pages={1,1},landscape]{forksand-letterhead.pdf} +% Same as above, ok, with defaults +%\includepdf[nup=1x2,pages={1,1},landscape=true,noautoscale=false,fitpaper=false]{forksand-letterhead.pdf} +% Good, new way to do pages. +%\includepdf[nup=1x2,pages={-},landscape=true,noautoscale=false,fitpaper=false,doublepages=true]{forksand-letterhead.pdf} +\includepdf[nup=2x2,pages={1,1,1,1},landscape=false,noautoscale=false,fitpaper=true,offset=0mm 0mm]{forksand-letterhead.pdf} + + +% foo +%\includepdf[nup=1x2,pages={1,1},landscape=false,noautoscale=false,fitpaper=true]{forksand-letterhead.pdf} +% ok, but small centered, Portrait, should be landscape. +%\includepdf[nup=2x1,pages={1,1},landscape=false,noautoscale=false,fitpaper=true]{forksand-letterhead.pdf} +\end{document} + diff --git a/latex/notepad/forksand-notepad.pdf b/latex/notepad/forksand-notepad.pdf new file mode 100644 index 0000000..cf4c814 Binary files /dev/null and b/latex/notepad/forksand-notepad.pdf differ diff --git a/latex/notepad/forksand-notepad.tex b/latex/notepad/forksand-notepad.tex new file mode 100644 index 0000000..2498168 --- /dev/null +++ b/latex/notepad/forksand-notepad.tex @@ -0,0 +1,42 @@ + +% forksand-letterhead-notepad.tex +% Create thumbnail images of PDF pages +% +% Fork Sand Letterhead for Notepads +% +% Copyright (C) 2018, Fork Sand, Inc. +% +% Document template: +% Copyright (C) 2018, Fork Sand, Inc. +% Copyright (C) 2017, Jeff Moe +% Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2017 Aleph Objects, Inc. +% Copyright (C) 2009, 2010 Jeff Moe +% +% This document is licensed under the Creative Commons Attribution 4.0 +% International Public License (CC BY-SA 4.0) by Fork Sand, Inc. +% + +\documentclass[twoside]{minimal} +% A4? Size Paper +%\usepackage[paperwidth=22.86cm, paperheight=30.48cm,dvips=false,pdftex=false,vtex=false]{geometry} +% Letter Size Paper +\usepackage[paperwidth=21.59cm, paperheight=27.94cm,dvips=false,pdftex=false,vtex=false]{geometry} +\usepackage[final]{pdfpages} +\usepackage{pdflscape} +\usepackage{thumbpdf} +\begin{document} +% Works, but needs to be moved to top, not centered +%\includepdf[nup=1x2,pages={1,1},landscape]{forksand-letterhead.pdf} +% Same as above, ok, with defaults +%\includepdf[nup=1x2,pages={1,1},landscape=true,noautoscale=false,fitpaper=false]{forksand-letterhead.pdf} +% Good, new way to do pages. +%\includepdf[nup=1x2,pages={-},landscape=true,noautoscale=false,fitpaper=false,doublepages=true]{forksand-letterhead.pdf} +\includepdf[nup=1x2,pages={-},landscape=true,noautoscale=false,fitpaper=false,doublepages=true,offset=-22mm 0mm]{forksand-letterhead.pdf} + + +% foo +%\includepdf[nup=1x2,pages={1,1},landscape=false,noautoscale=false,fitpaper=true]{forksand-letterhead.pdf} +% ok, but small centered, Portrait, should be landscape. +%\includepdf[nup=2x1,pages={1,1},landscape=false,noautoscale=false,fitpaper=true]{forksand-letterhead.pdf} +\end{document} + diff --git a/latex/notepad/mk-2-up.sh b/latex/notepad/mk-2-up.sh new file mode 100755 index 0000000..4ff6997 --- /dev/null +++ b/latex/notepad/mk-2-up.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +set -x + +# Take four pages of PDF, and put on a single page +xelatex \ + forksand-notepad.tex + + + +exit 0 +# Make single page Letterhead four pages +pdfjoin \ + -o forksand-letterhead-2x.pdf \ + forksand-letterhead.pdf \ + forksand-letterhead.pdf + + +exit 0 +pdfjam \ + --paper letter \ + --suffix notepad \ + --no-landscape \ + --no-twoside \ + --nup 2x1 \ + --scale 0.5 \ + forksand-letterhead.pdf + +exit 0 + + --outfile foo.pdf \ + --no-landscape \ + --landscape \ diff --git a/latex/notepad/mk-4-up.sh b/latex/notepad/mk-4-up.sh new file mode 100755 index 0000000..1855233 --- /dev/null +++ b/latex/notepad/mk-4-up.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -x + +# Take four pages of PDF, and put on a single page +xelatex \ + forksand-notepad-4x.tex + + + +exit 0 +pdfjam \ + --paper letter \ + --suffix notepad \ + --no-landscape \ + --no-twoside \ + --nup 2x1 \ + --scale 0.5 \ + forksand-letterhead.pdf + +exit 0 + + --outfile foo.pdf \ + --no-landscape \ + --landscape \