switch to own pdf embedding implementation

This commit is contained in:
2025-11-17 13:57:07 +01:00
parent a4643419ef
commit d038c7de14
2 changed files with 4 additions and 5 deletions

View File

@@ -154,7 +154,7 @@
); );
query(label(attachment.at(1))).at(0).value; query(label(attachment.at(1))).at(0).value;
} else if attachment_type == "pdf" { } else if attachment_type == "pdf" {
import "@preview/muchpdf:0.1.1": muchpdf import "./pdf.typ": embed_full
page(place(center + horizon, heading( page(place(center + horizon, heading(
level: 2, level: 2,
get_lang_item(language, "attachment") + " " + get_lang_item(language, "attachment") + " " +
@@ -164,7 +164,7 @@
outlined: false, outlined: false,
)), margin: 0em); )), margin: 0em);
set page(margin: 0em); set page(margin: 0em);
muchpdf(read("../" + attachment.at(1), encoding: none), width: 100%); embed_full(read("../" + attachment.at(1), encoding: none));
} }
} }
} }

View File

@@ -278,9 +278,8 @@
// _ EMBEDDED // _ EMBEDDED
#let pdfembed(path) = { #let pdfembed(path) = {
import "@preview/muchpdf:0.1.1": muchpdf import "../pdf.typ": embed_full
set page(margin: 0em); embed_full(read(path, encoding: none));
muchpdf(read(path, encoding: none));
} }
// ASSIGNMENT PAGE // ASSIGNMENT PAGE