VB.NET PDF: How to HTML5 PDF Viewer PDF Create PDF Export File & Page Process PDF Read PDF Write Form Process Document Protect Annotation & Drawing PDF Print WPF PDF Viewer Work with Other SDKs Barcode Read Barcode Create OCR Twain
Metadata: Edit, Delete Metadata
Home ›› XDoc.PDF ›› VB.NET PDF: Edit PDF Metadata

VB.NET PDF - Read and Write PDF Metadata in VB.NET

Enable VB.NET Users to Read, Write, Edit, Delete and Update PDF Document Metadata in Visual Basic .NET

Professional VB.NET PDF SDK for editing metadata in Visual Studio .NET

Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint

Varieties of functionalities to edit and update PDF metadata in both .NET WinForms and ASP.NET project

Read and view PDF metadata without any adobe viewer components in VB.NET

Add permanent metadata to PDF document in VB .NET framework program

Remove and delete metadata content from PDF file in Visual Basic .NET application

Search and extract existing PDF metadata based on certain key words

Batch processing PDF metadata in VB.NET class

Free VB.NET PDF document SDK library compatible with Windows operating system

Online sources codes easy to be integrated to VB.NET project

Metadata, known as data about meta, is often used to provide additional information for source PDF document file. For example, you can encode the author information or PDF document publication date or copyright into the PDF document metadata.

RasterEdge VB.NET PDF document metadata processing control SDK is a professional and standalone VB.NET solution, which is designed to provide easy to use APIs for programmers to read, search, add, delete and edit PDF document metadata in VB.NET application.

DLLs: Read and Write PDF Metadata in VB.NET

In order to run the sample code, the following steps would be necessary.

Add necessary references:









Use corresponding namespaces;

  using RasterEdge.Imaging.Basic;

  using RasterEdge.XDoc.PDF;

How to Retrieve PDF Document Metadata in VB.NET

Please copy demo code below to your VB.NET application to retrieve PDF document metadata.

' Retrieve PDF document metadata.
Dim inputFilePath As String = Program.RootPath + "" + "2.pdf"
Dim doc As PDFDocument = New PDFDocument(inputFilePath)
Dim metadata As PDFMetadata = doc.GetDescription()
Console.WriteLine("Title:         {0}", metadata.Title)
Console.WriteLine("Author:        {0}", metadata.Author)
Console.WriteLine("Subject:       {0}", metadata.Subject)
Console.WriteLine("Keywords:      {0}", metadata.Keywords)
Console.WriteLine("Creator:       {0}", metadata.Creator)
Console.WriteLine("Producer:      {0}", metadata.Producer)
Console.WriteLine("Create Date:   {0}", metadata.CreatedDate.ToString())
Console.WriteLine("Modified Date: {0}", metadata.ModifiedDate.ToString())

How to Update PDF Document Metadata in VB.NET

This demo code tells VB.NET users how to edit and update your PDF document metadata.

' Update PDF document metadata.
Dim metadata As PDFMetadata = New PDFMetadata()
metadata.Title = "Title"
metadata.Author = "Qi"
metadata.Subject = "None"
metadata.Keywords = "University, Public, etc."
metadata.Creator = "MS Office Word"
metadata.Producer = "RE"
metadata.CreatedDate = New DateTime(2014, 11, 21, 10, 45, 12)
metadata.ModifiedDate = New DateTime(2015, 11, 21, 10, 45, 12)

Dim inputFilePath As String = Program.RootPath + "\\" + "1.pdf"
Dim outputFilePath As String = Program.RootPath + "\\" + "1_new.pdf"
Dim doc As PDFDocument = New PDFDocument(inputFilePath)