Giter Site home page Giter Site logo

princepdf's People

Contributors

jellby avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

xiaoliutalk

princepdf's Issues

"booktitle" and "chaptertitle" strings are empty

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}@}@"
}

Images are too small

Prince conversion gets images too small, as you can see from this screenshot:

prince_too_small

Instead, stock PDF conversion scales the images much better

stock_ok

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:

Prince (unreadable):
passage_a_princeu

Stock PDF conversion (more readable):
passage_a_stock

Unless I am missing some Prince option that manages this

Configuration dialog goes off screen (buttons unclickable)

As you can see from the screenshot, the configuration dialog has borders that goes off screen.
The "OK" button is not clickable.
Also, the dialog is not resizable (going with the mouse on the border and trying to reset it does not work as expected)

prince_pdf_plugin_config_dlg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.