mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
WIP
This commit is contained in:
parent
513a91b41e
commit
1805cd7d73
|
@ -119,7 +119,17 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addNewPageAfterIndex(Bitmap bitmap, int index) {
|
public void addNewPageAfterIndex(Bitmap bitmap, int index) throws Exception {
|
||||||
|
logger.debug("addNewPageAfterIndex", "called");
|
||||||
|
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
||||||
|
|
||||||
|
this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename);
|
||||||
|
|
||||||
|
XmlMetaPageModel xmlMetaPageModel = new XmlMetaPageModel();
|
||||||
|
xmlMetaPageModel.setFilename(filename);
|
||||||
|
xmlMetaPageModel.setIndex(index + 1);
|
||||||
|
xmlMetaModel.getPages().add(index, xmlMetaPageModel);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user