Hello,
i am pulling my hair out trying to get this book to convert. It should never have been created as an EPUB in the first place, as every page has a background image that covers 100% of the page, and all the text is designed to precisely overlay those graphics. As a result, it renders horrifically on my Kindle (jailbroken with KOReader). Rant aside, please help!
I have attached an epub that renders correctly in Calibre 8.7.0 that contains only the table of contents page. I have edited this using the built-in epub editor, and running "Check book" comes back error free. Reading this epub in Calibre produces the following page:
However, the PDF output is atrocious (But it does seem to match the rendering inside of KOReader):
I am attempting the conversion from the command line using the following command:
Code:
ebook-convert 'Minecraft_ Guide to Combat - Mojang Ab.epub' .pdf -u devicepixel --custom-size 838x1188 --disable-font-rescaling --embed-all-fonts -vv -d ./Debug --pdf-page-margin-right=0 --pdf-page-margin-left=0 --pdf-page-margin-bottom=0 --pdf-page-margin-top=0 --pdf-no-cover --uncompressed-pdf
The desired output would be a PDF that is an exact representation of that page, with no border around the outside. The page size was chosen based on the following portion of the CSS:
Code:
#spread_6-div-1 {
-webkit-transform: translate(0, 0) rotate(0deg) skew(0deg) scale(1, 1);
-webkit-transform-origin: 0% 0%;
height: 1188px;
left: 0;
position: absolute;
top: 0;
transform: translate(0, 0) rotate(0deg) skew(0deg) scale(1, 1);
transform-origin: 0% 0%;
width: 838px;
}
There was something similar for every page in the full epub, with consistent width/height dimensions.
In looking through the debug output, the html generated at the processed step renders the same in Calibre as the input epub. I converted to epub as follows and imported it into Calibre
Code:
cd Debug/processed
zip -r processed.epub *