Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Integration: #2717 the header-relative retry keeps its flag after the merge with the new head

aiongg0b3b63b22a16
diff --git a/crates/cos/src/document.rs b/crates/cos/src/document.rs
index 43bad70b7..f614ee221 100644
--- a/crates/cos/src/document.rs
+++ b/crates/cos/src/document.rs
@@ -1668,7 +1668,7 @@ impl Document {
log.push(format!("xref at {off} unreadable ({e}); retrying relative to the header"));
sect.clear();
odd.clear();
- self.read_section(off as usize + self.header_offset, &mut sect, &mut odd, log)?
+ (self.read_section(off as usize + self.header_offset, &mut sect, &mut odd, log)?, true)
}
Err(e) => {
// An unreadable older section loses every object only it locates (the page