Click or drag to resize

PdfMarkedContent Class

PdfMarkedContent represents an area within drawing on a PDF page or in a DrawingTemplate that is marked as having special meaning. For example, certain classes of annotations that have customized appearances use "marked content" to set aside an area that reserved for customizable or user-entered text.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.Generating.ShapesPdfMarkedContent

Namespace:  Atalasoft.PdfDoc.Generating.Shapes
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public class PdfMarkedContent : IPdfRenderable, 
	IPdfResourceConsumer, IEnumerable<IPdfRenderable>, IEnumerable, IPdfRenderableContainer

The PdfMarkedContent type exposes the following members.

Constructors
  NameDescription
Public methodPdfMarkedContent
Initializes a new instance of the PdfMarkedContent class. Tag will be "unknown".
Public methodPdfMarkedContent(String)
Initializes a new instance of the PdfMarkedContent class with the given tag.
Top
Properties
  NameDescription
Public propertyDrawingList
Gets the drawing list for the marked content.
Public propertyCode exampleName
Gets or sets the name of the object. The use of this property is not dictated by the PDF Authoring API. It is in place as a convenience for client code where it could be used for creating named objects in PDF content for later retrieval/editing.
Public propertyTag
Gets or sets the tag to the value specified.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNotifyResourceRenamed
Notifies that the resource was renamed.
Public methodPostRender
This method is called after rendering is complete. This is an opportunity for the object to clean up previous work or restore prior state. The value returned by PreRender(PdfPageRenderer) is passed in the parameter memento.
Public methodPreRender
This method is called before rendering happens. This is an opportunity for the object to create or save information for later use or restoration. The value returned is a memento that will be passed back to the object when PostRender(PdfPageRenderer, Object) is called.
Public methodCode exampleRender
Generates PDF content for this object using the provider PdfPageRenderer object. The PdfPageRenderer represents an object that is aggregating PDF content for a particular page. It is the responsibility of each object that implements IPdfRenderable to add content appropriate for that object to the page.
Public methodResourcesUsed
Reports a list of all resources consumed by the object of the given class.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
In order to create text marked for an annotation, you might do this: PdfMarkedContent content = new PdfMarkedContent("Tx"); PdfTextLine line = new PdfTextLine(myFontName, 10.0, "This is marked content", new PdfPoint(36, 700)); content.DrawingList.Add(line); page.DrawingList.Add(content);
See Also