B5-ös papírméret nyomtatása A4-re

Fórumok

Sziasztok.

Adott egy PDF,B5-ös lapmérettel. Ezt A4-es papírra nyomtatnám kétoldalasan. Így néz ki egy másik pdf forrása, mellyel ezt megteszem:


\documentclass{minimal}
\usepackage{pdfpages,tikz}
%\setlength{\paperwidth}{8.26in+30mm}
%\setlength{\paperheight}{11.69in+30mm}
\setlength{\paperwidth}{209.804mm+30mm}
\setlength{\paperheight}{296.926mm+30mm}
\begin{document}
\AddToShipoutPictureFG{\begin{tikzpicture}[overlay]
\draw ([yshift= 40mm] current page.south west) -- +(10mm,0);
\draw ([xshift= 30mm] current page.south west) -- +(0,10mm);
\draw ([yshift= 40mm] current page.south east) -- +(-10mm,0);
\draw ([xshift=-30mm] current page.south east) -- +(0,10mm);
%
\draw ([yshift=-35mm] current page.north west) -- +(10mm,0);
\draw ([xshift= 30mm] current page.north west) -- +(0,-10mm);
\draw ([yshift=-35mm] current page.north east) -- +(-10mm,0);
\draw ([xshift=-30mm] current page.north east) -- +(0,-10mm);
\node at ([yshift=-5mm] current page.north) {--- cutting lines for B5 ---};
\end{tikzpicture}}
\includepdf[noautoscale,pages=1-]{./nyomtatando.pdf}
\end{document}

A tikz gyönyörűen kialakítja az oldalakat, már tudok draftokat nyomtatni. A nyomtató a lapátforgatáskor 2 mm-t eltolja függőlegesen a szövegtükröt -- hát,nem nyomdagépek ezek. A problémám az, hogy az új, vágóélekkel ellátott PDF-ből nem tudok részleteket nyomtatni linux alatt, gyakorlatilag semmivel. Próbáltam egy nyomtatószalonban dózeren használt acrobattal, ott sem megy a dolog, de ott még parancssorban sem.

Nem értem, mi lehet ennek az oka. Valamit csinál a tikz, ami miatt kavarodás van

Hozzászólások

Nem egészen értem, hogy a kész pdf-et miért kell újra a LaTeX-be tölteni. Linux alatt nézd meg pl. a pdfjam-et és a pdftk-t a pdf-ek manipulálásához.

----------
Were antimatter present, its detection would be quite simple and straightforward. The most rudimentary detector suffices: simply place it down and wait. If the detector disappears, antimatter has been discovered - get out fast!

Tómács Gábor LaTeX-könyvében olvastam a nyomdakész anyagok létrehozásánál ezt. Pdftk ilyet nem rajzolgat, és a B5-ös lapméretet sem igazítja az A4-esközepére

10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.

De mondjuk a pdfjam-mel hozzá tudod adni a szükséges margókat.

Szerk.: Bocs, pdfcrop... De valószínűleg a pdfjam-mel is megy.

----------
Were antimatter present, its detection would be quite simple and straightforward. The most rudimentary detector suffices: simply place it down and wait. If the detector disappears, antimatter has been discovered - get out fast!

$ pdfcrop --margins "left top right bottom" in.pdf out.pdf

Ha az érték negatív, akkor vág, ha pozitív, akkor hozzáad.

Csináltam egy vágóélekkel ellátott B5 oldalt ezzel a kóddal (https://tex.stackexchange.com/questions/181078/crop-and-bleed-marks):

\documentclass[b5paper]{article}

\usepackage[
  % set width and height to b5 width and height + 6mm
  width=18.2truecm, height=25.6truecm,
  % use any combination of these options to add different cut markings
  cam, axes, frame, cross,
  % set the type of TeX renderer you use
  pdftex,
  % center the contents
  center
]{crop}

\begin{document}

\title{Bleeding edge test}

\maketitle
A 3 mm bleed on an b5 paper.

\end{document}
$ pdflatex B5-with-3mm-bleeding-edge-and-crop-marks.tex

Az ISO B5 mérete 176 mm x 250 mm, így ez 182 mm x 256 mm méretű lett, pontmérettel 515.905 x 725.669 pts. Szépen látszanak rajta a vágóélek. Ezután:

$ pdfcrop --margins "39.5 58 39.5 58" B5-with-3mm-bleeding-edge-and-crop-marks.pdf B5-with-3mm-bleeding-edge-and-crop-marks-on-A4.pdf

Itt a számokkal kicsit kellett játszani (a hülye egységek miatt), de pár próbálkozás után végül is kijött a szükséges 595 x 842 pts (A4). A végeredmény tehát A4-es, és rajta maradtak a vágóélek is. A méreteket (közben) a "pdfinfo" paranccsal lehet gyorsan ellenőrizni, debian alatt a "poppler-utils" csomag része.

----------
Were antimatter present, its detection would be quite simple and straightforward. The most rudimentary detector suffices: simply place it down and wait. If the detector disappears, antimatter has been discovered - get out fast!

Valamire rájöttem. Evince és Foxitreader produkálja a részletnyomtatás hibáját,

Atril vidáman megcsinálja, nyomtat oldaltartományokat is fájlba. Ennek okát nem értem, de mivel korrektül dolgozik, annyira nem érdekes.

10-féle lény van:
-- aki ismeri a bináris számrendszert,
-- és amelyik nem.