Skip to content

Latest commit

 

History

History

CreateAndSaveDocument

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Create and save PDF document in C# and VB.NET

This sample shows how to create and save PDF documents using Docotic.Pdf library.

Description

The most important class in the library is PdfDocument. Each newly created PDF document already contains a page, you can access it using PdfDocument.Pages collection or PdfDocument.GetPage method. You can save the completed document to a file or a stream using one of the PdfDocument.Save methods.

The code also shows how to open the document immediately after saving. For this, the sample code uses System.Diagnostics.Process class and its Start method. As the result of the call, the operating system opens the PDF document in a default PDF viewer, if any.

See also