From cf98b7f3687d9a2382400ff5dcd221b03e4f45d6 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 16 Oct 2026 01:36:22 +0700 Subject: [PATCH] PDF import: one helper for the dictionary values the reader can parse --- crates/pdf/src/pages.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/pdf/src/pages.rs b/crates/pdf/src/pages.rs index 7bc47c9bd..90ab4002a 100644 --- a/crates/pdf/src/pages.rs +++ b/crates/pdf/src/pages.rs @@ -10,7 +10,7 @@ use craft_pdf::syntax::{DecryptionError, LoadPdfError, Pdf}; use kurbo::{Affine, Rect}; use vectorcraft_doc::setup::MAX_BLEED; -use crate::import_color::direct; +use crate::import_color::{direct, values}; use crate::{Choice, CropTo, ImportOptions, PdfError}; /// What `info` tells about one page. @@ -46,11 +46,6 @@ const MAX_LINKS: usize = 16; /// The application's calculator-procedure depth policy, layered over the shared reader's limits. const MAX_PROCEDURES: usize = 64; -/// The values of `d` that the reader can parse (`Dict::entries` panics on one it can't). -fn values<'a>(d: &Dict<'a>) -> impl Iterator>> { - d.keys().filter_map(|k| d.get_raw::>(k.as_ref())) -} - /// What the function or colour space `o` is built on: the functions a stitching function joins; /// the base, alternate and tint of a colour space; the alternate of a colour profile. Nothing for /// any other object.