Skip to content

Commit

Permalink
do A5 version for print
Browse files Browse the repository at this point in the history
  • Loading branch information
erkannt committed Oct 30, 2021
1 parent 581cb55 commit b3bd9cd
Show file tree
Hide file tree
Showing 11 changed files with 651 additions and 202 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,21 @@ Add extra pages to avoid the title page being glued to the cover.
pdftk A=diss-haarhoff.pdf B=blank.pdf cat B1 B1 A B1 B1 B1-end output diss-haarhoff.paddedWithBlanks.pdf
````

Add a 3mm margin to all pages, center the existing content but then shift it over to the outer edges by 10mm:
Add a 3mm margin to all pages, center the existing content but then shift it over to the outer edges:

```
gs -q -dNOPAUSE -dBATCH \
-o diss-haarhoff.increaseMediaSize.pdf \
-sDEVICE=pdfwrite \
-dPDFSETTINGS="/printer" \
-dEmbedAllFonts=true \
-sProcessColorModel=DeviceCMYK \
-sProcessColorModel=DeviceGray \
-sColorConversionStrategy=Gray \
-dOverrideICC \
-dFIXEDMEDIA \
-dDEVICEWIDTHPOINTS=612 \
-dDEVICEHEIGHTPOINTS=859 \
-c "<< /CurrPageNum 1 def /Install { /CurrPageNum CurrPageNum 1 add def CurrPageNum 2 mod 1 eq {-28 9 translate} {37 9 translate} ifelse } bind >> setpagedevice" \
-dDEVICEWIDTHPOINTS=436.535 \
-dDEVICEHEIGHTPOINTS=612.283 \
-c "<< /CurrPageNum 1 def /Install { /CurrPageNum CurrPageNum 1 add def CurrPageNum 2 mod 1 eq {0.7 0.7 scale -18 9 translate} {0.7 0.7 scale 27 9 translate} ifelse } bind >> setpagedevice" \
-f diss-haarhoff.paddedWithBlanks.pdf
```

Expand All @@ -63,9 +65,9 @@ This requires [pdfboxer](https://github.com/nicknux/pdfboxer).

```
java -jar ~/tools/pdfboxer/bin/pdfboxer-0.0.1.jar \
-trimBox 9,9,595,842 \
-cropBox 9,9,595,842 \
-bleedBox 0,0,612,859 \
-trimBox 9,9,419.528,595.276 \
-cropBox 9,9,419.528,595.276 \
-bleedBox 0,0,436.535,612.283 \
-sourceFile diss-haarhoff.increaseMediaSize.pdf \
-destFile diss-haarhoff.withBleed.pdf
```
Binary file added for_the_printers/Inhaltsseiten.pdf
Binary file not shown.
Binary file added for_the_printers/InhaltsseitenA5.pdf
Binary file not shown.
Binary file added for_the_printers/Umschlag-Aussenseiten.pdf
Binary file not shown.
Binary file added for_the_printers/UmschlagAussenseitenA5.pdf
Binary file not shown.
Binary file added print_cover/cover.pdf
Binary file not shown.
398 changes: 204 additions & 194 deletions print_cover/cover.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified print_cover/cover.withbleed.pdf
Binary file not shown.
Binary file added print_cover/coverA5.pdf
Binary file not shown.
437 changes: 437 additions & 0 deletions print_cover/coverA5.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added print_cover/coverA5.withbleed.pdf
Binary file not shown.

0 comments on commit b3bd9cd

Please sign in to comment.