| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 12 
				Karma: 10 
				Join Date: Mar 2011 
				
				
				
				Device: PC (Linux) 
				
				
				 | 
	
	
	
		
		
			
			 
				
				mobi -> pdf; top & bottom margins 0, links disabled
			 
			
			
			Using Calibre v.0.8.4 in Windows XP, I'm trying to convert a mobibook to pdf.  When I use the direct conversion from mobi to pdf in Calibre, most everything works well (using some custom settings), except for two problems:   
		
	
		
		
		
		
		
		
		
		
		
		
	
	1. Calibre responds correctly to setting right and left margins in "Page Setup", but top and bottom margins on the pdf page come out to be 0, regardless of what value I set them to. 2. The mobibook has internal links (shown in blue), e.g. from chapter headings in the TOC to the actual chapter locations and from footnote numbers in the text to the notes in the back, and the reverse. These links are active in the mobibook, read in Mobipocket Reader or in Calibre's e-book viewer. They are also active in the final pdf, if I go the following conversion route: mobibook -> html, using 'ebook-convert booktitle.mobi .oeb --debug ./' in the CLI in Linux, then feeding the unpacked html file found in the 'input' dir into htmldoc v.1.8.27 (after converting UTF-8 to ISO-1859-1). Much of the formatting is gone in that conversion (that version of htmldoc supports neither UTF-8 nor external or internal css) but the links still work in the pdf. They are not active in the pdf converted directly from mobi in the Calibre GUI. Somewhere in that conversion the links have been disabled. How can I fix these two problems?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You cannot. They are both limitations of pdf output in calibre. The margins issue should be fixed in the next release, but the links will not work.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 12 
				Karma: 10 
				Join Date: Mar 2011 
				
				
				
				Device: PC (Linux) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thanks, Kovid.  When do you think the next release will be out, in which the margins issue would be resolved?
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 eBook Enthusiast 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,560 
				Karma: 93980341 
				Join Date: Nov 2006 
				Location: UK 
				
				
				Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			New versions of Calibre are released on a Friday, so it should be next Friday, 6th April.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Connoisseur 
			
			![]() Posts: 53 
				Karma: 10 
				Join Date: Jul 2012 
				Location: Seattle, USA 
				
				
				Device: Nook 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I have similar issues with .epub to .pdf conversion, actually. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	The margins (set all four to 72) work. But they also work for the cover image which looks a little ugly now, since it doesn't stretch across the entire page anymore; instead, it's shrunk into the text box of the remainder of the book. My .epub contains internal links for the TOC or footnotes. The .pdf shows these links in blue, but essentially not functional. Is something broken here? If there is support for internal links, then they don't work; if there is no support for internal links, then they shouldn't show up in blue. Either way, something seems broken. Cheers!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#6 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 14 
				Karma: 10 
				Join Date: Aug 2012 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I'm converting HTML -> pdf. The TOC links don't work (they do work in mobi generated from the same HTML), i.e. I'm not sent to the appropriate chapter. Has this issue been solved in the meanwhile? Thanks.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Converting epub to PDF - can't get top/bottom margins to work | Cayo | Conversion | 17 | 04-12-2012 09:19 PM | 
| top and bottom margins when converting to pdf | jhsrennie | Conversion | 3 | 04-06-2012 03:26 AM | 
| Wider top and bottom margins in LRF | Uke | Devices | 3 | 05-06-2011 08:55 AM | 
| Missing TOC, top/bottom margins and hyperlinks in ePub -> PDF conversion | amoroso | Conversion | 2 | 04-26-2011 11:48 AM | 
| Is there a way to stop the faded text at the bottom & top in horizontal mode? | Sunspark | Sony Reader | 9 | 03-25-2010 04:36 PM |