Skip to content

Commit ac6f14a

Browse files
committed
Fix #766
1 parent 60e13f3 commit ac6f14a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/pdfcpu/validate/annotation.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1450,8 +1450,14 @@ func validateBorderArray(xRefTable *model.XRefTable, a types.Array) bool {
14501450
}
14511451

14521452
}
1453+
14531454
if all0 {
1454-
return false
1455+
if xRefTable.ValidationMode != model.ValidationRelaxed {
1456+
return false
1457+
}
1458+
if log.ValidateEnabled() {
1459+
log.Validate.Println("digesting invalid dash pattern array: %s", a1)
1460+
}
14551461
}
14561462

14571463
continue

0 commit comments

Comments
 (0)