我正在尝试使用脚本添加一个 32 页的 pdf,将 A5 横向转换为 A3 横向。
到目前为止,pdftex 或上下文都没有让我失望,我想知道我是否遗漏了其中可能对我有帮助的东西?
我的 pdf 文件太大,无法上传到这里。
我一直在运行的代码是:
\setuppapersize[A5,landscape][A3,landscape] %individual page A6 size, print size A3
\setuppaper[nx=4, ny=2]
\setuparranging[2*4] %makes an 8 page gathering when folded (duplex printing!)
\setuplayout
[backspace=0pt,
topspace=0pt, %here I can add -1.5pt to make images overflow on centerfold pages but it will go on all pages
width=middle,
height=middle,
location=middle,
header=0pt,
footer=0pt]
\setuppagenumbering[alternative=doublesided]
\starttext
\insertpages
[testpages_32.pdf][width=0pt]
\stoptext
取自https://wiki.contextgarden.net/Imposition但计算错误,最后一页应该在第一页之前。参见示例。
我也尝试过 PDF::Impose 但是它出现了很多错误,我对此提出了单独的问题并在那里分享了该代码。 https://github.com/jamis/impose/issues/2
答案1
最后,这里是需要遵循的视觉特征。
因此,您需要 8 张 A3 纸张(4 对正面和反面纸张),每对纸张都遵循相同的剪切和折叠模式
,但编号需要分散。
因此,对于第一张表,1 和 32 在一起(29 和 4 旋转至上方),
然后是 5 和 28,然后是 9 和 24,直到最后
13 和 20(16 和 17 旋转至上方,如图所示)
您需要将平板滑动到自己需要的双面打印位置。
例如,您可能需要一组双面打印 4 次,然后翻转正面打印 4 个平板,或者将
每张纸双面打印,然后堆叠折叠等。
以下并非实际用法,仅用于展示跨多个平面的旋转操作
我没有物理的 A3 来测试定位,但它在虚拟 PDF 打印机中按预期工作(或者稍加调整即可在 A4L 纸张上用于 32 x A6L),或者可以修改为纵向使用
模块化剪切和粘贴可轻松调整部件,包括狭缝和折叠堆叠顺序(纠正每个签名集的页面顺序很困难)我发现了一个非常简洁、更复杂的 8 页 TeX3 版本,但试图改变数学以涵盖 16 24 32 的排列将需要更多的模板,所以为什么不只是这个大的 TeX2 文件,你可以通过修剪并保存为更小的集合来修改它。
\documentclass[a3paper,landscape]{article}
\usepackage{graphicx}
\usepackage[a3paper,landscape, margin=0pt]{geometry}
\parindent=0pt
\lineskip=0pt
% this is a 32 x A5 Landscape page spread across 8 A3 Landscape flats
\newcommand{\filename}{testpages_32} %32 x A5s in sequence
\begin{document}%
\begin{minipage}{\textwidth}%
\noindent\includegraphics[page=17,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=16,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=20,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=13,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=15,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=18,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=14,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=19,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=21,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=12,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=24,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=9,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=11,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=22,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=10,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=23,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=25,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=8,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=28,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=5,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=7,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=26,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=6,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=27,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=29,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=4,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=32,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=1,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\begin{minipage}{\textwidth}
\includegraphics[page=3,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}%
\includegraphics[page=30,width=0.5\textwidth,height=0.5\textheight,angle=180]{\filename}
\includegraphics[page=2,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}%
\includegraphics[page=31,width=0.5\textwidth,height=0.5\textheight,angle=0]{\filename}
\end{minipage}
\end{document}