Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Merger for .NET (v4.x)  /  HideToolbar not working!!

Forum Thread - HideToolbar not working!!

 Jan 25 2018 1:42 AM

Hello everyone. I want to hide the toolbar by ViewerPreferences class and set its HideToolbar as command below.

Document document = new Document();
document.Pages.Add( new Page( PageSize.Letter ) );
 document.ViewerPreferences.HideToolbar = true;

But command is not working , the toolbar  still showing when open pdf file.

 Jan 26 2018 3:22 PM
Posted by a ceTe Software moderator

We have tested this using v4 DynamicPDF dll. When the resulting PDF was viewed in Adobe Reader the tool bar was hidden. If you are not using Adobe Reader to view the PDF, try opening the PDF in Adobe Reader and see if the tool bar is hidden.

Please note that the DynamicPDF API encodes the ViewerPreferences inside the PDF. When a viewer opens the PDF it reads the viewer preferences within that PDF and acts accordingly. However, some viewers may not follow the preferences encoded within the document in which case it is an issue with the viewer.

ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 7:00 AM.