|
|
Thread Tools | Search this Thread |
08-30-2020, 06:27 AM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
|
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 Code:
ebook-convert test.md test.pdf --custom-size 4.724x7.48 --pdf-odd-even-offset 0 --pdf-add-toc --level1-toc //h:h1 Code:
ebook-convert test.md test.pdf --custom-size 4.724x7.48 --pdf-odd-even-offset 10 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) |
08-30-2020, 11:27 AM | #2 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
1. odd-even offsets are implemented by adding to margins, so subtract that size from the custom size you specify. calibre could of course do so itself, and probably should, open a bug report for it.
2. No clue, calibre simply passes page size to chromium, the rest is up to it |
Advert | |
|
08-30-2020, 11:43 AM | #3 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually regarding (2), this will make it a bit better https://github.com/kovidgoyal/calibr...c26188df85ed33
however you will never get exact sizes unles syou specify the sizes in pts, as that is the unit used by PDF. |
08-30-2020, 11:57 PM | #4 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
And I looked at 1 as well. I was misremembering. It does not change page sizes, it changes the crop box on each page.
|
09-04-2020, 06:43 AM | #5 | |
Junior Member
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
|
Quote:
I will change this in my app ... |
|
Advert | |
|
Tags |
markdown pdf md width |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert Image PDF to PDF with text or other ebook format. | Memes | 7 | 05-01-2023 04:52 PM | |
How can I format the TOC in a PDF created by ebook-convert cli command? | Lafisrap | Conversion | 1 | 07-28-2020 12:04 PM |
Just add TOC to PDF, but no other changes? | ghostwheel | Conversion | 1 | 04-22-2018 09:58 PM |
Convert TOC to PDF Bookmarks | Dillinquent | Conversion | 1 | 08-23-2011 09:19 AM |