Resolve named XeTeX colors in native PDF and preview
This commit is contained in:
1 parent
d6ab5a025f
commit
74eb1e9fc4
12 files changed
+723
-97
No files matched your search
@@ -3670,6 +3670,12 @@ fn write_pdf(
|
||||
destination.collect_references(&mut pending);
|
||||
}
|
||||
}
|
||||
if xdv_objects.has_color_resources() {
|
||||
for list in &paint_lists {
|
||||
pending.extend(crate::pdf_device::xdv_navigation::color_uses(list)
|
||||
.map(|resource| resource.object.as_slice()));
|
||||
}
|
||||
}
|
||||
let named_objects = xdv_objects.reserve_objects(pending, &mut objects, &xdv_xobjects)?;
|
||||
let references = crate::pdf_device::xdv_object::References {
|
||||
pages: &navigation.pages,
|
||||
@@ -3684,7 +3690,7 @@ fn write_pdf(
|
||||
objects[id - 1] = xdv.write_form(form, resources.as_bytes(), &content, &references, &mut objects, diagnostics)?;
|
||||
}
|
||||
xdv.write_page_dictionaries(pages, &references, &mut objects)?;
|
||||
xdv.write_page_resources(&references, &mut objects, diagnostics)?;
|
||||
xdv.write_page_resources(pages, &references, &mut objects, diagnostics)?;
|
||||
}
|
||||
for (id, annotation) in xdv_annotations {
|
||||
objects[id - 1] = annotation.pdf(&references, &xdv_names)?;
|
||||
|
||||
Reference in new issue
Block a user