Created
May 24, 2015 23:32
-
-
Save stefanschmidt/a0f1dfc04354b1213ed4 to your computer and use it in GitHub Desktop.
Convert from EPUB to PDF format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# depends on Calibre (http://calibre-ebook.com) | |
# the CSS snippet prevents images from filling the page | |
# adapt margins, page size and font size as needed | |
ebook-convert doc.epub doc.pdf \ | |
--smarten-punctuation \ | |
--pretty-print \ | |
--preserve-cover-aspect-ratio \ | |
--insert-blank-line \ | |
--margin-top 60 \ | |
--margin-left 60 \ | |
--margin-right 60 \ | |
--embed-all-fonts \ | |
--pdf-default-font-size 10 \ | |
--pdf-serif-family "Adobe Garamond Pro" \ | |
--custom-size 6.5x9.5 \ | |
--extra-css 'img {max-width:25%; max-height:25%; display: block; margin-left: auto; margin-right: auto;}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment