mirror of
https://github.com/captn3m0/talks.git
synced 2024-09-28 22:22:56 +00:00
2.1 KiB
2.1 KiB
theme | background | class | highlighter | info |
---|---|---|---|---|
seriph | https://source.unsplash.com/collection/94734566/1920x1080 | text-center | shiki | ## Slidev Starter Template Presentation slides for developers. Learn more at [Sli.dev](https://sli.dev) |
pystitcher
PDF stitcher for humans.
Merging PDFs is easy
pdftk 1.pdf 2.pdf cat output final.pdf
Except when its not
(Managing bookmarks)
pdftk 1.pdf 2.pdf cat output final.pdf
pdftk dump_data final.pdf > bookmarks.txt
# More code here to add more bookmarks
pdftk update_info_utf8 bookmarks.txt final.pdf final2.pdf
pdfmerge
-
unmaintained 😢
pdfmerge [-o FILE] PATH[RULE[, RULE ...]]
Where RULE=
[START][..][END][ROTATE]
Also no bookmarks 😢
What if?
# Super Potato Book
# Volume 1
[Part 1](1.pdf)
# Volume 2
[Part 3](2.pdf)
Show original PDFs
Metadata!
title: Super Jelly
Author: Nemo
keywords: potato, jelly
# Super Potato Book
# Volume 1
[Part 1](1.pdf)
# Volume 2
[Part 3](2.pdf)
Existing Bookmarks?
existing_bookmarks: remove
# Super Potato Book
# Volume 1
[Part 1](1.pdf)
# Volume 2
[Part 3](2.pdf)
Existing Bookmarks?
existing_bookmarks: flatten
# Super Potato Book
# Volume 1
[Part 1](1.pdf)
# Volume 2
[Part 3](2.pdf)
Keep Bookmarks?
existing_bookmarks: keep
# Super Potato Book
# Volume 1
[Part 1](1.pdf)
# Volume 2
[Part 3](2.pdf)