Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Nov 13, 2023 12:37 pm

I'm using PdfViewer 7.10.0.0 with VisualStudio. My question is how unload the PDF already loaded in the control (pdf read from memory stream)?
How can I remove the Open file Icon from toolbar?

Thanks
Giovanni

IQSMABIGIO
 
Posts: 1
Joined: Mon Nov 13, 2023 10:58 am

Tue Nov 14, 2023 8:48 am

Hi,

Thank you for your inquiry.
Are you using PdfViewer Control? If so, I suggest you use PdfDocumentViewer Control, due to the PdfViewer Control is an integral control, you can’t customize the internal logic, however, you can customize PdfDocumentViewer Control according to your requirements.
For your first question, I don't quite understand what you mean. Our product doesn’t have a method to directly unload PDF file that have already been loaded in the control, but you can customize a button to load a blank PDF file.
For the second question, you can achieve your needs without adding the open button during the process of customizing the PdfDocumentViewer control. Regarding how to use the PDFDocumentViewer control function, I have attached a Word file that records the implementation steps for your reference. If you have any issue just feel free to contact us.
Step.zip


Sincerely,
Ula
E-iceblue support team
User avatar

Ula.wang
 
Posts: 282
Joined: Mon Aug 07, 2023 1:38 am

Return to Spire.PDF

cron