8000 Error `error: plugin panicked: wasm `unreachable` instruction executed` when including valid (?) pdf · Issue #5 · frozolotl/muchpdf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error error: plugin panicked: wasm unreachable instruction executed when including valid (?) pdf #5
Open
@lcdumort

Description

@lcdumort

Hi,
I'm trying to include a multi-page pdf into my typst document.
I've tried using version 0.1.1 and 0.1.0 of muchpdf, without success.
I've also tried to remove all metadata, links,... and such from the pdf, but with no success.
For reference, I've added the pdf that I'd like to include.

output.pdf

for paper in papers {
    publication-page( 
        number: paper.at("number"),
        title: paper.at("title"),
        authors: paper.at("authors"),
        journal: paper.at("journal"),
        contributor: paper.at("contributor"),
        copyright: paper.at("copyright"),
        num_pages: paper.at("num_pages"),)
    pagebreak()

    muchpdf(read("papers/output.pdf", encoding: none))
  }

Which gives me this error:

error: plugin panicked: wasm `unreachable` instruction executed
   ┌─ @preview/muchpdf:0.1.1/lib.typ:60:25
   │  
60 │       let rendered-pages = muchpdf-plugin.render(
   │ ╭──────────────────────────^
61 │ │       data,
62 │ │       float.to-bytes(scale),
63 │ │       encode-pages(pages),
64 │ │     )
   │ ╰─────^

help: error occurred in this call of function `muchpdf`
    ┌─ thesis/lib.typ:311:4
    │
311 │     muchpdf(read("papers/output.pdf", encoding: none))
    │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Disclaimer: I'm very new to typst, so I might be making some kind of mistake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0