jellby / princepdf Goto Github PK
View Code? Open in Web Editor NEWPrince PDF plugin for calibre
Prince PDF plugin for calibre
The booktitle
and chaptertitle
strings do not work. There is no book title nor chapter title in the top margin. Of course, the book has at least a title in the metadata (I don't know where chapter titles are taken from). Conversely, the counter(page)
and counter(pages)
do work. Here is the CSS file:
/*
@font-face {
font-family: serif;
src: local("Droid Serif")
}
*/
@page {
size: 210mm 297mm;
margin: 2.5cm !important;
@top-left {
font-size: 50%;
font-style: italic;
border-bottom: solid thin black;
margin-bottom: 1mm;
content: string(booktitle);
}
@top-center {
font-size: 50%;
font-style: italic;
border-bottom: solid thin black;
margin-bottom: 1mm;
content: string(chaptertitle);
}
@top-right {
font-size: 50%;
border-bottom: solid thin black;
margin-bottom: 1mm;
content: counter(page) "/" counter(pages);
}
}
@page:first {
margin: 1mm 1mm 1mm 1mm;
@top-left {
border-width: 0;
margin: 0;
content: normal;
}
@top-center {
border-width: 0;
margin: 0;
content: normal;
}
@top-right {
border-width: 0;
margin: 0;
content: normal;
}
}
body {
font-size: 10pt;
font-family: serif;
text-align: justify;
prince-image-resolution: 166dpi;
hyphens: auto;
string-set: booktitle "@{@{title}@}@"
string-set: author "@{@{author}@}@"
}
Prince conversion gets images too small, as you can see from this screenshot:
Instead, stock PDF conversion scales the images much better
This is a serious problem because some badly tailored ebooks put text into images which are unreadable if they are too small. Here is an example:
Stock PDF conversion (more readable):
Unless I am missing some Prince option that manages this
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.