Hello,
Sorry for the late reply.
Concerning your needs, you should use the pdfDocumentViewer rather than the pdfviewer. In pdfviewer, the functions have been packaged and users can only handle the document by the operation in the graphical interface, while for the pdfDocumentViewer, one can have the the custom designs.
Below are the answers to your questions:
##1.Fit the the window
- Code: Select all
Me.pdfDocumentViewer1.ZoomTo(ZoomMode.FitPage)
##2.Zoom
- Code: Select all
Me.pdfDocumentViewer1.ZoomTo("percentage you want")
##3.Move (I assume you want to move to a certain page, if not, please provide more details)
- Code: Select all
Me.pdfDocumentViewer1.GoToPage("targetPage")
As for the "code" you mentioned, sorry I'm a little confused, please specify it.
Besides, you can download the
Spire.PDFViewer Pack Version:2.12 and refer to the detailed demos in the package, and I believe this may help a lot.
Sincerely,
Jane
E-iceblue support team