We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The .Net pdfDocument.HideToolBar and pdfDocument.HideMenubar properties seems not get honored by Edge or Chrome browsers

Hi team,
I tried hiding the toolbar and menubar from the PDF viewers for a document (any document). I tried using the two .Net properties for this, pdfDocument.HideToolBar and pdfDocument.HideMenubar. These seems to be honored by Acrobat Reader, but whenever I open the document on either Chrome or Edge, the toolbar and menubar still shows.
By the way, I’m using Aspose.Pdf version 19.9.0

Any idea or work around to hide these?

@rreinoso

PDFs don’t have the power to control your browser. That could be a serious security issue. If you are able to create such a PDF file using Adobe Acrobat then I request you to share it for our investigations.