|
@@ -45,8 +45,11 @@ const save = async () => {
|
|
useViewer.setUploadLoading(true)
|
|
useViewer.setUploadLoading(true)
|
|
const oldScale = useViewer.getScale
|
|
const oldScale = useViewer.getScale
|
|
|
|
|
|
- const { newUrl } = await core.saveDocumentEdit()
|
|
|
|
-
|
|
|
|
|
|
+ const newUrl = await core.saveDocumentEdit()
|
|
|
|
+ const pwd = useDocument.getPassword
|
|
|
|
+ await core.loadDocument(newUrl, {
|
|
|
|
+ password: pwd
|
|
|
|
+ })
|
|
useDocument.setCurrentPdfData(newUrl)
|
|
useDocument.setCurrentPdfData(newUrl)
|
|
const totalPages = core.getPagesCount()
|
|
const totalPages = core.getPagesCount()
|
|
useDocument.setTotalPages(totalPages)
|
|
useDocument.setTotalPages(totalPages)
|