- VeryPDF Java PDF Reader is a Swing component that can display PDF documents and other formats, such as PDF, TXT, TIF, JPG, PNG, GIF, BMP, PBM, TGA, JBIG2, JPEG2000, MS Office document formats., etc., the PDF Viewer can be installed as an Applet, application or via Java Web Start, or embedded in a.
- PDF viewer in VB.Form (VB6) PDF viewer in VBForm (VB.NET 2013) Early-Late binding with Acrobat Reader: Sample projects for both VB 6.0 and VB.NET 2013 English.
With PDF viewer component, it's easy for the vb developers to embed an existing pdf files in a form then disable the print, save and copy functions.
At form load event the developers can use the LoadFile method to load pdf files from the hard drive or server and open in an area on the form. The PDF file can be read-only, full edited, or prohibited to save by different requirements. The developers can also change the pdf display options easily with the vb 6 component.
Click Here to Download PDF Viewer Component - Support vb6, vb.net project
Display PDF Files in VB 6 Form
ByteScout PDF Renderer SDK – VBScript and VB6 – Convert PDF To 1-bit BMP. ByteScout PDF Renderer SDK – VB.NET – Silent PDF Document Printing. ByteScout PDF Renderer SDK – VB.NET – Show Or Hide Text Or Vector Or Image Layers In PDF. ByteScout PDF Renderer SDK – VB.NET – Render Part of PDF Page.
In this part, we will show the detailed sample code on how to create and customize PDF document windows in VB 6 class. But before this, please make sure that you have embedded PDF Viewer Component into your created VB 6 desktop application.
If you haven't the pdfviewer.ocx file, you need to install the package firstly.
Start Visual Basic and create a new standard project. Form1 is created by default.
Right click on any of the tabs in your toolbox and click choose items.
In the pop up dialog, check the PDF Viewer Component.
Click the Ok button.
The PDF Viewer Component was added in the Toolbar window.
Switch to a VB 6 form, then add the component in it.
The component includes lots of methods, events and properties to customize the Adobe Reader window.
The developer can use the following code to open a pdf file in the Form_Load Event.
Private Sub OpenPDF_Click()
With CommonDialog1
.DefaultExt = 'pdf'
.Filter = 'PDF File Formats (*.pdf)|*.pdf|All Files (*.*) | *.* ||'
.FilterIndex = 1
End With
CommonDialog1.ShowOpen
PDFViewer1.LoadFile CommonDialog1.FileName
End Sub
To protect the Excel worksheet from modification by the end user, the developer needs to add the following code in the DocumentOpened event.
Private Sub EDOffice_DocumentOpened()
EDOffice1.ProtectDoc 1 ' XlProtectTypeNormal
End Sub
There are some wrapped excel automation methods available to create or modify Excel data.
bool ExcelAddWorkSheet(long Index);
bool ExcelDeleteWorkSheet(long Index);
bool ExcelActivateWorkSheet(long Index);
long ExcelGetWorkSheetCount();
bool ExcelSetCellValue(long Column, long Row, BSTR Value);
BSTR ExcelGetCellValue(long Column, long Row);
bool ExcelSetRowHeight(long Row, double Height);
bool ExcelSetColumnWidth(long Column, double Width);
afx_msg bool ExcelDeleteRow(long Row);
bool ExcelDeleteColumn(long Column);
bool ExcelInsertRow(long Row);
bool ExcelInsertColumn(long Column);
bool ExcelInsertPageBreakInRow(long Row);
bool ExcelInsertPageBreakInColumn(long Column);
bool ExcelCopyToClipboard();
bool ExcelPasteStringToWorksheet(BSTR bstText);
Disable Adobe Reader Edit Function from Visual Basic
In the code window for Form1, insert the following code:
Private Sub DisableAdobeReader_Click()
PDFViewer1.SetReadOnly
PDFViewer1.DisableHotKeyCopy
PDFViewer1.DisableHotKeyPrint
PDFViewer1.DisableHotKeySave
PDFViewer1.DisableHotKeySearch
PDFViewer1.DisableHotKeyShowBookMarks
PDFViewer1.DisableHotKeyShowThumnails
PDFViewer1.DisableHotKeyShowToolbars
End Sub
Vb6 Pdf Viewer Downloads
Press F5 to run the project. The pdf file will be open in the vb 6 window. The user can not changed or copy the pdf files.
With the PDF viewer component, you are not only able to view PDF documents, but also able to disable print, disable copy, disable edit and change the pdf window options.
Spire.PDFViewer is an easy-to-use and reliable .NET PDF Viewer component. With Spire.PDFViewer, developers can create any WinForms application to open, view and print PDF document in C# and Visual Basic on .NET(2.0, 3.5, 4.0,4.6 and 4.0 ClientProfile).
Open and View
Spire.PDFViewer for .NET can open and view PDF/A-1B, PDF/X1A and even encrypted document.
When viewing, developers can view with zoom in/out, page up/down, moving to the first/last page or fitting page/width. Also, hand tool is available.
Elements
Spire.PDFViewer for .NET supports kinds of PDF fonts, including TrueType, Type0, Type1, Type3, OpenType and CJK font. It also support hyperlinks, DeviceN color space and JPEG2000, DCT, CCITT Fax Image format in PDF.
Print
Spire.PDFViewer enables developers to print PDF document and supports page setup before printing, such as margins, page orientation, page size etc. Also, developers can choose specified one page, current page, mulitple pages or all pages to print.
PDF to Image
Spire.PDFViewer for .NET enables developers to save PDF pages(specified one, current page, mulitple pages, all pages) to image formats(.bmp, .png, .jpeg).
Release Notes
Spire.PDFViewer 6.6.0
Bug Fixes:
Fixes the issue that there were garbled characters after opening the PDF file. (SPIREPDFVIEWER-139)
Fixes the issue that the content was incorrect after opening the PDF file. (SPIREPDFVIEWER-230 SPIREPDFVIEWER-440 )
Fixes the issue it displayed a blank page after opening the PDF file. (SPIREPDFVIEWER-440)
Fixes the issue that the content was not displayed when zooming in to view the PDF. (SPIREPDFVIEWER-476)
Dependencies
This package has no dependencies.
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Vb6 Pdf Viewer
Version History
Version | Downloads | Last updated |
---|---|---|
6.6.0 | 207 | 6/10/2021 |
6.3.2 | 601 | 3/22/2021 |
6.1.1 | 487 | 1/26/2021 |
6.1.0 | 200 | 1/14/2021 |
5.11.2 | 802 | 11/13/2020 |
5.8.2 | 1,063 | 8/12/2020 |
5.7.2 | 433 | 7/6/2020 |
5.1.4 | 2,209 | 1/21/2020 |
5.1.0 | 279 | 1/15/2020 |
4.11.8 | 681 | 11/18/2019 |
4.9.5 | 616 | 9/18/2019 |
4.5.1 | 2,295 | 5/8/2019 |
4.2.2 | 1,137 | 2/14/2019 |
4.1.13 | 538 | 1/31/2019 |
4.1.5 | 879 | 1/19/2019 |
4.1.0 | 908 | 1/5/2019 |
3.12.6 | 1,777 | 12/19/2018 |
3.12.1 | 624 | 12/7/2018 |
3.6.3 | 2,125 | 6/28/2018 |
3.3.0 | 3,312 | 3/26/2018 |
3.2.0 | 783 | 2/9/2018 |
2.12.60 | 677 | 1/18/2018 |
2.12.57 | 726 | 12/29/2017 |
2.12.49 | 675 | 11/29/2017 |
2.12.44 | 588 | 11/17/2017 |
2.12.38 | 741 | 10/20/2017 |
2.12.34 | 1,758 | 9/26/2017 |
2.12.19 | 1,169 | 7/13/2017 |
2.12.16 | 654 | 7/10/2017 |