Implement native PDF links and vertical discard lists

This commit is contained in:
gloamxun committed 2026-11-18 23:39:45 +08:00
1 parent b6567f67e2
commit a53d9c9bf9
29 files changed
+980 -109

No files matched your search

@@ -214,6 +214,7 @@ pub enum OutputOperation {
PdfSave,
PdfSetMatrix(Vec<Token>),
PdfRestore,
PdfLink(crate::pdf_device::links::LinkNode),
PdfImage {
image: std::sync::Arc<crate::pdf_image::PdfImageUse>,
origin: super::TokenOrigin,
@@ -227,6 +228,10 @@ pub struct OutputNode {
}
impl OutputNode {
pub(super) fn is_pdf_link(&self) -> bool {
matches!(self.operation, OutputOperation::PdfLink(_))
}
pub(super) fn is_pdf_graphics(&self) -> bool {
matches!(
self.operation,