The AnnotationContainer Property is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
LEADTOOLS Annotation container that contains the objects to use when annotating a page in PDF documents.Visual Basic (Declaration) | |
---|---|
Public Property AnnotationContainer As Object |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As DocumentPage Dim value As Object instance.AnnotationContainer = value value = instance.AnnotationContainer |
C# | |
---|---|
public object AnnotationContainer {get; set;} |
Property Value
An optional System.Object that must point to a valid instance of Leadtools.Annotations.AnnContainer class containing the objects to use when annotating a page in PDF documents. Default value is null (Nothing in Visual Basic).The AnnotationContainer property is optional and is used only when the document being created is PDF. To create a PDF document with annotations, perform the following steps:
- You can use the DocumentWriter.GetOptions and DocumentWriter.SetOptions methods to the get the options used when saving a PDF document.
- Call DocumentWriter.BeginDocument with DocumentFormat.Pdf as the format to use.
- Add the document pages. The DocumentPage.EmfHandle property must point to the EMF representation of the page and the DocumentPage.AnnotationContainer property must contain a valid Leadtools.Annotations.AnnContainer object holding the annotation objects to be saved for this page.
- Repeat for each page in the document.
- Call DocumentWriter.EndDocument to finish creating the document file on disk.
For more information, refer to PdfDocumentOptions.
Note that Leadtools.Annotations.AnnContainer is used only when the document being created is PDF.also saving annotated document is not supported when PdfDocumentOptions.DocumentType is PdfDocumentType.PdfA.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7