feat(转换能力): 修复PDF链接及压缩流兼容问题
build.yaml / build (push) Successful in 4m27s

This commit is contained in:
xiaoqidun committed 2026-10-14 23:15:36 +08:00
1 parent 89252a7454
commit aacf789615
3 files changed
+7 -3

No files matched your search

+4
View File
@@ -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")