diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 899d7e16..684a71af 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -103,9 +103,9 @@ public class DocumentProcessorImpl implements DocumentProcessor{ Page page = new Page(); page.setFileName(filename); page.setBitmap(bitmap); - this.documentDetail.getPages().add(index + 1, page); + this.documentDetail.getPages().add(index, page); - lacertaVcs.insertPage(index + 1, filename); + lacertaVcs.insertPage(index, filename); } @Override