Read binary TeX inputs and render default ICC colors
This commit is contained in:
1 parent
e9893a5c1b
commit
52db77885d
10 files changed
+379
-19
No files matched your search
@@ -351,9 +351,16 @@ impl SvgTransparency {
|
||||
}
|
||||
|
||||
impl DisplayList {
|
||||
/// Whether page or captured form colors depend on a PDF default color space.
|
||||
pub fn has_pdf_default_colors(&self) -> bool {
|
||||
self.pdf_resources.has_default_color_spaces
|
||||
|| self.forms.iter().any(|form| form.list.pdf_resources.has_default_color_spaces)
|
||||
}
|
||||
|
||||
/// Whether this page needs the complete PDF device output for SVG preview.
|
||||
pub fn has_embedded_pdf(&self) -> bool {
|
||||
self.pdf_resources.needs_pdf_for_preview
|
||||
|| self.pdf_resources.has_default_color_spaces
|
||||
|| self.pdf_background.as_ref().is_some_and(|program| program.needs_pdf_for_preview())
|
||||
|| self
|
||||
.items
|
||||
|
||||
Reference in new issue
Block a user