The following code panics:
if count == nil || *count == 0 {
if xRefTable.ValidationMode == model.ValidationStrict {
return errors.New("pdfcpu: validateOutlineTree: non-empty outline item dict needs \"Count\" <> 0")
}
*count = c
}
count is nil hence *c will panic.