package com.aspose.words.examples.programming_documents.document;
import com.aspose.words.Document;
import com.aspose.words.ViewType;
import com.aspose.words.examples.Utils;
import com.aspose.words.examples.programming_documents.document.properties.AccessingDocumentProperties;
public class SetViewOptions {
public static final String dataDir = Utils.getSharedDataDir(AccessingDocumentProperties.class) + "Document/";
public static void main(String[] args) throws Exception {
Document doc = new Document(dataDir + "Document.doc");
doc.getViewOptions().setViewType(ViewType.PAGE_LAYOUT);
doc.getViewOptions().setZoomPercent(50);
doc.save(dataDir + "Document.SetZoom_out.doc");
}
}