mlreportgen.dom.TemplatePDFStyle Class
Namespace: mlreportgen.dom
Description
Use this class to create a Document Object Model (DOM) representation of an existing style in a PDF template. This class generates a style sheet entry in PDF style sheets only. HTML and DOCX template style sheets ignore this class. This class enables you to see what styles already exist in a template.
This class represents a PDF style defined by a PDF template (.pdftx
)
file. Opening a PDF template creates an array containing an instance of this class for each
style defined by the template file. You can access the styles by using the
TemplateStyles
property of the style sheet stored in the
Stylesheet
property. Use this class to view and modify the CSS selector
and formats for a PDF style. You can remove or replace PDF styles using the
removeStyle
and replaceStyle
methods of the template style
sheet.
The mlreportgen.dom.TemplatePDFStyle
class is a handle
class.
Creation
Description
creates an HTML style and sets the style
= TemplatePDFStyle(selector
,rawFormats
)Selector
and
RawFormats
properties to the values of selector and rawFormats
,
respectively. Use this constructor to define PDF styles that use more complex CSS
selectors or formats that do not have equivalent DOM classes.
Properties
Examples
Version History
Introduced in R2024a