In a document editor is it possible to control the zoom state of the displayed document. The closest I have found is on the created event to set:
EditorContainer.DocumentEditor.ZoomFactor = 0.30;
Ther are 2 problems with this:
1) It tells me that that this property should not be set outside of the component (it still works)
2) It does not allow me to set to "Fit One Page" or "Fit Page Width" as can be done through the UI. This is important because the ZoomFactor will depend on the size if the device being used, i.e. if viewed on mobile (Maui).
DSDhanush Sekar Syncfusion Team December 22, 2022 03:33 AM UTC
You can scale the contents in Document Editor ranging from 10% to 500% of the actual size. You can achieve this using mouse or touch interactions. You can also use ‘ZoomFactor’ property of Document Editor instance. The value can be specified in a range from 0.1 to 5.
Apart from specifying the zoom factor as a value, the Document Editor provides the option to specify page fit options such as fit to full page or fit to page width. You can set this option using ‘FItPageAsync’ method of the Document Editor instance.