This commit is contained in:
r-ca committed 2024-01-29 05:45:10 +09:00
1 parent 426a3534c8
commit 9042817d63
2 files changed
+7 -1

No files matched your search

@@ -133,6 +133,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{
logger.debug("updatePageAtIndex", "called");
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
logger.debug("updatePageAtIndex", "filename1: " + filename);
try {
this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename);
} catch (Exception e) {
@@ -142,6 +144,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{
lacertaVcs.undo();
}
logger.debug("updatePageAtIndex", "filename: " + filename);
Page page = new Page();
page.setFileName(filename);
page.setBitmap(bitmap);