View Single Post
Old 08-01-2012, 08:27 AM   #13
Heisenberg
Junior Member
Heisenberg began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Aug 2012
Device: none
Problem with footnotes

Hi there,

first I want to thank you for publishing your great script. It is the best solution for converting epub to pdf I found on the web (and i searched long time).
Now I use your script for the following task:
I export a dokuwiki to epub and then convert it with your script. Works fine but one problem:
When I click the footnotes which were generated for external links, I get a error message:
"epub2pdf/OEBPS/footnotes.html': No such file or directory"

errors from console:
Code:
prince: OEBPS/title.html:3: error: Misplaced DOCTYPE declaration
prince: OEBPS/title.html:4: error: htmlParseStartTag: misplaced <html> tag
prince: OEBPS/footnotes.html:167: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html:167: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html:239: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html:239: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html:240: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html:240: error: EntityRef: expecting ';'
prince: OEBPS/footnotes.html: error: could not load input file
my config css looks like this:
Code:
@font-face {
    font-family: serif;
    src: local("Georgia")
}

@font-face {
    font-family: sans-serif;
    src: local("Verdana")
}

@font-face {
    font-family: monospace;
    src: local("Courier New")
}

@page {
  size: 21cm 29.7cm;
  margin: 20mm 20mm 20mm 20mm;
  @top-left {
    font-size: 60%;
    font-style: italic;
    border-bottom: solid thin black;
    margin-bottom: 1mm;
    content: string(booktitle);
  }
  @top-center {
    font-size: 60%;
    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: 20mm 20mm 20mm 20mm;
  @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: 8.0pt;
  font-family: serif;
  text-align: justify;
  hyphens: auto;
  prince-image-resolution: auto;
}

img{
max-width: 100%; 
}

h1, h2, h3, h4, h5, h6 {
  hyphens: none;
}

:lang(it), :lang(es) {
  hyphenate-before: 3;
  hyphenate-after: 3;
}
I'm not very familiar to prince so if someone could help me I would really appriciate!!!

Thanks and kind Regards!
Heisenberg is offline   Reply With Quote