Hi,
When calling getPageCount() on a document, this performs a full page layout on the entire document, so if my document has 1000 pages it will re-layout all 100 pages correct.
If I wish to save a document page as a JPEG with the following code:
Document doc = new Document(“MyFile.docx”)
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.JPEG);
options.setPageIndex(0);
options.setPageCount(5);
doc.save(“MyFile.png", options);
Will it only perform a layout on the first 5 pages or the entire document:
If I use this code:
Document doc = new Document(“MyFile.docx”)
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.JPEG);
options.setPageIndex(6);
options.setPageCount(10);
doc.save(“MyFile.png", options);
Assuming the first case only performs a layout on the first 5 pages can I assume even though I only want 5 pages it will need to perform a layout on the first 10 pages even though my start index is 6 as all page layouts need to start at the first page.
Thanks, Ian.