View Single Post
Old 08-30-2020, 06:27 AM   #1
Lafisrap
Junior Member
Lafisrap began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
Exclamation ebook-convert changes width of pdf pdf-odd-even-offset and pdf-add-toc used both

Executing

Code:
echo "# This is a test" > test.md
ebook-convert test.md test.pdf --custom-size 4.724x7.48 --pdf-odd-even-offset 10
--pdf-add-toc --level1-toc //h:h1
results in a test.pdf having a width of 4.54.

Code:
ebook-convert test.md test.pdf --custom-size 4.724x7.48 --pdf-odd-even-offset 0
--pdf-add-toc --level1-toc //h:h1
or

Code:
ebook-convert test.md test.pdf --custom-size 4.724x7.48 --pdf-odd-even-offset 10
results in a with of 4.71.

Not exact though, but very much closer to the specified width.

1. First is a bug I guess.
2. Question: Why can't it be exact? (I need this to upload a book to bod.de)
Lafisrap is offline   Reply With Quote