修正 WIP

This commit is contained in:
r-ca 2024-01-09 15:53:20 +09:00
parent 9065ee1e1f
commit 3cafa05b27
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -95,9 +95,9 @@ public class DocumentProcessorImpl implements DocumentProcessor{
logger.debug("addNewPageToLast", "called");
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
FileManager rawFileManager = fileManager.resolve(DEFAULT_SAVE_DIR).createDirectoryIfNotExist().getCurrentInstance();
FileManager imageFileManager = fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR);
rawFileManager.saveBitmap(bitmap, filename);
imageFileManager.saveBitmap(bitmap, filename);
XmlMetaPageModel xmlMetaPageModel = new XmlMetaPageModel();
xmlMetaPageModel.setFilename(filename);