mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
89252a7454
commit
aacf789615
3 files changed
+7
-3
No files matched your search
@@ -458,6 +458,10 @@ func (p *pdfImporter) linkAction(annotation pdfgo.Annotation, strict bool, curre
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if value == nil && !strict {
|
||||
p.report.Warnings = append(p.report.Warnings, pdfgo.Diagnostic{Page: p.page + 1, Message: "PDF URI target missing; action omitted"})
|
||||
return nil, nil
|
||||
}
|
||||
uri, ok := value.(pdfgo.String)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("invalid PDF URI")
|
||||
|
||||
Reference in new issue
Block a user