Open
Description
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.
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
Labels
No labels