Free Support Forum -

Prevent default scaling of documents


I am using groupdocs viewer for .Net, version 17.2 and noticed that by default the html pages have an inline style applied( scale(1.294)). How do I prevent this and set the default scale to 1? If I override this using css, will it hamper the zoom functionality? On overriding this style, the documents are no longer center aligned. I am not setting the width & height of the viewer html div as they are based on screen resolution.

Hi Shashi,

Thanks for using GroupDocs.Viewer for .NET.

The scale factor in sample document viewer applications is handled at the front end level and it is not the part/feature of the back-end GroupDocs.Viewer for .NET API. The value for the scale varies from one document to another however, if you override the value in the CSS, it should not have any effect on the zooming feature. Furthermore, as the applications are open source, you can feel free to modify this feature as per your requirements.

In case of any confusion, please do let us know.

Warm Regards