Page 1 of 1

Pandoc HTML to PDF: createProcess: posix_spawnp: does not exist

Posted: Fri Feb 07, 2025 9:52 pm
by peter_b
[PROBLEM]
Trying to `pandoc test.html -o test.pdf`: :shock: :(
[WARNING] Could not fetch resource : replacing image with description
[WARNING] Could not convert image /tmp/tex2pdf.-b88a2ed6c68716a2/f83e1f09c250858dedf0cb5e1214b94760791e49.svg: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)
[WARNING] Could not convert image /tmp/tex2pdf.-b88a2ed6c68716a2/8b33e6796c762a1fce5c17a025fa150f875c4f56.svg: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)
[WARNING] Could not convert image /tmp/tex2pdf.-b88a2ed6c68716a2/d47fecffc5eef83d993f4e8fd68187777df65c52.svg: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)
[WARNING] Could not convert image /tmp/tex2pdf.-b88a2ed6c68716a2/8b33e6796c762a1fce5c17a025fa150f875c4f56.svg: check that rsvg-convert is in path.
rsvg-convert: createProcess: posix_spawnp: does not exist (No such file or directory)
Error producing PDF.
! Package svg Error: File `f83e1f09c250858dedf0cb5e1214b94760791e49_svg-tex.pdf
' is missing.

See the svg package documentation for explanation.
Type H <return> for immediate help.
...

l.112 ...f09c250858dedf0cb5e1214b94760791e49.svg}}
I hope the hint in the error message is right: check that rsvg-convert is in path.


[SOLUTION]

Code: Select all

sudo apt install librsvg2-bin