03-03-2018, 04:07 AM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2014
Device: none
|
pdf conversion questions
Hi
I installed Calibre 3.18 64 bit on Windows 7 SP1. I should convert some books from azw3 or epub format to pdf format. I have two questions: 1) How do I keep the link clickable? 2) How do I numerate the pages so that I can decide which is the first page? By chance, is it also possible to enter the Roman numbering so that Roman numbers can be inserted in the first pages, and then the Arabic numbers? Thanks Bye Last edited by balubeto; 03-03-2018 at 04:11 AM. |
03-03-2018, 07:32 AM | #2 |
creator of calibre
Posts: 43,869
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
links remain clickable automatically and you can write arbitrary javascript code to output page numbers https://manual.calibre-ebook.com/con...verting-to-pdf
|
Advert | |
|
03-05-2018, 01:47 PM | #3 | |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2014
Device: none
|
Quote:
Thanks Bye Last edited by balubeto; 03-05-2018 at 01:49 PM. |
|
03-05-2018, 06:32 PM | #4 |
creator of calibre
Posts: 43,869
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use an if statement to condition the output. I'm afraid I dont have the time to write the script for you.
|
03-06-2018, 03:18 AM | #5 |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2014
Device: none
|
|
Advert | |
|
04-06-2018, 10:31 AM | #6 | |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Quote:
I'm thinking that your example can take care of the Arabic numerals, (using _PAGENUM_ - N, where N is the number of Roman pages), and then the Roman numerals could use a simple array of text elements predefined for the max no. needed. This is usually a small number and would be easier than writing a full conversion. |
|
04-06-2018, 10:56 AM | #7 |
creator of calibre
Posts: 43,869
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes it is an arbitrary JS script.
|
04-06-2018, 12:25 PM | #8 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
This works in a web browser so may work as a template for calibre.
You need to extend the ronu list as far as needed, and set romp to the number of roman numeral pages at the start of the book. Code:
<p id="pagenum" style="text-align:center;"></p> <script> var ronu = [ "-", "i", "ii", "iii", "iv", "v", "vi", "vii", "viii" ] var valu = "" var romp = 6 if (_PAGENUM_ > romp) valu = _PAGENUM_ - romp else valu = ronu[_PAGENUM_] document.getElementById("pagenum").innerHTML = valu </script> Last edited by Agama; 04-06-2018 at 12:36 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Some questions about EPUB to PDF conversion | Paulo27 | Conversion | 2 | 03-14-2017 11:26 AM |
PDF to MOBI Conversion Questions | pureambient | Conversion | 4 | 10-31-2011 12:09 PM |
PDF to PDF conversion creates much larger file? | rocketcat | Conversion | 11 | 09-30-2011 07:37 PM |
hello, and conversion questions | Lago | IMP | 4 | 10-28-2008 12:25 AM |
Various Conversion Questions | Red Penguin | Workshop | 3 | 09-12-2008 02:15 PM |