Thanks for advice. I tried all imaginable (to me) combinations of escaping by quotes but exhausted my options...
This is the command line I experimented with intending to turn off the header:
Code:
ebook-convert "book.epub" "book.pdf" --custom-size 78.836x108.31 --unit millimeter --override-profile-size --pdf-default-font-size 17 --margin-top 12 --pdf-header-template "<div id="header" style="font-size:x-small"><p style="float:left">_TITLE_</p><p style="float:right;"><i>_AUTHOR_</i></p></div><script>document.getElementById("header").style.display="none";</script>"
No matter where I placed additional quotes header always stayed put.
Please give me a hint: How to place quotes in this line to set javascript to work?