gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

gitbook pdf throw exception

Open mistbor opened this issue 6 years ago • 0 comments

$ gitbook -V CLI version: 2.3.2 GitBook version: 2.6.7

Celebre has been installed.

$ gitbook pdf ./ a.pdf (node:14312) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. (node:14312) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version. info: loading book configuration....OK info: load plugin gitbook-plugin-highlight ....OK info: load plugin gitbook-plugin-search ....OK info: load plugin gitbook-plugin-sharing ....OK info: load plugin gitbook-plugin-fontsettings ....OK info: >> 4 plugins loaded info: start generation with pdf generator info: clean pdf generatorOK info: write SUMMARY.html info: start conversion to pdf ....ERROR

Error: Command failed: ebook-convert C:\Users\YFZX-M~1\AppData\Local\Temp\tmp-14312iwvff65.snu92j4i\SUMMARY.html C:\Users\YFZX-M~1\AppData\Local\Temp\tmp-14312iwvff65.snu92j4i \index.pdf --title="Introduction" --comments="" --language="en" --book-producer="GitBook" --publisher="GitBook" --chapter="descendant-or-self::[contains(concat(' ', normalize -space(@class), ' '), ' book-chapter ')]" --level1-toc="descendant-or-self::[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-1 ')]" --level2-toc="descendan t-or-self::[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-2 ')]" --level3-toc="descendant-or-self::[contains(concat(' ', normalize-space(@class), ' '), ' book-chapter-3 ')]" --no-chapters-in-toc --max-levels="1" --breadth-first --chapter-mark="pagebreak" --page-breaks-before="/" --margin-left="62" --margin-right="62" --margin -top="56" --margin-bottom="56" --pdf-default-font-size="12" --pdf-mono-font-size="12" --paper-size="a4" --pdf-header-template=" <body style="color: #000; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-family: sans-serif;"> <div class="pdf-header" style="margin-top: 20px; color: #aaa; padding-bottom: 10px; border-bottom: 1px solid #eee;"> TITLE

mistbor avatar Apr 22 '19 02:04 mistbor