XDoc.PDF
Features
Tech Specs
How-to VB.NET
Pricing
How to Start Convert PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

VB.NET PDF: Get Started with .NET PDF Library Using VB


Help VB.NET User Have Quick Evaluation of .NET PDF SDK with Simple Sample Code for Creating Blank Page to PDF in VB.NET





Look for HTML5 PDF Editor?

EdgePDF: ASP.NET PDF Editor is the best HTML5 PDF Editor and ASP.NET PDF Viewer based on XDoc.PDF, JQuery, HTML5. It supports ASP.NET MVC and WebForms projects.


As a leading professional third-party SDK supplier in the field of image and document management, RasterEdge has always been devoted to providing various effective and fully-functional imaging solutions for developers who are working on different .NET developing applications.


Using this PDF SDK for VB.NET, you can easily and quickly complete PDF document creating and loading, PDF document conversion, PDF content redaction, PDF document annotation, PDF document protection and more in any type of a 32-bit or 64-bit .NET application, including ASP.NET web service and Windows Forms for any .NET Framework version from 2.0 to 4.6...


This page is designed to help users to get started with our standalone application RasterEdge XDoc.PDF SDK for VB.NET in high efficiency after you have finished downloading and installing RasterEdge .NET Imaging SDK on your PC. It will start from how to create a VB.NET console application, and create a blank page in PDF document.




Create a VB.NET Console Application



Open Visual Studio and click "New" from toolbar. Note, Visual Studio 2005 and above versions are available;


Choose "VB Language" and "Console Application" respectively to create a project.




How to Create a Blank Page in PDF in VB.NET



Are you looking for a quite easy PDF creating and generating tool to allow for creating new PDF document with blank page? If so, you will work out this target just by using RasterEdge PDF document creating component within VB web or Windows application.


Add necessary XDoc.PDF DLL libraries into your created VB.NET application as references.


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.PDF.dll


Use namespace "RasterEdge.Imaging.Basic";


Use namespace "RasterEdge.XDoc.PDF";


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.



Copy of the following VB.NET sample code to your application.




Dim outputFile As String = "C:\output.pdf"

' Create a new PDF Document object with 2 blank pages
Dim doc As PDFDocument = PDFDocument.Create(2)

' Save the new created PDF document into file
doc.Save(outputFile)