mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
444c01b976
commit
e9caaa4193
31 files changed
+639
-182
No files matched your search
+1
-1
@@ -257,7 +257,7 @@ func ImportPDF(ctx context.Context, source io.ReaderAt, size int64, options PDFI
|
||||
return fmt.Errorf("import PDF page %d: %w", index+1, err)
|
||||
}
|
||||
if len(importer.annotationData) != 0 {
|
||||
if err := editor.appendAnnotations(index, importer.annotationData); err != nil {
|
||||
if err := editor.appendAnnotations(index, importer.annotationData, true); err != nil {
|
||||
return fmt.Errorf("import PDF page %d: %w", index+1, err)
|
||||
}
|
||||
importer.annotationData = nil
|
||||
|
||||
Reference in new issue
Block a user