Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 06-08-2012, 08:58 AM   #1
Jokerfwb
Junior Member
Jokerfwb began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2012
Device: kindle
Converting to PDF help? Bad page breaks and no TOC produced.

For some reason I can't seem to find anything regarding converting to PDF from a format. I am trying to convert from a MOBI to a PDF.

I have an AVS document converter tool that gets page breaks and right but messes up on quotation and a few other characters, plus there is now TOC.

I have been messing with Calibre and not having much luck there aside from the characters aren't messed up. Here are the problems I'm having:

1) Page breaks, the converted PDF has page breaks in the middle of sentences and images. I have tried converting from HTMLZ with this //*[name()='h1' or name() = 'img']. To try and detect these attributes but no luck.

2) No TOC generated.

3) The generated PDF has a huge right margin, like half the page.

So could someone give me some tips or point me to a good tutorial for converting to PDF. And before you say PDF is a bad format. I'm going to it because i really like reading my educational books on Preview on my MacBook Pro
Jokerfwb is offline   Reply With Quote
Old 06-11-2012, 11:03 AM   #2
donB006
Enthusiast
donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.
 
Posts: 25
Karma: 186268
Join Date: Jun 2011
Device: Kindle k3G, DXG; Iriver Story HD
Calibre uses the QT QPrinter widget to generate a pdf and that causes bad pagebreaks. Calibre first converts any file format to html and then uses QPrinter to create the pdf the same as the webkit browser. There are better programs available to convert from the html to pdf without the bad pagebreaks. What I do is convert the ebbok to htmlz and then unzip to find the index.html file. Then you can convert the html to pdf using a browser with a pdf printer and save to file. I have also tried the xhtml2pdf program and the wkhtmltopdf with patched QT static version. I prefer the xhtml2pdf except I had to learn to do that just the way I wanted. I think you can find what you want with these alternatives.
.
donB006 is offline   Reply With Quote
Old 06-12-2012, 12:43 PM   #3
Bubbles
Junior Member
Bubbles began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: Kindle
How do you unzip htmlz? Somehow I am not able to unzip it.

Please
Bubbles is offline   Reply With Quote
Old 06-13-2012, 12:11 PM   #4
donB006
Enthusiast
donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.donB006 can program the VCR without an owner's manual.
 
Posts: 25
Karma: 186268
Join Date: Jun 2011
Device: Kindle k3G, DXG; Iriver Story HD
The book.htmlz is just a zip archive. Maybe rename to book.htmlz.zip or book.zip would help your computer recognize the archive as a zip.
donB006 is offline   Reply With Quote
Old 06-13-2012, 06:27 PM   #5
Bubbles
Junior Member
Bubbles began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jun 2012
Device: Kindle
Thank you, that worked!!
Bubbles is offline   Reply With Quote
Old 06-16-2012, 03:29 AM   #6
jgt1942
Enthusiast
jgt1942 began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Nov 2010
Device: iPad
donB006 - thanks for the excellent post. It worked and I have a GREAT looking PDF file.
jgt1942 is offline   Reply With Quote
Old 07-24-2012, 11:36 PM   #7
patmo141
Junior Member
patmo141 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2012
Device: onyx boox m92
donB006...

I too have a nice looking PDF, but I can't for the life of me get a table of contents with links to the chapters.
patmo141 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF to EPUB - page breaks pops1959 Calibre 0 01-13-2011 08:28 PM
Converting a web page to epub with TOC philosopherdog Calibre 5 07-23-2010 08:55 AM
PDF conversion breaks links, TOC ToddA Calibre 3 02-06-2010 05:43 AM
Any way to force page breaks when converting HTML to EPUB Bierkonig Calibre 23 10-31-2009 02:51 PM
PDF to LRF with page breaks jupinator Calibre 0 07-27-2009 04:57 PM


All times are GMT -4. The time now is 10:21 PM.


MobileRead.com is a privately owned, operated and funded community.