c# - How can I programatically Kindlize an .HTML or .DOCX or .PDF file (make it Kindle-ready)? -


empirical observation has brought me conclusion when upload book files createspace (print books), best rendered .pdf files. kindle (ebook) format, otoh, turn out better when provided .docx file.

still far perfect, though. created book contains text - 1 font english, , different font, , bolded, alternating translated-into-spanish paragraphs. paperback version looks fine. here's how displays:

enter image description here

the kindle version of file, though, "9x uglier bag of butts" (or @ least plainer nebraska):

enter image description here

as can see, has no breaks between paragraphs (besides line break - big whoop!), , not retain bold formatting on spanish paragraph - or chapter heading formatting! kindlizing process apparently sees text being equal - no special formatting attempted!

so, since kindle rendering process not work (it worse when giving them same pdf provided create book file - parts of missing rendered content reason), there way can programmatically (in c#) massage file (either html, docx, or pdf) allow rendered kindle file paperback (retaining paragraph breaks , bold formatting)?

update

i downloaded calibre (tried to, is), put google blocked , said sky falling, , calibre ruin browsing experience. dadburn it, if legitimate software, why google block it?!?

update 2

i tried using firefox download calibre but, although there no err msg, wouldn't download file. maybe blocking it, "silently."

kindlegen amazon's tool taking input html , transforming mobi files. we've used in our rails project lot of success in past, , can shell out command-line run it.

calibre third-party tool takes in bunch more formats (pdf, epub, etc.) , outputs bunch more formats well. it's absolutely legitimate tool has command-line interface (ebook-convert) can useful.

for our projects, weren't able install calibre on our centos server, ended using kindlegen , converting html files. actually, specific, took in opf files assorted images, html files, toc.ncx files, etc. create .mobi file final publication.

you might want @ fonts supported on kindle , make sure fonts , styles correctly specified. this pdf amazon pretty job of describing css valid.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -