Include PDF graphics in the native XeTeX device
This commit is contained in:
1 parent
facecbf790
commit
794c2f9b2c
19 files changed
+545
-37
No files matched your search
@@ -623,8 +623,16 @@ impl Printer<'_> {
|
||||
self.literal(&format!(" {number}"));
|
||||
}
|
||||
OutputOperation::PdfImage { image, .. } => {
|
||||
self.command("pdfrefximage");
|
||||
self.literal(&format!(" {}", image.id));
|
||||
if image.xdv.is_some() {
|
||||
self.command("XeTeXpdffile");
|
||||
self.literal(&format!(
|
||||
" \"{}\"",
|
||||
image.image.version.path.display()
|
||||
));
|
||||
} else {
|
||||
self.command("pdfrefximage");
|
||||
self.literal(&format!(" {}", image.id));
|
||||
}
|
||||
}
|
||||
OutputOperation::PdfSave => self.command("pdfsave"),
|
||||
OutputOperation::PdfRestore => self.command("pdfrestore"),
|
||||
|
||||
Reference in new issue
Block a user