Skip to content

unable to convert epub to pdf via typst engine #11626

@StructSeeker

Description

@StructSeeker

for current latest verison

~\Downloads\toreduce> pandoc -v
pandoc 3.9.0.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: C:\Users\struc\AppData\Roaming\pandoc
Copyright (C) 2006-2025 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
~\Downloads\toreduce> pandoc -f 'epub' -t 'pdf' -o 'x.pdf' --split-level=1 --pdf-engine=typst --standalone x.epub
error: label `<nav.xhtml_toc>` does not exist in the document
    ┌─ \\?\C:\Users\struc\Downloads\toreduce\toPFD84.typ:167:3
    │
167 │ + #link(<nav.xhtml_toc>)[Table of Contents]
    │    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: label `<s04.xhtml_s04-a01>` does not exist in the document
    ┌─ \\?\C:\Users\struc\Downloads\toreduce\toPFD84.typ:912:18
    │
912 │ detail how \"The #link(<s04.xhtml_s04-a01>)[Emperor\'s] New Clothes\"
    │                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: label `<s04.xhtml_s04-a03>` does not exist in the document
     ┌─ \\?\C:\Users\struc\Downloads\toreduce\toPFD84.typ:4497:1
     │
4497 │ #link(<s04.xhtml_s04-a03>)[Dryad] stepped quickly out.
     │  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: label `<s04.xhtml_s04-a02>` does not exist in the document
     ┌─ \\?\C:\Users\struc\Downloads\toreduce\toPFD84.typ:2365:26
     │
2365 │ Farewell, farewell, thou #link(<s04.xhtml_s04-a02>)[warrior] brave, For
     │                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Error producing PDF.

A used epub file can be found here among other sample epub

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions