HideToolbar not working!!

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

DynamicPDF Merger for .NET (v4) Forum

 Jan 25 2018 1:42 AM
All:

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.

Thanks
Tua
 Jan 26 2018 3:22 PM
Posted by a ceTe Software moderator
Hello,

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.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 10:55 AM.