Skip to content

Commit

Permalink
Fix #759
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Jan 29, 2024
1 parent 793c509 commit 6e235c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/pdfcpu/validate/outlineTree.go
Expand Up @@ -276,6 +276,8 @@ func validateOutlines(xRefTable *model.XRefTable, rootDict types.Dict, required
return errors.New("pdfcpu: validateOutlines: corrupted, root missing \"First\"")
}
// empty outlines
xRefTable.Outlines = nil
rootDict.Delete("Outlines")
return nil
}
if last == nil {
Expand Down

0 comments on commit 6e235c0

Please sign in to comment.