Validate PDF page dependencies before reusing SVG previews
This commit is contained in:
1 parent
520e8eede2
commit
140bb19849
5 files changed
+339
-28
No files matched your search
+2
-2
@@ -1166,8 +1166,8 @@ impl CompileJob {
|
||||
.transpose()?;
|
||||
let receipt = prepared.as_ref().map(|p| p.version(&output)).transpose()?;
|
||||
let previous = self.compiler.latest();
|
||||
// PDF-composited SVG is derived from the complete device output.
|
||||
// Reuse it only when the bytes underlying this rendering agree.
|
||||
// Identical PDF output allows direct reuse. When it differs,
|
||||
// PDF previews validate the new page and its reachable objects.
|
||||
let pdf_unchanged = pages.iter().any(DisplayList::has_embedded_pdf)
|
||||
&& previous
|
||||
.as_deref()
|
||||
|
||||
Reference in new issue
Block a user