|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Kindle Reader
|
![]()
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) |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,017
Karma: 22669822
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 | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,017
Karma: 22669822
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. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,017
Karma: 22669822
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.
|
![]() |
![]() |
![]() |
#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 | 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 |