Skip to content

Commit

Permalink
Fix #717
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Sep 26, 2023
1 parent b4d3bd5 commit 4a2298c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/pdfcpu/validate/page.go
Expand Up @@ -507,6 +507,9 @@ func validatePageEntryPresSteps(xRefTable *model.XRefTable, d types.Dict, requir
func validatePageEntryUserUnit(xRefTable *model.XRefTable, d types.Dict, required bool, sinceVersion model.Version) error {

// UserUnit, optional, positive number, since V1.6
if xRefTable.ValidationMode == model.ValidationRelaxed {
sinceVersion = model.V13
}
_, err := validateNumberEntry(xRefTable, d, "pagesDict", "UserUnit", required, sinceVersion, func(f float64) bool { return f > 0 })

return err
Expand Down

0 comments on commit 4a2298c

Please sign in to comment.