Hi Kunal,
I would like to update you that Aspose.Pdf.Kit allows you to show or hide some of the panels using
PdfContentEditor and
ViewerPreference classes. These are the only panels which are allowed by PDF specifications; other elements, which are not allowed according to the specification can't be provided in Aspose.Pdf.Kit.
Please see an example below:
//creat PdfContentEditor and bind pdf file
Aspose.Pdf.Kit.PdfContentEditor editor = new Aspose.Pdf.Kit.PdfContentEditor();
editor.BindPdf("input.pdf");
//show pages panel
editor.ChangeViewerPreference(ViewerPreference.PageModeUseThumbs);
//show optional content panel
editor.ChangeViewerPreference(ViewerPreference.PageModeUseOC);
//show document outlines panel
editor.ChangeViewerPreference(ViewerPreference.PageModeUseOutlines);
//show attachment panel
editor.ChangeViewerPreference(ViewerPreference.PageModeUseAttachment);
editor.Save("output.pdf");
You can also find all other possible flags in
ViewerPreference class. Please see the available options in detail to find if it satisfy your requirement.
If you have any further questions, please do let us know.
Regards,
Shahzad Latif - [
Follow me on Twitter!]
Support Developer/Developer Evangelist
Aspose Sialkot Team
Aspose - Your File Format Experts
Keep in touch! We're on
Twitter and
Facebook