I have around 100 word documents to murge into 1 doc (Like this i have 4 sets , 400 doc to be murged into 4 doc with each 100 doc) and each doc has different number of pages and i want to retain the page number as is like
1. If First Doc has 20 pages then page should be 1 of 20,2 of 20....20 of 20
2.If Second Doc has 30 pages then page should be 1 of 30, 2 of 30 ....30 of 30.
We know if we use NUMPAGES then it will sum up all the pages.
I implemenetd this in two ways:
1. By following http://www.aspose.com/docs/display/wordsnet/Controlling+How+Page+Numbering+is+Handled
this URL and implemented in Java, but as i have 100 docs to append it is in infinite loop and i waited for 2 hours and no luck. This works fine if i have less than 25 documents to murge and it took 10 min. Do we have any solutions here? I am using version 15.
2. I removed NUMPAGES and added some plain text and replaced this with the page count on each doc and then merged. I had some luck here but in few documents page count is incorrect and it is adding +1 to the actual size. When i looked into those specific documents it has one table which has spread across multiple pages and looks like it is creating problem. I do have other tables in other section of page and it is fine. Unfortunatelly i wont be able to share the Template, any guess what might be going wrong with that table?
Document doc = new Document(pdfFilePath);
doc.updatePageLayout()
doc.getBuiltInDocumentProperties().getPages()
I appriciate your help and eagerly waiting for your Help!.
Thanks,
Praveen Gowda