Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML to PDF #454

Open
HidejiKakinami opened this issue Oct 31, 2023 · 1 comment
Open

HTML to PDF #454

HidejiKakinami opened this issue Oct 31, 2023 · 1 comment

Comments

@HidejiKakinami
Copy link

Error: Command failed with exit code 1: ./node_modules/.bin/vivliostyle build /tmp/401b87289f76800d789a08177f0e216b.html --output /tmp/670efc9a2eb79088ba0bba6afc6cc195.pdf --no-sandbox --executable-chromium /usr/bin/chromium --size A4 --render-mode local --preflight press-ready-local

  • Collecting build config
    ℹ Launching build environment
    ℹ Building pages
    ℹ Building PDF
    ℹ Processing PDF
    🚀 Running press-ready
    Error: Command failed with exit code 1: pdffonts /tmp/vivliostyle-cli-98de6a10-77ab-11ee-8638-0fb8c8032103.pdf
    I/O Error: Couldn't open file '/tmp/vivliostyle-cli-98de6a10-77ab-11ee-8638-0fb8c8032103.pdf': No such file or directory.
    at makeError (/zeroone/n8n/node_modules/press-ready/node_modules/execa/lib/error.js:59:11)
    at handlePromise (/zeroone/n8n/node_modules/press-ready/node_modules/execa/index.js:114:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Object.pdfFonts (/zeroone/n8n/node_modules/press-ready/lib/pdffonts.js:24:17)
    at async Object.inspectPDF (/zeroone/n8n/node_modules/press-ready/lib/inspectPDF.js:14:23)
    at async Object.build (/zeroone/n8n/node_modules/press-ready/lib/commands/build.js:54:38)
    at async PostProcess.save (/zeroone/n8n/node_modules/@vivliostyle/cli/dist/postprocess.js:90:13)
    at async Object.buildPDF (/zeroone/n8n/node_modules/@vivliostyle/cli/dist/pdf.js:228:5)
    at async Object.build (/zeroone/n8n/node_modules/@vivliostyle/cli/dist/build.js:64:30)
    ==> Listing fonts in '/tmp/vivliostyle-cli-98de6a10-77ab-11ee-8638-0fb8c8032103.pdf'

If you think this is a bug, please report at https://github.com/vivliostyle/vivliostyle-cli/issues
at makeError (/zeroone/n8n/node_modules/execa/lib/error.js:60:11)
at handlePromise (/zeroone/n8n/node_modules/execa/index.js:118:26)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Function.task (/zeroone/n8n/node_modules/tempy/index.js:23:10)
at async tempy_1.default.file.task.extension (/zeroone/n8n/node_modules/@founder-z/n8n-nodes-vivliostyle/dist/nodes/Vivliostyle/Vivliostyle.node.js:111:58)
at async Function.task (/zeroone/n8n/node_modules/tempy/index.js:23:10)
at async Object.execute (/zeroone/n8n/node_modules/@founder-z/n8n-nodes-vivliostyle/dist/nodes/Vivliostyle/Vivliostyle.node.js:110:17)
at async /zeroone/n8n/node_modules/@founder-z/n8n-core/dist/src/WorkflowExecute.js:451:47

@spring-raining
Copy link
Member

@HidejiKakinami From your ID I'm guessing you are a Japanese user. May I communicate in Japanese? 日本語でやり取りしても良いでしょうか?

問題の原因を詳しく調べるため、以下の情報を教えてもらえますか?

  • Node.js, vivlistyle-cliのバージョン
node -v
./node_modules/.bin/vivliostyle -v
  • 以下2つのコマンドの実行結果
node -e 'console.log(require("os").tmpdir())'
node -e 'const d=require("./node_modules/tmp").dirSync();console.log(d.name);d.removeCallback()'
  • 以下のように、press-readyを別コマンドで実行したときに正しく動作するかどうか
# 1. vivliostyle-cliを実行
./node_modules/.bin/vivliostyle build /tmp/401b87289f76800d789a08177f0e216b.html --output /tmp/670efc9a2eb79088ba0bba6afc6cc195.pdf --no-sandbox --executable-chromium /usr/bin/chromium --size A4 --render-mode local
# 2. press-readyを実行
./node_modules/.bin/press-ready buidl -i /tmp/670efc9a2eb79088ba0bba6afc6cc195.pdf /tmp/output.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants