Click or drag to resize

PdfTextPath Class

A PdfBaseShape to perform complex custom direction text writing
Inheritance Hierarchy

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 PdfTextPath : PdfBaseTextShape, 
	IPdfTextContainer

The PdfTextPath type exposes the following members.

Constructors
  NameDescription
Public methodPdfTextPath
Initializes a new instance of the PdfTextPath class.
Top
Properties
  NameDescription
Public propertyAlignment
Gets or sets the alignment.
(Inherited from PdfBaseTextShape.)
Public propertyClip
Gets or sets a value indicating whether this PdfBaseShape shape will clip.
(Inherited from PdfBaseShape.)
Public propertyFillColor
Gets or sets the color of the fill.
(Inherited from PdfBaseShape.)
Public propertyFontName
Gets or sets the name of the font.
(Inherited from PdfBaseTextShape.)
Public propertyFontSize
Gets or sets the size of the font.
(Inherited from PdfBaseTextShape.)
Public propertyHorizontalScaling
Gets or sets the horizontal scaling.
(Inherited from PdfBaseTextShape.)
Public propertyLocation
Gets or sets the location.
(Inherited from PdfBaseShape.)
Public propertyName
Gets or sets the name of the IPdfRenderable object.
(Inherited from PdfBaseShape.)
Public propertyOutlineColor
Gets or sets the color of the outline.
(Inherited from PdfBaseShape.)
Public propertyPathStyle
Gets or sets the path style.
Public propertyRenderMode
Gets or sets the render mode.
(Inherited from PdfBaseTextShape.)
Public propertyRotation
Gets or sets the rotation in degrees.
(Inherited from PdfBaseShape.)
Public propertyScale
Gets or sets the scale.
(Inherited from PdfBaseShape.)
Public propertyStyle
Gets or sets the style.
(Inherited from PdfBaseShape.)
Public propertyText
Gets or sets the text.
Public propertyWordSpacing
Gets or sets the word spacing.
(Inherited from PdfBaseTextShape.)
Top
Methods
  NameDescription
Public methodClone
Creates a new object that is a copy of the current instance.
(Inherited from PdfBaseShape.)
Protected methodCloneInstance
Clones the instance.
(Overrides PdfBaseTextShapeCloneInstance.)
Public methodCopyBaseShapePropertiesTo
Copies the base shape properties to the parameter shape.
(Inherited from PdfBaseShape.)
Public methodCurveTo
Draws a curve from the previous point to the destination point using two bezier control points
Protected methodDrawShape
Draws the shape.
(Overrides PdfBaseTextShapeDrawShape(PdfPageRenderer).)
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.)
Protected methodGenerateTransform
Generates the default transform based on Scale, Rotate, and Translate.
(Inherited from PdfBaseShape.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTextStartOffset(Double, Double)
Gets the text start offset for a line of text. This is used to align text based on the alignment.
(Inherited from PdfBaseTextShape.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLineTo
Draws a line from the previous point to the destination point
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveTo
Moves to a point in pdf space
Public methodNotifyResourceRenamed
Notifies a resource consumer that a resource was renamed.
(Inherited from PdfBaseShape.)
Protected methodOnResourceRenamed
Called when a resource in the shape has been renamed.
(Inherited from PdfBaseTextShape.)
Protected methodOnResourcesRequested
Called when the PdfBaseShape is requested to report resources used. If client code consumes resources, it should override this method combining its results with those of base.OnResourceRequested
(Inherited from PdfBaseTextShape.)
Public methodRender
Generates the PDF display list objects.
(Inherited from PdfBaseTextShape.)
Public methodResourcesUsed
Reports a list of all resources consumed by the object of the given class.
(Inherited from PdfBaseShape.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Examples
     PdfGeneratedDocument doc = new PdfGeneratedDocument();
PdfGeneratedPage page = PdfDefaultPages.Letter;
GlobalResources globalRes = new GlobalResources();
doc.Resources = globalRes;
globalRes.Fonts.Add("Arial", PdfFontResource.FromFontName(globalRes.Fonts, "Arial"));
doc.Pages.Add(page);
PdfTextPath path = new PdfTextPath();
path.PathStyle = PathTextStyle.Letter;
path.FontName = "Arial";
path.FontSize = 18.0;
path.Text = "This Text is following a path and will soon find itself at the end of the path";
path.LineTo(new PdfPoint(100, 150));
path.CurveTo(new PdfPoint(100, 250), new PdfPoint(200, 250), new PdfPoint(200, 150));
path.LineTo(new PdfPoint(300, 40));
path.CurveTo(new PdfPoint(340, 0), new PdfPoint(340, 0), new PdfPoint(380, 40));
path.CurveTo(new PdfPoint(380, 100), new PdfPoint(380, 100), new PdfPoint(600, 40));
page.DrawingList.Add(path);
See Also