mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
60b8b44eca
commit
65a839f1e8
3 files changed
+131
No files matched your search
@@ -215,6 +215,9 @@ func ImportPDF(ctx context.Context, source io.ReaderAt, size int64, options PDFI
|
||||
}
|
||||
if len(editor.pages) != 0 {
|
||||
importer.page = -1
|
||||
if err := importer.outlines(ctx); err != nil {
|
||||
return nil, PDFImportReport{}, fmt.Errorf("import PDF outlines: %w", err)
|
||||
}
|
||||
if err := importer.documentOpenActions(ctx); err != nil {
|
||||
return nil, PDFImportReport{}, fmt.Errorf("import PDF document actions: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user