PDF Add-on can be worked with RasterEdge .NET Imaging SDK for accurate PDF reading, PDF merging and splitting, PDF modification, PDF rasterization...
- Scan to searchable PDF
- Support for rasterizing PDF files
- Convert PDF Documents into any supported DotImage image format
- Add, Extract Fonts: Type1, TrueType, Type0, Type3
- Add, Extract, Replace, Optimize, Remove Bitmaps
- Save to the PDF v1.0 file formats
- Save to the PDF/A format
- More image PDF Reading functions
PDF Reading
Here is a detailed VB.NET sample for PDF reading and processing with RasterEdge .NET Imaging SDK and PDF Reader. (For C#.NET developers, please go to
PDF Reading for C#.NET. Want to view Image and document in Winforms or Web applications, please go to
Read PDF in Winforms and
Web Document Image PDF Reading.)
- Start Visual Studio .NET (2005 or later version);
- Begin a new project with programming language - VB.NET;
- Add RasterEdge.DotNetImaging.dll & RasterEdge.DotNetImaging.Pdf.dll to your VB.NET applications;
- Add the appropriate Imports directive:
Imports System.IO
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.Pdf
Load a PDF
You may load a PDF from file, IStream and Stream with following VB.NET codes:
Public Function LoadFromFile(ByVal FilePath As String, ByVal LoadInMemory As Boolean) As RasterEdgeImageStatus
Public Function LoadFromIStream(ByVal Stream As IStream) As RasterEdgeImageStatus
Public Function LoadFromIStream(ByVal Stream As Stream) As RasterEdgeImageStatus
Add a New PDF
If you want to add PDF Readings programmatically, see following VB.NET codes:
Public Function NewPDF() As RasterEdgeImageStatus
Rasterization
Rendering PDF pages can be easily achieved, copy those following VB.NET codes to begin your rasterization journey:
Public Function RenderPageToGdPictureImage(ByVal DPI As Single, ByVal RenderFormFields As Boolean) As Integer
Save a PDF
You may save a PDF to file and Stream with following VB.NET codes:
Public Function SaveToFileInc(ByVal FilePath As String) As RasterEdgeImageStatus
Public Function SaveToStream(ByVal Stream As Stream) As RasterEdgeImageStatus
Print a PDF
The following code shows how to print pdf:
Text Extraction
If you want to extract text form PDF, copy those following VB.NET codes:
'Returns the text of the current page of the PDF.
Public Function GetPageText() As String
'Returns the text of the current page of the PDF within a specific rectangle.
Public Function GetPageTextArea(ByVal Left As Single, ByVal Top As Single, ByVal Width As Single, ByVal Height As Single)
As String
'searches the current page page of the PDF for an occurrence of a given text string and returns its bounding box.
Public Function SearchText(ByVal Text As String, ByVal Occurrence As Integer, ByVal CaseSensitive As Boolean, ByVal
WholeWords As Boolean,
ByRef Left As Single, ByRef Top As Single, ByRef Width As Single, ByRef Height As Single) As Boolean
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!
Want to install Imaging SDK in Winforms or Web applications, please go to
Use Imaging SDK in Winforms and
Web Document Image Viewer.