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 fb09864e..cf0d846d 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 @@ -115,7 +115,7 @@ public class DocumentProcessorImpl implements DocumentProcessor{ // Update meta XmlMetaPageModel page = new XmlMetaPageModel(); - page.setIndex(xmlMetaModel.getPages().size()); + page.setIndex(xmlMetaModel.getPages().size() + 1); page.setFilename(filename); xmlMetaModel.addPage(page); }