Cross Platform PDF SDK

  • Rapid PDF Output (direct from HTML)

  • Designer Mode (GUI for easy layout options)

  • Create PDFs from scratch in code (80 Page Elements)

  • Merge, Form Fill, Text Extraction, Form Flattening

  • *PDF to Image, PDFs to a Printer, PDF Viewing (*Coming Soon)

  • Deploy to Xamarin (iOS/Android), UWP and .NET (Core/Framework)


CoreSuite .NET


Select your edition below
For a full list of features click here.
RAD
Edition

  • Rapid PDFs using built-in Designer
  • Rapid PDFs using HTML
  • Simple PDF Merging
-
-
  • $400/yr
  • With Standard Support
  • Per Developer
  • Royalty Free Distribution
  • Upgrades Included
  • Email (<24 hour Response)
Or
  • $550/yr
  • With Priority Support
  • Per Developer
  • Royalty Free Distribution
  • Upgrades Included
  • Email (<2 hour Response)
  • Telephone Support
PRO
Edition

  • Rapid PDFs using built-in Designer
  • Rapid PDFs using HTML
  • Simple PDF Merging
  • Create PDFs from Scratch
  • (Over 80 Page Elements)
  • Form Filling
  • Form Flattening
  • Text Extraction
-
  • $800/yr
  • With Standard Support
  • Per Developer
  • Royalty Free Distribution
  • Upgrades Included
  • Email (<24 hour Response)
Or
  • $1,000/yr
  • With Priority Support
  • Per Developer
  • Royalty Free Distribution
  • Upgrades Included
  • Email (<2 hour Response)
  • Telephone Support
RND
Edition

-
-
  • PDF-to-Image Rasterization
  • PDF to Printer (.NET)
  • PDF Viewing (.NET)
Coming Soon
ULT
Edition

  • Rapid PDFs using built-in Designer
  • Rapid PDFs using HTML
  • Simple PDF Merging
  • Create PDFs from Scratch
  • (Over 80 Page Elements)
  • Form Filling
  • Form Flattening
  • Text Extraction
  • PDF-to-Image Rasterization
  • PDF to Printer (.NET)
  • PDF Viewing (.NET)
Coming Soon


Examples
Refer to our Help Library and API Reference for more programming details.

PDF using Template

The following C# and VB.NET code demonstrates how to generate a PDF report using a predefined template created in our Designer GUI (this is a DLEX file that defines the Header, Footer and Body elements and gets fed the data at runtime).

// Create the document's layout from a DLEX template
DocumentLayout layoutReport = new DocumentLayout(@"C:\SimpleReport.dlex");
 
// Specify the data that needs to be displayed on the report.
NameValueLayoutData layoutData = new NameValueLayoutData();
layoutData.Add("TestValue", "Northwind Product List");
layoutData.Add("Products", SimpleReportExampleData.Products);
 
// Create the document from report layout
Document document = layoutReport.Layout();
 
// Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™";
document.Title = "Simple Report Example";
 
// Output the PDF document to a file
document.Draw(@"C:\MyDocument.pdf");
' Create the document's layout from a DLEX template
Dim layoutReport As DocumentLayout = New DocumentLayout("C:\SimpleReport.dlex")
 
' Specify the data that needs to be displayed on the report.
Dim layoutData As NameValueLayoutData = new NameValueLayoutData()
layoutData.Add("TestValue", "Northwind Product List")
layoutData.Add("Products", SimpleReportExampleData.Products)
 
' Create the document from report layout
Dim document As Document = layoutReport.Layout()
 
' Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™"
document.Title = "Simple Report Example"
 
' Output the PDF document to a file
document.Draw("C:\MyDocument.pdf")

PDF using HTML

The following C# and VB.NET code shows how to generate a PDF from HTML file.

// Create HtmlLayout with html input
Uri htmlSource = new Uri(@"C:\Products.html");
PageInfo pageInfo = new PageInfo(PageSize.Letter, PageOrientation.Portrait);
HtmlLayout htmlLayout = new HtmlLayout(htmlSource, pageInfo);
 
// Specify output PDF layout properties.
htmlLayout.Header.Center.Text = "DynamicPDF ToolkitOne HTML Layout Example";
htmlLayout.Header.Center.ShowOnFirstPage = false;
htmlLayout.Footer.Center.Text = "Page %%CP%% of %%TP%%";
htmlLayout.Footer.Center.HasPageNumbers = true;
 
// Create the document from the html
Document document = htmlLayout.Layout();
 
// Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™";
document.Title = "HTML Layout Example";
 
// Output the PDF to a file
document.Draw(@"C:\MyDocument.pdf");
' Create HtmlLayout with html input
Dim htmlSource As Uri = New Uri("C:\Products.html")
Dim pageInfo As PageInfo = New PageInfo(PageSize.Letter, PageOrientation.Portrait)
Dim htmlLayout As HtmlLayout = New HtmlLayout(htmlSource, pageInfo)
 
' Specify output PDF layout properties.
htmlLayout.Header.Center.Text = "DynamicPDF ToolkitOne HTML Layout Example"
htmlLayout.Header.Center.ShowOnFirstPage = False
htmlLayout.Footer.Center.Text = "Page %%CP%% of %%TP%%"
htmlLayout.Footer.Center.HasPageNumbers = True
 
' Create the document from the html
Dim document As Document = htmlLayout.Layout()
 
' Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™"
document.Title = "HTML Layout Example"
 
' Output the PDF to a file
document.Draw("C:\MyDocument.pdf")

Merge

The following C# and VB.NET code shows how to merge two PDFs together.

// Create a Document object by merging two PDFs.
Document document = Document.Merge(@"C:\Merge A.pdf", @"C:\Merge B.pdf");
 
// Save the merged PDF.
document.Draw(@"C:\Merged Ouput.pdf");
' Create a Document object by merging two PDFs.
Dim MyDocument As Document = Document.Merge("C:\MerA.pdf", "C:\MerB.pdf")
 
' Save the merged PDF.
MyDocument.Draw("C:\Merged Output.pdf")

Append

C# and VB.NET code for appending multiple PDF files together.

// Create a Document object with the first PDF.
Document document = new Document(@"C:\DocumentA.pdf");
 
// Append only the first two pages of second PDF.
document.Append(@"C:\Append DocB.pdf", 1, 2);
 
// Append all pages in third PDF.
document.Append(@"C:\Append DocC.pdf");
 
// Save the final PDF.
document.Draw(@"C:\Appended Output.pdf");
' Create a Document object with the first PDF.
Dim MyDocument As Document = New Document("C:\DocumentA.pdf")
 
' Append only the first two pages of second PDF.
MyDocument.Append("C:\Append DocB.pdf", 1, 2)
 
' Append all pages in third PDF.
MyDocument.Append("C:\Append DocC.pdf")
 
' Save the final PDF.
MyDocument.Draw("C:\Appended Ouput.pdf")

Split a PDF

In this example we will take the original PDF and create a new PDF file for each page of the original PDF. The original PDF document is not modified.

// Open the PDF using PdfDocument class.
InputPdf pdfToSplit = new InputPdf(@"C:\pdfToSplit.pdf");
 
// Loop through the pages and save each individual page separately.
for (int i = 1; i <= pdfToSplit.Pages.Count; i++ )
{
Document document = new Document(pdfToSplit, i, 1);
document.Draw(@"C:\pdf_" + i.ToString() + ".pdf");
}
' Open the PDF using PdfDocument class.
Dim pdfToSplit As InputPdf = new InputPdf("C:\pdfToSplit.pdf")
 
' Loop through the pages and save each individual page separately.
For i As Integer =1 to pdfToSplit.Pages.Count
Dim document As Document = new Document(pdfToSplit, i, 1)
document.Draw("C:\pdf_" & i.ToString() & ".pdf")
Next

Bookmarks

The following C# and VB.NET code shows how to generate a very simple PDF Report with bookmarks.

// Create a PDF Document
Document document = new Document();
 
// Create three page objects
Page page1 = new Page(PageSize.Letter);
Page page2 = new Page(PageSize.Letter);
Page page3 = new Page(PageSize.Letter);
 
// Add a top level Outline
Outline parentOutline = document.Outlines.Add("Parent Outline");
 
// Add a top level bookmark
page1.Elements.Add(new Bookmark("Top level bookmark to page 1", 0, 0));
 
// Add child bookmarks
page1.Elements.Add(new Bookmark("Bookmark to page 1", 0, 0, parentOutline));
page2.Elements.Add(new Bookmark("Bookmark to page 2", 0, 0, parentOutline));
page3.Elements.Add(new Bookmark("Bookmark to page 3", 0, 0, parentOutline));
 
// Add the three pages to the document
document.Pages.Add(page1);
document.Pages.Add(page2);
document.Pages.Add(page3);
 
// Save the PDF document
document.Draw(@"C:\MyDocument.pdf");
' Create a PDF Document
Dim MyDocument As Document = New Document
 
' Create three page objects
Dim MyPage1 As Page = New Page(PageSize.Letter)
Dim MyPage2 As Page = New Page(PageSize.Letter)
Dim MyPage3 As Page = New Page(PageSize.Letter)
 
' Add a top level Outline
Dim MyParentOutline As Outline = MyDocument.Outlines.Add("Parent Outline")
 
' Add a top level bookmark
MyPage1.Elements.Add(New Bookmark("Top level bookmark to page 1", 0, 0))
 
' Add child bookmarks
MyPage1.Elements.Add(New Bookmark("Bookmark to page 1", 0, 0, MyParentOutline))
MyPage2.Elements.Add(New Bookmark("Bookmark to page 2", 0, 0, MyParentOutline))
MyPage3.Elements.Add(New Bookmark("Bookmark to page 3", 0, 0, MyParentOutline))
 
' Add the three pages to the document
MyDocument.Pages.Add(MyPage1)
MyDocument.Pages.Add(MyPage2)
MyDocument.Pages.Add(MyPage3)
 
' Save the PDF document
MyDocument.Draw("C:\MyDocument.pdf")

Image to PDF

The following C# and VB.NET code shows how to generate a very simple PDF document with an image within your .NET application.

// Create a PDF Document
Document document = new Document();
 
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
 
// Create an image
Image image = new Image(@"C:\MyImage.jpg", 0, 0);
 
// Add the image to the page
page.Elements.Add(image);
 
// Save the PDF
document.Draw(@"C:\MyDocument.pdf");
' Create a PDF Document
Dim MyDocument As Document = New Document
 
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
 
' Create an image
Dim MyImage As Image = New Image("C:\MyImage.jpg", 0, 0)
 
' Add the image to the page
MyPage.Elements.Add(MyImage)
 
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
Refer to our Help Library and API Reference for more programming details.

PDF using Template

The following C# and VB.NET code demonstrates how to generate a PDF report using a predefined template created in our Designer GUI (this is a DLEX file that defines the Header, Footer and Body elements and gets fed the data at runtime).

// Create the document's layout from a DLEX template
DocumentLayout layoutReport = new DocumentLayout(@"C:\SimpleReport.dlex");
 
// Specify the data that needs to be displayed on the report.
NameValueLayoutData layoutData = new NameValueLayoutData();
layoutData.Add("TestValue", "Northwind Product List");
layoutData.Add("Products", SimpleReportExampleData.Products);
 
// Create the document from report layout
Document document = layoutReport.Layout();
 
// Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™";
document.Title = "Simple Report Example";
 
// Output the PDF document to a file
document.Draw(@"C:\MyDocument.pdf");
' Create the document's layout from a DLEX template
Dim layoutReport As DocumentLayout = New DocumentLayout("C:\SimpleReport.dlex")
 
' Specify the data that needs to be displayed on the report.
Dim layoutData As NameValueLayoutData = new NameValueLayoutData()
layoutData.Add("TestValue", "Northwind Product List")
layoutData.Add("Products", SimpleReportExampleData.Products)
 
' Create the document from report layout
Dim document As Document = layoutReport.Layout()
 
' Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™"
document.Title = "Simple Report Example"
 
' Output the PDF document to a file
document.Draw("C:\MyDocument.pdf")

PDF using HTML

The following C# and VB.NET code shows how to generate a PDF from HTML file.

// Create HtmlLayout with html input
Uri htmlSource = new Uri(@"C:\Products.html");
PageInfo pageInfo = new PageInfo(PageSize.Letter, PageOrientation.Portrait);
HtmlLayout htmlLayout = new HtmlLayout(htmlSource, pageInfo);
 
// Specify output PDF layout properties.
htmlLayout.Header.Center.Text = "DynamicPDF ToolkitOne HTML Layout Example";
htmlLayout.Header.Center.ShowOnFirstPage = false;
htmlLayout.Footer.Center.Text = "Page %%CP%% of %%TP%%";
htmlLayout.Footer.Center.HasPageNumbers = true;
 
// Create the document from the html
Document document = htmlLayout.Layout();
 
// Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™";
document.Title = "HTML Layout Example";
 
// Output the PDF to a file
document.Draw(@"C:\MyDocument.pdf");
' Create HtmlLayout with html input
Dim htmlSource As Uri = New Uri("C:\Products.html")
Dim pageInfo As PageInfo = New PageInfo(PageSize.Letter, PageOrientation.Portrait)
Dim htmlLayout As HtmlLayout = New HtmlLayout(htmlSource, pageInfo)
 
' Specify output PDF layout properties.
htmlLayout.Header.Center.Text = "DynamicPDF ToolkitOne HTML Layout Example"
htmlLayout.Header.Center.ShowOnFirstPage = False
htmlLayout.Footer.Center.Text = "Page %%CP%% of %%TP%%"
htmlLayout.Footer.Center.HasPageNumbers = True
 
' Create the document from the html
Dim document As Document = htmlLayout.Layout()
 
' Set PDF document properties
document.Author = "DynamicPDF ToolkitOne™"
document.Title = "HTML Layout Example"
 
' Output the PDF to a file
document.Draw("C:\MyDocument.pdf")

Create a PDF

The following C# and VB.NET code shows how to generate a very simple PDF document programmatically from within your .NET application.

// Create a document object
Document document = new Document();
 
// Create and add a page to the document
Page page = new Page(PageSize.Letter, PageOrientation.Portrait);
document.Pages.Add(page);
 
// Add a label to the page
page.Elements.Add(new Label("My PDF Document", 0, 0, 512, 40, Font.Helvetica));
 
// Save the PDF
document.Draw(@"C:\MyDocument.pdf");
' Create a document object
Dim MyDocument As Document = New Document
 
' Create and add a page to the document
Dim MyPage As Page = New Page(PageSize.Letter, PageOrientation.Portrait)
MyDocument.Pages.Add(MyPage)
 
' Add a label to the page
MyPage.Elements.Add(New Label("My PDF Document", 0, 0, 512, 40, Font.Helvetica))
 
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")

Merge

The following C# and VB.NET code shows how to merge two PDFs together.

// Create a Document object by merging two PDFs.
Document document = Document.Merge(@"C:\Merge A.pdf", @"C:\Merge B.pdf");
 
// Save the merged PDF.
document.Draw(@"C:\Merged Ouput.pdf");
' Create a Document object by merging two PDFs.
Dim MyDocument As Document = Document.Merge("C:\MerA.pdf", "C:\MerB.pdf")
 
' Save the merged PDF.
MyDocument.Draw("C:\Merged Output.pdf")

Form Fill

C# and VB.NET code for filling in existing form fields within a PDF document. Values can come directly from a database or be collected from the user. But filling in the form fields will preserve the formatting of the fields that exist on the original PDF.

// Open the PDF form using Document class.
Document document = new Document(@"C:\Fill Form Fields.pdf");
 
// Set the field values.
document.Form.Fields["TextBox1"].Value = "My Text"; // TextBox field
document.Form.Fields["CheckBox1"].Value = "Yes"; // CheckBox field
document.Form.Fields["ComboBox1"].Value = "Item4"; // ComboBox field
document.Form.Fields["RadioButton1"].Value = "Item2"; // RadioButton field
 
// Save the PDF.
document.Draw(@"C:\Filled Output.pdf");
' Open the PDF form using Document class.
Dim MyDocument As Document = New Document("C:\Fill Form Fields.pdf")
 
' Set the field values.
MyDocument.Form.Fields("TextBox1").Value = "My Text" ' TextBox field
MyDocument.Form.Fields("CheckBox1").Value = "Yes" ' CheckBox field
MyDocument.Form.Fields("ComboBox1").Value = "Item4" ' ComboBox field
MyDocument.Form.Fields("RadioButton1").Value = "Item2" ' RadioButton field
 
' Save the PDF.
MyDocument.Draw("C:\Filled Output.pdf")

Encrypt

C# and VB.NET code to encrypt a PDF with AES256 encryption algorithm.

// Create a Document object with the PDF.
Document document = new Document(@"C:\Needs Security.pdf");
 
// Create a AES 256 security object and assign it to the document.
Aes256Security security = Aes256Security("owner","user");
security.AllowCopy = false;
document.Security = security;
 
// Save the secured PDF.
document.Draw(@"C:\Secure Output.pdf");
' Create a Document object with the PDF.
Dim MyDocument As Document = New Document("C:\Needs Security.pdf")
 
' Create a AES 256 security object and assign it to the document.
Dim security As Aes256Security = New Aes256Security("owner", "user")
security.AllowCopy = false
MyDocument.Security = security
 
' Save the secured PDF.
MyDocument.Draw("C:\Secure Output.pdf")

Append

C# and VB.NET code for appending multiple PDF files together.

// Create a Document object with the first PDF.
Document document = new Document(@"C:\DocumentA.pdf");
 
// Append only the first two pages of second PDF.
document.Append(@"C:\Append DocB.pdf", 1, 2);
 
// Append all pages in third PDF.
document.Append(@"C:\Append DocC.pdf");
 
// Save the final PDF.
document.Draw(@"C:\Appended Output.pdf");
' Create a Document object with the first PDF.
Dim MyDocument As Document = New Document("C:\DocumentA.pdf")
 
' Append only the first two pages of second PDF.
MyDocument.Append("C:\Append DocB.pdf", 1, 2)
 
' Append all pages in third PDF.
MyDocument.Append("C:\Append DocC.pdf")
 
' Save the final PDF.
MyDocument.Draw("C:\Appended Ouput.pdf")

Split a PDF

In this example we will take the original PDF and create a new PDF file for each page of the original PDF. The original PDF document is not modified.

// Open the PDF using PdfDocument class.
InputPdf pdfToSplit = new InputPdf(@"C:\pdfToSplit.pdf");
 
// Loop through the pages and save each individual page separately.
for (int i = 1; i <= pdfToSplit.Pages.Count; i++ )
{
Document document = new Document(pdfToSplit, i, 1);
document.Draw(@"C:\pdf_" + i.ToString() + ".pdf");
}
' Open the PDF using PdfDocument class.
Dim pdfToSplit As InputPdf = new InputPdf("C:\pdfToSplit.pdf")
 
' Loop through the pages and save each individual page separately.
For i As Integer =1 to pdfToSplit.Pages.Count
Dim document As Document = new Document(pdfToSplit, i, 1)
document.Draw("C:\pdf_" & i.ToString() & ".pdf")
Next

Bookmarks

The following C# and VB.NET code shows how to generate a very simple PDF Report with bookmarks.

// Create a PDF Document
Document document = new Document();
 
// Create three page objects
Page page1 = new Page(PageSize.Letter);
Page page2 = new Page(PageSize.Letter);
Page page3 = new Page(PageSize.Letter);
 
// Add a top level Outline
Outline parentOutline = document.Outlines.Add("Parent Outline");
 
// Add a top level bookmark
page1.Elements.Add(new Bookmark("Top level bookmark to page 1", 0, 0));
 
// Add child bookmarks
page1.Elements.Add(new Bookmark("Bookmark to page 1", 0, 0, parentOutline));
page2.Elements.Add(new Bookmark("Bookmark to page 2", 0, 0, parentOutline));
page3.Elements.Add(new Bookmark("Bookmark to page 3", 0, 0, parentOutline));
 
// Add the three pages to the document
document.Pages.Add(page1);
document.Pages.Add(page2);
document.Pages.Add(page3);
 
// Save the PDF document
document.Draw(@"C:\MyDocument.pdf");
' Create a PDF Document
Dim MyDocument As Document = New Document
 
' Create three page objects
Dim MyPage1 As Page = New Page(PageSize.Letter)
Dim MyPage2 As Page = New Page(PageSize.Letter)
Dim MyPage3 As Page = New Page(PageSize.Letter)
 
' Add a top level Outline
Dim MyParentOutline As Outline = MyDocument.Outlines.Add("Parent Outline")
 
' Add a top level bookmark
MyPage1.Elements.Add(New Bookmark("Top level bookmark to page 1", 0, 0))
 
' Add child bookmarks
MyPage1.Elements.Add(New Bookmark("Bookmark to page 1", 0, 0, MyParentOutline))
MyPage2.Elements.Add(New Bookmark("Bookmark to page 2", 0, 0, MyParentOutline))
MyPage3.Elements.Add(New Bookmark("Bookmark to page 3", 0, 0, MyParentOutline))
 
' Add the three pages to the document
MyDocument.Pages.Add(MyPage1)
MyDocument.Pages.Add(MyPage2)
MyDocument.Pages.Add(MyPage3)
 
' Save the PDF document
MyDocument.Draw("C:\MyDocument.pdf")

Image to PDF

The following C# and VB.NET code shows how to generate a very simple PDF document with an image within your .NET application.

// Create a PDF Document
Document document = new Document();
 
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
 
// Create an image
Image image = new Image(@"C:\MyImage.jpg", 0, 0);
 
// Add the image to the page
page.Elements.Add(image);
 
// Save the PDF
document.Draw(@"C:\MyDocument.pdf");
' Create a PDF Document
Dim MyDocument As Document = New Document
 
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
 
' Create an image
Dim MyImage As Image = New Image("C:\MyImage.jpg", 0, 0)
 
' Add the image to the page
MyPage.Elements.Add(MyImage)
 
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")

Barcodes

The following C# and VB.NET code shows how to generate a PDF document with different barcodes within your .NET application.

// Create a PDF Document
Document document = new Document();
 
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
 
// Create a Code128 barcode
Code128 code128barCode = new Code128("Code 128 Barcode.", 100, 50, 48, 0.75F);
// Add the barcode to the page
page.Elements.Add(code128barCode);
 
// Create a data matrix barcode
DataMatrixBarcode dataMatrixBarcode = new DataMatrixBarcode("DataMatrix barcode", 100, 120);
// Add the data matrix barcode to the page
page.Elements.Add(dataMatrixBarcode);
 
// Create a Pdf417 barcode
Pdf417 pdf417 = new Pdf417("Pdf417 barcode", 100.0f, 200.0f, 2, 2.0f);
// Add the Pdf417 barcode to the page
page.Elements.Add(pdf417);
 
// Create a QR code
QrCode qrCode = new QrCode("QR code sample.", 100, 300);
// Add the QR code to the page
page.Elements.Add(qrCode);
 
// Save the PDF
document.Draw(@"C:\MyDocument.pdf");
' Create a PDF Document
Dim MyDocument As Document = New Document
 
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
 
' Create a barcode
Dim code128barCode As Code128 = New Code128("Code 128 Barcode.", 100, 50, 48, 0.75F)
' Add the barcode to the page
MyPage.Elements.Add(code128barCode)
 
' Create a data matrix barcode
Dim dataMatrixBarcode As DataMatrixBarcode = New DataMatrixBarcode("DataMatrix Barcode", 100, 120)
' Add the data matrix barcode to the page
MyPage.Elements.Add(dataMatrixBarcode)
 
' Create a Pdf417 barcode
Dim pdf417 As Pdf417 = New Pdf417("Pdf417 barcode", 100.0F, 200.0F, 2, 2.0F)
' Add the Pdf417 barcode to the page
MyPage.Elements.Add(pdf417)
 
' Create a QR Code
Dim qrCode As QrCode = New QrCode("QR code sample.", 100, 300)
' Add the QR code to the page
MyPage.Elements.Add(qrCode)
 
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")

Watermark a PDF

C# and VB.NET code for adding an image watermark onto every page of a PDF (text watermarks are also easy to do). With Even/Odd Templates, Section Templates or individual page placement, Merger provides developers extreme control of watermark placement.

// Open the PDF form using Document class.
Document document = new Document(@"C:\Doc Needs Watermark.pdf");
 
// Create a watermark template with an image.
Image image = new Image(@"C:\Watermark.png", 0, 0);
Template watermarkTemplate = new Template();
watermarkTemplate.Elements.Add(image);
 
// Apply the template to the PDF.
document.Template = watermarkTemplate;
 
// Save the watermarked PDF.
document.Draw(@"C:\Watermarked Output.pdf");
' Open the PDF form using Document class.
Dim MyDocument As Document = New Document("C:\Doc Needs Watermark.pdf")
 
' Create a watermark template with an image.
Dim MyImage As Image = New Image("C:\Watermark.png"), 0, 0)
Dim MyWatermarkTemplate As Template = New Template
MyWatermarkTemplate.Elements.Add(MyImage)
 
' Apply the template to the PDF.
MyDocument.Template = MyWatermarkTemplate
 
' Save the watermarked PDF.
MyDocument.Draw("C:\Watermarked Output.pdf")
Coming Soon
Coming Soon
Release Notes
           
   Version 18 (Latest Build v18.0.0.36358)
   New Features
  • Create PDFs with Layout Engine and Designer (v18.0.0)
  • Create PDFs from HTML (v18.0.0)
  • Merge PDF Documents (v18.0.0)
  • Append PDF Documents to Current Document (v18.0.0)
  • Import a Single Page From a PDF Document (v18.0.0)
  • Linearize PDF Document (Fast Web View) (v18.0.0)
  • Add New Pages Using ToolkitOne (v18.0.0)
  • Place New Content on Imported PDF Pages (v18.0.0)
  • Reorganize Bookmarks and Outlines (v18.0.0)
  • Rotate, Scale, and Clip Imported Page Data (v18.0.0)
  • Place Multiple Imported Pages on a Single Page (v18.0.0)
  • Disk Buffering (v18.0.0)
  • Document Templates and Sections (v18.0.0)
  • Convert images (JPEG, TIFF, BMP, GIF, PNG, EXIF and EMF) to PDF (v18.0.0)
  • Font and Text Support (v18.0.0)
  • 15 Report Elements (v18.0.0)
  • 8 Page Elements (v18.0.0)
   Bug Fixes
  • NullReferenceException while using .NET Standard dll in iOS is resolved. (v18.0.0 Build 36358)
   Compatibility
  • .NET Core - 2.x or Greater (v18.0.0)
  • .NET Framework - 4.6.1 or Greater (v18.0.0)
  • Mono - 5.4 or Greater (v18.0.0)
  • Xamarin.iOS - 10.14 or Greater (v18.0.0)
  • Xamarin.Android - 8.0 or Greater (v18.0.0)
  • Universal Windows Platform (UWP) - 10.0.16299 or Greater (v18.0.0)
           
   Version 18 (Latest Build v18.0.0.36358)
   New Features
  • Create PDFs with Layout Engine and Designer (v18.0.0)
  • Create PDFs from HTML (v18.0.0)
  • Merge PDF Documents (v18.0.0)
  • Append PDF Documents to Current Document (v18.0.0)
  • Import a Single Page From a PDF Document (v18.0.0)
  • Linearize PDF Document (Fast Web View) (v18.0.0)
  • Add New Pages Using ToolkitOne (v18.0.0)
  • Place New Content on Imported PDF Pages (v18.0.0)
  • Reorganize Bookmarks and Outlines (v18.0.0)
  • Rotate, Scale, and Clip Imported Page Data (v18.0.0)
  • Place Multiple Imported Pages on a Single Page (v18.0.0)
  • Disk Buffering (v18.0.0)
  • Document Templates and Sections (v18.0.0)
  • Convert images (JPEG, TIFF, BMP, GIF, PNG, EXIF and EMF) to PDF (v18.0.0)
  • Font and Text Support (v18.0.0)
  • 15 Report Elements (v18.0.0)
  • 20+ Page Elements (v18.0.0)
  • 45+ Barcode Types (v18.0.0)
  • 6 Chart Types (v18.0.0)
  • 7 Acro Form Fields (v18.0.0)
  • Image and Text Watermarks (v18.0.0)
  • Document Navigation (v18.0.0)
  • Document Actions (v18.0.0)
  • Prepress and Archiving (v18.0.0)
  • PDF Encryption (v18.0.0)
  • Package PDFs (Portfolio) (v18.0.0)
   Bug Fixes
  • NullReferenceException while using .NET Standard dll in iOS is resolved. (v18.0.0 Build 36358)
   Compatibility
  • .NET Core - 2.x or Greater (v18.0.0)
  • .NET Framework - 4.6.1 or Greater (v18.0.0)
  • Mono - 5.4 or Greater (v18.0.0)
  • Xamarin.iOS - 10.14 or Greater (v18.0.0)
  • Xamarin.Android - 8.0 or Greater (v18.0.0)
  • Universal Windows Platform (UWP) - 10.0.16299 or Greater (v18.0.0)
Coming Soon
Coming Soon

Why Choose ToolkitOne?

  • Easy to Use
  • Efficient Performance
  • Lots of Features
  • Great Support
  • Free Evaluation
  • Royalty Free Distribution
  • Subscription Licensing
  • Cross Platform Support

We’re Not The Only Ones That Think We’re Great!

Customer Testimonials