| 
			
			 | 
		#1 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 24 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
			
			 
				
				epub to pdf pagination
			 
			
			
			I want to specify the starting page number for epub-->pdf conversion. Using the footnote template of PDF Output in conversion settings of Calibre I need to modify the code: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	<p style="text-align:center;">_PAGENUM_</p> to start at a number I choose. Please help me with the code needed to generate pagination under my control. Thanks!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 You don't/can't with Calibre e-books are reflowable, there are no pages, so no need for page numbering. You might be able to export as RTF (to keep styles) and use that with a Word Processing program to paginate and PRINT to PDF  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Use something like 
		
	
		
		
		
		
		
		
		
		
		
		
	
	<p id="pagenum" style="text-align:center;"></p><script>document.getElementById("pagenum").inner HTML = "" + (_PAGENUM_ + 3)</script> Replace 3 above with whatever you need.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 Member 
			
			![]() Posts: 24 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 http://manual.calibre-ebook.com/conv...verting-to-pdf Using their template for input isn't there a way to direct the code to begin at a specific number instead of at numeral 1? Due to high image content the files are too big to manage as a whole on my limited computer. I have to paginate chapters separately for now; rejoining later into a composite project that needs an index. I am ignorant of code in this instance and after three+ days searching online for a model in Calibre I hoped someone in the forum has some experience with the template Calibre offers for footers. For instance, the code Calibre offers paginates epub Chapter One beautifully in pdf output because the first page is page one. I can't paginate for the successive chapters. For example, Chapter Two needs to begin as page 19. Wow, it stumps me there is no code for this. kerliza  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 24 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank you for the code sample. I did not have success with it. No digits or text appear in the result.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You will need to wait for the next calibre release which will enable using javascript inside header/footer templates.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Ex-Helpdesk Junkie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421 
				Karma: 85400180 
				Join Date: Nov 2012 
				Location: The Beaten Path, USA, Roundworld, This Side of Infinity 
				
				
				Device: Kindle Touch fw5.3.7 (Wifi only) 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The change is here: https://github.com/kovidgoyal/calibr...10ef92678b02be
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 24 
				Karma: 10 
				Join Date: Oct 2013 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Okay, thanks for your help. I think calibre is about the best I've found in bridging formats coherently.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
| Tags | 
| calibre, conversion, epub-->pdf, pagination | 
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How to convert from epub to pdf and maintain original pagination format? | zenorb | Conversion | 16 | 03-03-2013 01:46 PM | 
| Converting epub into pdf with print pagination | luciano | Workshop | 6 | 09-05-2012 06:15 PM | 
| Keeping Pagination in ePub | azores | ePub | 5 | 03-28-2012 01:17 PM | 
| EPub pagination | ccowie | Calibre | 11 | 02-09-2011 11:59 PM |