Skip to main content

TagOptions

Version: 12.0

cete.dynamicpdf.tagoptions

TagOptions​

Represents an tag options.

public class TagOptions
Public Class TagOptions

Inheritance: Object → TagOptions

Licensing Info​

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples​

The following example shows how to create a tagged PDF document.

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements

Module MyModule

Sub Main()

' Create a PDF Document
Dim MyDocument As Document = New Document

' Specify document as a tagged PDF
MyDocument.Tag = New TagOptions()

' Create a page and add it to the document
Dim MyPage As Page = New Page()
MyDocument.Pages.Add(MyPage)

' Add a label to the page
MyPage.Elements.Add(New Label("My Tagged PDF Document", 0, 0, 512, 40, Font.Helvetica, 30, TextAlign.Center))

' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")

End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
public static void CreatePDF(string outputPath)
{
// Create a PDF Document
Document document = new Document();

// Specify document as a tagged PDF
document.Tag = new TagOptions();

// Create a page and add it to the document
Page page = new Page();
document.Pages.Add(page);

// Add a label to the page
page.Elements.Add(new Label("My Tagged PDF Document", 0, 0, 512, 40, Font.Helvetica, 30, TextAlign.Center));

// Save the PDF
document.Draw(outputPath);
}
}

Constructors​

TagOptions()​

Initializes a new instance of the TagOptions class.

public TagOptions()
Public Sub New ()

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

TagOptions(Boolean)​

Initializes a new instance of the TagOptions class.

public TagOptions(bool layoutAttributes)
Public Sub New (layoutAttributes As Boolean)

Parameters​

Specifies if layout attributes is required.

Licensing Info​

This constructor is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Properties​

IncludeLayoutAttributes​

Gets or sets a value indicating layout attributes to be include.

public bool IncludeLayoutAttributes { get; set; }
Public Property IncludeLayoutAttributes As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF