Syncfusion.Pdf.Base
Members  Example 


Syncfusion.Pdf Namespace : PdfDocument Class

PdfDocument Class

Represents a PDF document and can be used to create a new PDF document from the scratch
Object Model
PdfDocument ClassPdfDocumentActions ClassPdfAttachmentCollection ClassPdfAttachment ClassPdfBookmarkBase ClassPdfBookmark ClassPdfDocumentInformation ClassPdfFileStructure ClassPdfForm ClassPdfDocumentLayerCollection ClassPdfLayer ClassPdfNamedDestinationCollection ClassPdfNamedDestination ClassPdfDocumentPageCollection ClassPdfPage ClassPdfPageSettings ClassPdfPortfolioInformation ClassPdfSectionCollection ClassPdfSection ClassPdfSecurity ClassPdfDocumentTemplate ClassPdfViewerPreferences Class
Syntax
'Declaration
 
Public Class PdfDocument 
   Inherits PdfDocumentBase
'Usage
 
Dim instance As PdfDocument
public class PdfDocument : PdfDocumentBase 
Remarks
To know more about refer this link .
Example
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Creates a new page.
PdfPage page = document.Pages.Add();
//Create font with Bold font style.
PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ;
//Draw text in the new page.
page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10));
//Save the document.
document.Save("Document.pdf");
//Close the document.
document.Close(true);
' Create a new PDF document.
Dim document As PdfDocument = New PdfDocument()
'Creates a new page.
Dim page As PdfPage = document.Pages.Add()
'Create font with Bold font style.
Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold)
'Draw text in the new page.
page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10))
'Save the document.
document.Save("Document.pdf");
'Close the document.
document.Close(True)
Inheritance Hierarchy

System.Object
   Syncfusion.Pdf.PdfDocumentBase
      Syncfusion.Pdf.PdfDocument

AssemblyVersion

Syncfusion.Pdf.Base: 18.1460.0.52

See Also