I'm trying to convert my website/book (HTML+CSS) to a single PDF for reading on Amazon Kindle but unfortunately Kindle does not support transparent GIF/PNG images (I have a lot of equations on my website that have transparent background).
I tried several approaches:
1) KindleGen v2.3 -- even though my html is quite simple it contains tables, images, CSS and the result of conversion is not pretty.
2) I tried wkhtmltopdf
but there was another problem: I have a table in my HTML that is wide and wkhtmltopdf didn't scale it. It just extended dimensions of the whole pdf document which is quite annoying.
3) I tried mpdf library for creating PDF from HTML and the result is nice but blank spaces are shown instead of transparent images.
- I'm trying to change background of images (equations) according to the background on which they are placed. It can be done, in my case, via DOM but it is not really elegant solution. How would you do that?
How do you convert complex HTML to PDF for Kindle? Thanks!
I'll wait for Kindle Format 8 (KF8) because it should provide everything I need and I'll use a PDF meanwhile.
All conversions from html to mobi format are simply not good enough. ePub format would be great but that is not supported on Amazon Kindle 3.
Thank you all for help!