[]
Initializes a new instance of the PdfRunningTitle class.
An optional object containing initialization settings.
Gets or sets an object that provides the ability to setup the running title content declaratively.
Gets the document object.
Gets or sets the height of the running title, in points. To hide the running title, set this property to 0. Changing this property has no effect on previous drawings; they will not be resized or clipped.
The default value is 24.
Gets or sets the spacing between each line of text, in points.
The default value is 0.
Gets an object that provides ability to draw paths.
Gets the width of the area, in points.
Gets or sets the X-coordinate (in points) of the current point in the text flow used to draw a text or an image.
Gets or sets the Y-coordinate (in points) of the current point in the text flow used to draw a text or an image.
Marks content as an artifact.
For example:
doc.artifact(() => doc.drawText('Artifact'));
A callback function that will be automatically executed within a beginArtifact/endArtifact block.
Artifact options.
The IPdfTagContent object that repesents a reference to the marked content.
Begins marking content as an PDF artifact. Each call of beginArtifact() should be enclosed with endArtifact.
For example:
doc.beginArtifact(); doc.drawText('Artifact'); doc.endArtifact();
Artifact options.
The PdfPageArea object.
Begins marking the content with the given tag and returns the tag content element, an object which represent a reference to the marked content. The tag content element can be incorporated into the document's structure tree by adding to a tag element. Each call of beginTagContent() should be enclosed with endTagContent.
For example:
let content = doc.beginTagContent(wijmo.pdf.PdfTagType.P); doc.drawText('Hello, world!'); doc.endTagContent(); let tag = doc.tag(wijmo.pdf.PdfTagType.P); tag.add(content); doc.addTag(tag);
Note: Marking tag content will automatically end current marking of tag content (and any descendent marking).
The marking tag.
Tag content options.
The IPdfTagContent object that repesents a reference to the marked content.
Draws an image in JPG or PNG format with the given options.
If x and y are not defined, then x and y are used instead.
Finally, if the image was drawn in the text flow, the method updates y. Hence, any subsequent text or image starts below this point.
A string containing the URL to get the image from, or the data URI containing a base64 encoded image, or a wijmo.pdf.IPdfImage object returned by the openImage method.
The x-coordinate of the point to draw the image at, in points.
The y-coordinate of the point to draw the image at, in points.
Determines the image drawing options.
The PdfPageArea object.
Draws a SVG image with the given options.
If x and y are not defined, then x and y are used instead.
The method uses the values of the width and height attributes of the outermost svg element to determine the scale factor according to the options.width and options.height properties. If any of these attributes are omitted then scaling is not performed and the image will be rendered in its original size.
Finally, if the image was drawn in the text flow, the method updates y. Hence, any subsequent text or image starts below this point. The increment value is defined by the options.height property or by the outermost svg element's height attribute, which comes first. If none of them is provided then y will stay unchanged.
The method supports a limited set of SVG features and provided primarily for rendering wijmo 5 chart controls.
A string containing the URL to get the SVG image from or the data URI containing a base64 encoded SVG image.
The x-coordinate of the point to draw the image at, in points.
The y-coordinate of the point to draw the image at, in points.
Determines the SVG image drawing options.
The PdfPageArea object.
Ends marking content as an PDF artifact.
For example:
doc.beginArtifact(); doc.drawText('Artifact'); doc.endArtifact();
The PdfPageArea object.
Ends the tag content marking.
For example:
let content = doc.beginTagContent(wijmo.pdf.PdfTagType.P); doc.drawText('Hello, world!'); doc.endTagContent();
The PdfPageArea object.
Gets the line height with a given font.
If font is not specified, then font used in the current document is used.
Font to get the line height.
The line height, in points.
Measures a text with the given font and text drawing options without rendering it.
If font is not specified, then the font used in the current document is used.
The method uses the same text rendering engine as drawText, so it is tied up in the same way to x and the right page margin, if options.width is not provided. The measurement result doesn't reflect the fact that text can be split into multiple pages or columns; the text is treated as a single block.
Text to measure.
Font to be applied on the text.
Determines the text drawing options.
A IPdfTextMeasurementInfo object determines the measurement information.
Moves down the y by a given number of lines using the given font or, using the font of current document, if not specified.
Number of lines to move down.
Font to calculate the line height.
The PdfPageArea object.
Moves up the y by a given number of lines using the given font or, using the font of current document, if not specified.
Number of lines to move up.
Font to calculate the line height.
The PdfPageArea object.
Rotates the graphic context clockwise by a specified angle.
The rotation angle, in degrees.
The Point of rotation, in points. If it is not provided, then the top left corner is used.
Scales the graphic context by a specified scaling factor.
The scaling factor value within the range [0, 1] indicates that the size will be decreased. The scaling factor value greater than 1 indicates that the size will be increased.
The factor to scale the X dimension.
The factor to scale the Y dimension. If it is not provided, it is assumed to be equal to xFactor.
The Point to scale around, in points. If it is not provided, then the top left corner is used.
The PdfPageArea object.
Marks content with the given tag and returns the tag content element, an object which represent a reference to the marked content. The tag content element can be incorporated into the document's structure tree by adding to a tag element.
For example:
let content = doc.tagContent(wijmo.pdf.PdfTagType.P, () => doc.drawText('Hello, world!')); let tag = doc.tag(wijmo.pdf.PdfTagType.P); tag.add(content); doc.addTag(tag);
The marking tag.
A callback function that will be automatically executed within a beginTagContent/endTagContent block.
Tag content options.
The IPdfTagContent object that repesents a reference to the marked content.
Transforms the graphic context with given six numbers which represents a 3x3 transformation matrix.
A transformation matrix is written as follows:
a | b | 0 |
c | d | 0 |
e | f | 1 |
Value of the first row and first column.
Value of the first row and second column.
Value of the second row and first column.
Value of the second row and second column.
Value of the third row and first column.
Value of the third row and second column.
The PdfPageArea object.
Translates the graphic context with a given distance.
The distance to translate along the X-axis, in points.
The distance to translate along the Y-axis, in points.
The PdfPageArea object.
Represents a running title of the page, like header and footer.
This class is not intended to be instantiated in your code.