create |
![]() |
[ class tree: create ] [ index: create ] [ all elements ] |
![]() |
Packages: default charts clean config converters create debug elements factory license loader parser transform utilities Files: Classes: |
[ Top ] static $settings = array('w:writeProtection',
|
access: | public |
Type: | array |
[line 83]
access: | public |
Type: | string |
[line 89]
access: | public |
Type: | array |
[line 107]
access: | public |
Type: | string |
|
access: | public |
example: | example |
string | $path. | Path to the text file output |
array | $to | styles. keys: table => true/false,list => true/false, paragraph => true/false, footnote => true/false, endnote => true/false, chart => (0=false,1=array,2=table) |
$from | ||
$options |
|
access: | public |
|
access: | public |
array | $options |
|
access: | public |
string | $baseTemplatePath. | Optional, basicTemplate.docx as default |
$baseTemplatePath |
|
access: | public |
example: | example |
string | $path |
|
deprecated: | |
access: | public |
string | $html | |
array | $options |
|
access: | public |
example: | example |
array | $options | Values: 'type' (start, end) 'name' (string) 'rawWordML' (boolean) |
|
string | $options | Values: 'type' (line, page, column) 'rawWordML' (boolean) |
|
access: | public |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
array | $options | Values: 'color' (1, 2, 3...) color scheme, 'perspective' (20, 30...), 'rotX' (20, 30...), 'rotY' (20, 30...), 'data' (array of values), 'float' (left, right, center) floating image. It only applies if textWrap is not inline (default value). 'font' (Arial, Times New Roman...), 'groupBar' (clustered, stacked, percentStacked), 'horizontalOffset' (int) given in emus (1cm = 360000 emus) 'jc' (center, left, right), 'showPercent' (0, 1), 'sizeX' (10, 11, 12...), 'sizeY' (10, 11, 12...), 'textWrap' (0 (inline), 1 (square), 2 (front), 3 (back), 4 (up and bottom)), 'verticalOffset' (int) given in emus (1cm = 360000 emus) 'title', 'type' (barChart, bar3DChart, bar3DChartCylinder, bar3DChartCone, bar3DChartPyramid, colChart, col3DChart, col3DChartCylinder, col3DChartCone, bar3DChartPyramid, pieChart, pie3DChart, lineChart, line3DChart, areaChart, area3DChart, radar, scatterChart, surfaceChart,ofpiechar, doughnut, bublechart) 'legendPos' (r, l, t, b, none), 'legendOverlay' (0, 1), 'border' (0, 1), 'haxLabel' horizontal axis label, 'vaxLabel' vertical axis label, 'showtable' (0, 1) shows the table of values, 'vaxLabelDisplay' (rotated, vertical, horizontal), 'haxLabelDisplay' (rotated, vertical, horizontal), 'hgrid' (0, 1, 2, 3), 'vgrid' (0, 1, 2, 3), 'style' this work only in radar charts. 'gapWidth' distance between the pie and the second chart(ofpiechart) 'secondPieSize' : size of the second chart(ofpiechart) 'splitType' how decide to split the values :auto(Default Split), cust(Custom Split), percent(Split by Percentage), pos(Split by Position), val(Split by Value) 'splitPos' split position , integer or float 'custSplit' array of index to split 'subtype' type of the second chart pie or bar 'explosion' distance between the diferents values 'holeSize' size of the hole in doughnut type 'symbol' array of symbols(scatter chart) 'symbolSize' the size of the simbols 'smooth' smooth the line (scatter chart) 'wireframe' boolean(surface chart)to remove content color and only leave the border colors 'showValue' (0,1) shows the values inside the chart 'showCategory' (0,1) shows the category inside the chart 'rawWordML' (boolean) |
|
access: | public |
example: | example |
array | $options | Values: 'textDocument'(mixed) a string of text to appear in the document body as anchor for the comment or an array with the text and associated text options 'textComment' (mixed) a string of text to be used as the comment text or a WordML fragment 'initials' (string) 'author' (string) 'date' (string) 'rawWordML' (boolean) |
|
access: | public |
example: | example |
array | $options | Style options to apply to the date Values: 'b' (on, off) set to on for right to left languages 'bidi' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480... 'indent_left' 100... 'indent_right' 100... 'rawWordML' (boolean) 'rtl' (on, off) set to on for right to left languages 'dateFormat (string) dd/MM/yyyy H:mm:ss (default value) One may define a customised format like dd' of 'MMMM' of 'yyyy' at 'H:mm (resulting in 20 of December of 2012 at 9:30) |
|
access: | public |
example: | example |
array | $options | Values: 'pathDOCX' (string) path to DOCX 'matchSource' (bool) if true (default value)tries to preserve as much as posible the styles of the docx to be included 'preprocess' (boolean) if true does some preprocessing on the docx file to add WARNING: beware that the docx to insert gets modified so please make a safeguard copy first 'rawWordML' (boolean) |
|
string | $type | Element type. Values: 'addImage', 'addGraphic', 'addLink', 'addTextBox', 'addText' |
array | $parrams | Set of parameters. Values: same as elements |
$params |
|
array | $options. | Values: 'textDocument'(mixed) a string of text to appear in the document body or an array with the text and associated text options 'textEndnote' (mixed) a string of text to be used as the endnote text or a WordML fragment 'endnoteMark' (array) bidi, customMark, font, b, i, color, rtl 'referenceMark' (array) bidi, font, b, i, color, rtl 'rawWordML' (boolean) |
$options |
|
access: | public |
array | $fonts | Fonts to add |
|
array | $footer | |
array | 1 | Values: 'default'(object) WordMLFragment 'even' (object) WordMLFragment 'first' (object) WordMLFragment |
$footers |
|
array | $options | Values: 'textDocument'(mixed) a string of text to appear in the document body or an array with the text and associated text options 'textFootnote' (mixed) a string of text to be used as the footnote text or a WordML fragment 'footnoteMark' (array) bidi, customMark, font, b, i, color, rtl 'referenceMark' (array) bidi, font, b, i, color, rtl 'rawWordML' (boolean) |
|
access: | public |
example: | example not found |
mixed | $type | it can be 'textfield', 'checkbox' or 'select' |
array | $options | Style options to apply to the text Values: 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'lineBreak' (before, after, both) 'columnBreak' (before, after, both) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480..., 'indent_left' 100..., 'indent_right' 100... 'rawWordML' (boolean) 'defaultValue' (mixed) a string of text for the textfield type, a boolean value for the checkbox type or an integer representing the index (0 based) for the options of a select form element 'selectOptions' (array) an array of options for the dropdown menu |
|
see: | CreateDocx::addChart() |
deprecated: | Use addChart method |
access: | public |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
array | $dats | Parameters of graphic Values: 'color' (1, 2, 3...), 'perspective' (20, 30...), 'rotX' (20, 30...), 'rotY' (20, 30...), 'data' (array of values), 'font' (Arial, Times New Roman...), 'groupBar' (clustered, stacked), 'jc' (center, left, right), 'showPercent' (0, 1), 'sizeX' (10, 11, 12...), 'sizeY' (10, 11, 12...), 'textWrap' (0 (inline), 1 (square), 2 (front), 3 (back), 4 (up and bottom), 5 (clear)), 'title', 'type' (barChart, bar3DChart, colChart, col3DChart, pieChart, pie3DChart) |
|
access: | public |
array | $options | Values: 'color' (1, 2, 3, 4, 5), 'rotX' (20, 30...), 'data' (array of values), 'sizeX' (10, 11, 12...), 'sizeY' (10, 11, 12...), 'title', 'type' (barChart, bar3DChart,colChart, col3DChart, pieChart, pie3DChart) 'rawWordML' (boolean) |
|
access: | public |
array | $options | Values: same as charts |
|
array | $headers | Values: 'default'(object) WordMLFragment 'even' (object) WordMLFragment 'first' (object) WordMLFragment |
|
access: | public |
example: | example |
string | $text | the heading text |
int | $level | can be 1 (default), 2,3, ... |
array | $options | Style options to apply to the heading Values: 'bidi' (on, off) 'b' (on, off) 'caps' (on, off) display text in capital letters 'color' (ffffff, ff0000...) 'font' (Cambria (default), Arial, Times New Roman...) 'i' (on, off) 'indent_left' 100..., 'indent_right' 100... 'jc' (both, center, distribute, left, right) 'keepLines' (on, off) keep all paragraph lines on the same page 'keepNext' (on, off) keep in the same page the current paragraph with next paragraph 'lineSpacing' 120, 240 (standard), 360, 480, ... 'pageBreakBefore' (on, off) 'rawWordML' (boolean) 'rtl' (on, off) 'spacingBottom' (int) bottom margin in twentieths of a point 'spacingTop' (int) top margin in twentieths of a point 'sz' (8, 9, 10, ...) size in points 'u' (none, dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) |
|
This method IS NOT compatible with PDF conversion or Open Office (use embedHTML instead).
array | $options | Values: 'html' (string) 'rawWordML' (boolean) |
|
array | $data | Values: 'border'(int) 1, 2, 3... 'borderDiscontinuous' (0, 1) 'float' (left, right, center) floating image. It only applies if textWrap is not inline (default value). 'font' (string) Arial, Times New Roman... 'horizontalOffset' (int) given in emus (1cm = 360000 emus). Only applies if there is the image is not floating 'jc' (center, left, right, inside, outside) 'name' (string) path to a local image 'scaling' (int) 50, 100, .. 'sizeX' (int) 10, 11, 12... 'sizeY' (int) 10, 11, 12... 'dpi' (int) dots per inch 'spacingTop' (int) 10, 11... 'spacingBottom' (int) 10, 11... 'spacingLeft' (int) 10, 11... 'spacingRight' (int) 10, 11... 'textWrap' 0 (inline), 1 (square), 2 (front), 3 (back), 4 (up and bottom)) 'target' (string): document (default value), defaultHeader, firstHeader, evenHeader, defaultFooter, firstFooter, evenFooter, footnote, endnote, comment 'verticalOffset' (int) given in emus (1cm = 360000 emus) 'rawWordML' (boolean) |
|
access: | public |
example: | example |
array | $options | countBy (int) line number increments to display (default value is 1) start (int) initial line number (default value is 1) distance (int) separation in twentieths of a point between the number and the text (defaults to auto) restart (string) could be: continuous (default value: the numbering does not get restarted anywhere in the document), newPage (the numbering restarts at the beginning of every page) newSection (the numbering restarts at the beginning of every section) |
|
array | $options | |
$text |
|
array | $data | Values of the list |
array | $options | Values: 'font' (string), Arial, Times New Roman, ... 'val' (mixed), 0 (clear), 1 (inordinate), 2(numerical) or the name of the created list 'rawWordML' (boolean) |
|
access: | public |
string | $path | Path to a file with macro |
|
access: | public |
example: | example |
string | $path | Path to a file with math eq |
|
access: | public |
example: | example |
string | $eq | Math eq |
bool | $rawWordML |
|
access: | public |
string | $eq | Math eq |
bool | $rawWordML |
|
access: | public |
example: | example |
string | $name | |
array | $mergeParameters | Keys and values: 'format' (Caps, FirstCap, Lower, Upper) 'mappedField' (boolean) 'preserveFormat' (boolean) 'textAfter' string of text to include after the merge field 'textBefore' string of text to include before the merge field 'verticalFormat' (boolean) |
string | $format | |
array | $options | style options to apply to the field Keys and values: 'bidi' (on, off) 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480..., 'indent_left' 100..., 'indent_right' 100... 'rawWordML' (boolean) 'rtl' (on, off) |
|
access: | public |
example: | example |
array | $options | Values: 'pathMHT' (string) path to the MHT file 'rawWordML' (boolean) |
|
access: | public |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
string | $name. | Must be a valid name for the new base template. It should include the extension |
boolean | $overwrite. | Optional. If true overwrites any existing template with the given name |
$path | ||
$name | ||
$overwrite |
|
todo: | Unfinished method |
access: | public |
array | $options | Values: 'path' (string) path to the object 'type' (string) object type: xlsx, pptx 'rawWordML' (boolean) |
|
access: | public |
example: | example |
array | $options | (<side> stands for top, right, bootom or left) 'zOrder' (int) 'display' (string) posible values are:allPages (display page border on all pages, default value), firstPage(display page border on first page), notFirstPage (display page border on all pages except first) 'offsetFrom' (string) posible values are: page or text border-width (int) page border width in eigths of a point (default value is 4) border-color (string) hexadecimal color ('000000' (default), 'FF0000', ...) border-style (string) none, single, double, ... (default value is single) border-space (int) border spacing in points (default is 24) border-<side>-width (int) page border width in eighths of a point border-<side>-color (string) hexadecimal color ('000000' (default), 'FF0000', ...) border-<side>-style (string) none, single, double, ... (default value is single) border-<side>-space (int) border spacing in points (default is 24) |
|
mixed | $type | (String): numerical, alphabetical. |
array | $options | Style options to apply to the numbering Values: 'bidi' (on, off) 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480..., 'indent_left' 100..., 'indent_right' 100... 'defaultValue' (int) 'rawWordML' (boolean) 'rtl' (on, off) |
|
see: | anchor) type bookmark: 'markerName' (string) type image: @see CreateDocx->addImage() 'position' (inline, left, right) types arc, curve, line, polyline, rect, roundrect, shape, oval: @see CreateDocx->addShape() |
see: | CreateDocx->addText() 'spacingBottom' (int) bottom margin in points 'spacingTop'(int) top margin in points 'target' (string) document (default value), defaultHeader, firstHeader, evenHeader, defaultFooter, firstFooter, evenFooter. 'rawWordML' (boolean) |
access: | public |
example: | example |
example: | example |
array | $options | |
array | $parameters | : values: 'type' (text, lineBreak, link, bookmark, image, footnote, endnote, arc, curve, line, polyline, rect, roundrect, shape, oval) |
|
access: | public |
example: | example |
array | $values | Parameters to use Values: 'title', 'subject', 'creator', 'keywords', 'description', 'category', 'contentStatus', 'Manager','Company', 'custom' ('name' => array('type' => 'value')) |
|
deprecated: | See addWordML |
access: | public |
string | $wml | WordML to add |
|
access: | public |
example: | example |
array | $options | Values: 'pathRTF' (string) path to the RTF file 'rawWordML' (boolean) |
|
access: | public |
example: | example |
string | $sectionType | sectionType (string): nextPage, nextColumn, continuous, evenPage, oddPage |
array | $paperType | paperType (string): A4, A3, letter, legal, A4-landscape, A3-landscape, letter-landscape, legal-landscape, custom |
array | $options | options Values: width (int): measurement in twips (twentieths of a point) height (int): measurement in twips (twentieths of a point) numberCols (int): number of columns orient (string): portrait, landscape marginTop (int): measurement in twips (twentieths of a point) marginRight (int): measurement in twips (twentieths of a point) marginBottom (int): measurement in twips (twentieths of a point) marginLeft (int): measurement in twips (twentieths of a point) marginHeader (int): measurement in twips (twentieths of a point) marginFooter (int): measurement in twips (twentieths of a point) gutter (int): measurement in twips (twentieths of a point) bidi (on, off) rtl (on, off) |
|
access: | public |
example: | example |
string | $type | Type of shape to draw Values:arc, curve, line, polyline, rect, roundrect, shape, oval |
array | $options | General options: 'width' in points 'height' in points 'position' (absolute, relative) 'margin-top' in points 'margin-left' in points 'z-index' integer 'strokecolor' (#ff0000, #00ffff, ...) 'strokeweight' (1.0pt, 3.5pt, ...) 'fillcolor' (#ff0000, #00ffff, ...) 'rawWordML' (boolean) Options for especific type: arc: 'startAngle' (0, 45, 90, ...), 'endAngle' (0, 45, 90, ...) line and curve: 'from' and 'to' (initial and final points in x,y format) curve: 'control1' (x,y), 'control2' (x,y) polyline: 'points' (x1,y1 x2,y2 ....) roundrect: 'arcsize' (0.5, 1.8, ...) shape: 'path' (VML path), 'coordsize' (x,y) |
|
access: | public |
example: | example not found |
string | $type: | date, numeric or general. |
string | $format | |
array | $options | style options to apply to the field Values: 'bidi' (on, off) 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480..., 'indent_left' 100..., 'indent_right' 100... 'defaultValue' (mixed) 'doNotShadeFormData' (bool) 'updateFields' (bool) 'rawWordML' (boolean) 'rtl' (on, off) |
$fieldName | $fieldName | the field value. Available fields are: AUTHOR, COMMENTS, DOCPROPERTY, FILENAME, FILESIZE, KEYWORDS, LASTSAVEDBY, NUMCHARS, NUMPAGES, NUMWORDS, SUBJECT, TEMPLATE, TITLE |
$type |
|
access: | public |
example: | example not found |
mixed | $type | it can be 'comboBox', 'date', 'dropDownList' or 'richText' |
array | $options | Style options to apply to the text Values: 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'jc' (both, center, distribute, left, right) 'lineBreak' (before, after, both) 'columnBreak' (before, after, both) 'pageBreakBefore' (on, off) 'sz' (1, 2, 3...) 'u' (dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) 'lineSpacing' 120, 240 (standard), 480..., 'indent_left' 100..., 'indent_right' 100... 'placeholderText (string) text to be shown by default 'alias' (string) the label that will be shown by the structured document tag 'lock' (string) locking properties: sdtLocked (cannot be deleted), contentLocked (contents can not be edited directly), unlocked (default value: no locking) and sdtContentLocked (contents can not be directyly edited or the structured tag removed) 'tag' (string) a programmatic tag 'temporary (boolean) if true the structured tag is removed after editing 'rawWordML' (boolean) 'listItems' (array) an array of arrays each one of them containing the text to show and value |
|
access: | public |
string | $path | path to the subdocument |
string | $destination | path to where the subdocument should be stored if empty is assumed to remain in its original folder |
$originalPath |
|
array | $tableData | an array of arrays with the table data organized by rows Each cell content may be a string, WordMLFragment or array. If the cell contents are in the form of an array its keys and posible values are: 'value' (mixed) a string or WordMLFragment 'rowspan' (int) 'colspan' (int) 'width' (int) in twentieths of a point 'border' (none, single, double, dashed, threeDEngrave, threeDEmboss, outset, inset) 'border_color' (ffffff, ff0000) 'border_spacing' (0, 1, 2...) 'border_sz' (10, 11...) in eights of a point 'border_<side>' (none, single, double, dashed, threeDEngrave, threeDEmboss, outset, inset) where the side may be: top, left, right or bottom 'border_<side>_color' (ffffff, ff0000) 'border_<side>_spacing' (0, 1, 2...) 'border_<side>_sz' (10, 11...) 'background_color' (ffffff, ff0000) 'noWrap' (boolean) 'cellMargin' (mixed) an integer value or an array: 'top' (int) in twentieths of a point 'right' (int) in twentieths of a point 'bottom' (int) in twentieths of a point 'left' (int) in twentieths of a point 'textDirection' (string) available values are: tbRl and btLr 'fitText' (boolean) if true fits the text to the size of the cell 'vAlign' (string) vertical align of text: top, center, both or bottom |
array | $tableProperties | Parameters to use Values: 'bidi' (on, off) set it to on for right to left languages 'border' (none, single, double, dashed, threeDEngrave, threeDEmboss, outset, inset) 'border_color' (ffffff, ff0000) 'border_spacing' (0, 1, 2...) 'border_sz' (10, 11...) in eights of a point 'border_settings' (all, outside, inside) if all (default value) the border styles apply to all table borders. If the value is set to outside or inside the border styles will only apply to the outside or inside boreders respectively. 'cantSplitRows' (boolean) set global row split properties (can be overriden by rowProperties) 'cellMargin' (array) the keys are top, right, bottom and left and the values is given in twips (twentieths of a point) 'cellSpacing' (int) given in twips (twentieths of a point) 'float' (array) with the following keys and values: 'textMargin_top' (int) in twentieths of a point 'textMargin_right' (int) in twentieths of a point 'textMargin_bottom' (int) in twentieths of a point 'textMargin_left' (int) in twentieths of a point 'align' (string) posible values are: left, center, right, outside, inside 'font' (Arial, Times New Roman...) 'indent' (int) given in twips (twentieths of a point) 'jc' (center, left, right) 'decimalTab' 'size_col': column width fix (int) column width variable (array) 'tableWidth' (array) its posible keys and values are: 'type' (pct, dxa) pct if the value refers to percentage and dxa if the value is given in twentieths of a point (twips) 'value' (int) 'TBLSTYLEval' (string) Word table style 'rawWordML' (boolean) |
array | $rowProperties | (array) a cero based array. Each entry is an array with keys and values: 'cantSplit' (boolean) 'minHeight' (int) in twentieths of a point 'height' (int) in twentieths of a point 'tblHeader' (boolean) if true this row repeats at the beguinning of each new page |
|
access: | public |
example: | example |
array | $options | Values: 'autoUpdate' (boolean) if true it will try to update the TOC when first opened 'displayLevels' (string) must be of the form '1-3' where the first number is the start level an the second the end level. If not defined all existing levels are shown |
(array) | $legend | Values: 'pStyle' (string) Word style to be used. Run parseStyles() to check all available paragraph styles 'b' (on, off) 'color' (ffffff, ff0000...) 'font' (Arial, Times New Roman...) 'i' (on, off) 'indent_left' 100..., 'indent_right' 100... 'jc' (both, center, distribute, left, right) 'keepLines' (on, off) keep all paragraph lines on the same page 'keepNext' (on, off) keep in the same page the current paragraph with next paragraph 'lineSpacing' 120, 240 (standard), 480..., 'pageBreakBefore' (on, off) 'sz' (8, 9, 10, ...) 'text' (string) 'u' (none, dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) |
(string) | $stylesTOC | path to the docx with the required styles for the Table of Contents |
|
access: | public |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
string | $path | Path to the template file |
|
access: | public |
example: | example |
string | $var | Value of the variable |
string | $chart | Chart to add Values: same as charts. |
|
access: | public |
example: | example |
string | $var | Value of the variable. String |
string | $value |
|
access: | public |
example: | example |
string | $var | Value of the variable |
string | $pathImage | Path of the new image |
array | $options | Values: width (mixed): the value in cm (float) or 'auto' (use image size) height (mixed): the value in cm (float) or 'auto' (use image size) dpi (int): dots per inch. This parameter is only taken into account if width or height are set to auto. If any of these parameters is not set the width and/or height of the placeholder image will be preserved |
|
mixed | $var | Value of the variable. String, html or array of values |
string | $value | Text value, type of value, CSS or text array Values type of template: list, table, |
mixed | $settings | Template settings or content type Content types: html, rtf, docx, mht |
|
access: | public |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
example: | example |
mixed | $textParams | if a string just the text to be included, if an array is or an array of arrays with each element containing the text to be inserted and their formatting properties or a an instance of WordMLFragment Array values: 'text' (string) the run of text to be inserted 'b' (on, off) 'caps' (on, off) display text in capital letters 'color' (ffffff, ff0000...) 'columnBreak' (before, after, both) inserts a column break before, after or both, a run of text 'font' (Arial, Times New Roman...) 'i' (on, off) 'lineBreak' (before, after, both) inserts a line break before, after or both, a run of text 'sz' (1, 2, 3...) 'tab' (boolean) inserts a tab. Default value is false 'spaces': number of spaces at the beguinning of the run of text 'u' (none, dash, dotted, double, single, wave, words) 'rtl' (on, off) |
array | $paragraphParams | Style options to apply to the whole paragraph Values: 'pStyle' (string) Word style to be used. Run parseStyles() to check all available paragraph styles 'b' (on, off) 'bidi' (on, off) 'caps' (on, off) display text in capital letters 'color' (ffffff, ff0000...) 'contextualSpacing' (on, off) ignore spacing above and below when using identical styles 'firstLineIndent' 100, 200, ... 'font' (Arial, Times New Roman...) 'hanging' 100, 200, ... 'i' (on, off) 'indent_left' 100..., 'indent_right' 100... 'jc' (both, center, distribute, left, right) 'keepLines' (on, off) keep all paragraph lines on the same page 'keepNext' (on, off) keep in the same page the current paragraph with next paragraph 'lineSpacing' 120, 240 (standard), 360, 480, ... 'pageBreakBefore' (on, off) 'rawWordML' (boolean) 'rtl' (on, off) 'spacingBottom' (int) bottom margin in twentieths of a point 'spacingTop' (int) top margin in twentieths of a point 'sz' (8, 9, 10, ...) size in points 'tabPositions' (array) each entry is an associative array with the following keys and values 'type' (string) can be clear, left (default), center, right, decimal, bar and num 'leader' (string) can be none (default), dot, hyphen, underscore, heavy and middleDot 'position' (int) given in twentieths of a point if there is a tab and the tabPositions array is not defined the standard tab position (default of 708) will be used 'textDirection' (lrTb, tbRl, btLr, lrTbV, tbRlV, tbLrV) text flow direction 'u' (none, dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) |
|
array | $text | these are the same parameters used in the addText method The first array entry is the text to be included in the text box, the second one is itself another array with all the standard text formatting options |
array | $options | includes the specific textbox options Values: 'border' (int) 'border_color (string) color (black, red,...) or hexadecimal value (#ff0000, #0000ff, ...) 'align' (center, left, right) 'fillcolor' (string) color (black, red,...) or hexadecimal value (#ff0000, #0000ff, ...) 'width' (float) width in cm 'height' (float) height in cm 'textWrap' (tight, square, through, none) 'margin_left' (float) distance in cm 'margin_top' (float) distance in cm 'padding_bottom' (float) distance in cm 'padding_left' (float) distance in cm 'padding_right' (float) distance in cm 'padding_top' (float) distance in cm 'rawWordML' (boolean) |
|
access: | public |
example: | example |
array | $options | Values: 'wordML' (string) WordML to add 'rawWordML' (boolean) |
|
access: | public |
string | $variableName | |
string | $type | can be 'block'(default value): removes the containing paragraph or 'inline': just removes the variable. |
|
access: | public |
$wordML |
|
string | $args[0] | File name |
string | $args[1] | Page style Values: 'bottom' (4000, 4001...), 'columns' (1, 2, 3), 'left' (4000, 4001...), 'orient' (landscape), 'right' (4000, 4001), 'titlePage' (1), 'top' (4000, 4001) |
|
access: | public |
string | $args[0] | File name |
string | $args[1] | Page style Values: 'bottom' (4000, 4001...), 'left' (4000, 4001...), 'orient' (landscape), 'right' (4000, 4001), 'titlePage' (1), 'top' (4000, 4001) |
string | $args[2] | Download file name |
|
access: | public |
example: | example |
string | $name | the name we want to give to the created list |
array | $listOptions | an array with the different styling options for each level: 'type' can be decimal, lowerLetter, .... 'font' Symbol, Courier new, Wingdings, ... 'format' the default one is '%1.' for firs level, '%2' for second level and so long so forth 'hanging' the extra space for the numbering, should be big enough to accomodate it, the default is 360 'left' the left indent. The default value is 720 times the list level |
|
access: | public |
example: | example |
string | $name | the name we want to give to the created style |
mixed | $styleOptions | it includes the required style options Array values: 'b' (on, off) 'border' (on, off) if "on" you may set: border-width (int) page border width in eigths of a point (default value is 4) border-color (string) hexadecimal color ('000000' (default), 'FF0000', ...) border-style (string) none, single, double, ... (default value is single) border-space (int) border spacing in points (default is 24) border-<side>-width (int) page border width in eights of a point border-<side>-color (string) hexadecimal color ('000000' (default), 'FF0000', ...) border-<side>-style (string) none, single, double, ... (default value is single) border-<side>-space (int) border spacing in points (default is 24) 'caps' (on, off) display text in capital letters 'color' (ffffff, ff0000...) 'contextualSpacing' (on, off) ignore spacing above and below when using identical styles 'font' (Arial, Times New Roman...) 'hanging' 100, .... 'i' (on, off) 'indent_left' 100..., 'indent_right' 100... 'indent_firstLine' 100, ... 'jc' (both, center, distribute, left, right) 'keepLines' (on, off) keep all paragraph lines on the same page 'keepNext' (on, off) keep in the same page the current paragraph with next paragraph 'lineSpacing' 120, 240 (standard), 360, 480, ... 'outlineLvl' (int) heading level (1-9) 'pageBreakBefore' (on, off) 'spacingBottom' (int) bottom margin in twentieths of a point 'spacingTop' (int) top margin in twentieths of a point 'smallCaps' (on, off) display text in small caps 'sz' (8, 9, 10, ...) size in points 'textDirection' (lrTb, tbRl, btLr, lrTbV, tbRlV, tbLrV) text flow direction 'u' (none, dash, dotted, double, single, wave, words) 'widowControl' (on, off) 'wordWrap' (on, off) |
|
mixed | $data, | string or array |
$data |
|
access: | public |
string | $blockName | Block to remove |
|
access: | public |
example: | example not found |
array | $settingParameters | settings Keys and values: 'view' (string): none(default), print, outline, masterPages, normal (draft view), web 'zoom'(mixed): a percentage or none, fullPage (display one full page), bestFit (display page width), textFit (display text width) 'mirrorMargins' (bool) if true interchanges inside and outside margins in odd and even pages 'bordersDoNotSurroundHeader' (bool) 'bordersDoNotSurroundFooter' (bool) 'gutterAtTop' (bool) 'hideSpellingErrors' (bool) 'hideGrammaticalErrors' (bool) 'documentType' (string): notSpecified (default), letter, eMail 'trackRevisions' (bool) 'defaultTabStop'(int) in twips (twentieths of a point) 'autoHyphenation' (bool) 'consecutiveHyphenLimit'(int): maximum number of consecutively hyphenated lines 'hyphenationZone' (int) distance in twips (twentieths of a point) 'doNotHyphenateCaps' (bool): do not hyphenate capital letters 'defaultTableStyle' (string): the table style to be used by default 'bookFoldRevPrinting' (bool): reverse book fold printing 'bookFoldPrinting' (bool): book fold printing 'bookFoldPrintingSheets' (int): number of pages per booklet 'doNotShadeFormData' (bool) 'noPunctuationKerning' (bool): never kern punctuation characters 'printTwoOnOne' (bool): print two pages per sheet 'savePreviewPicture' (bool): generate thumbnail for document on save 'updateFields' (bool): automatically recalculate fields on open |
|
string | $html | HTML to add. Must be a valid XHTML |
array | $options: | isFile (boolean), baseURL (string), customListStyles (bool) if true try to use the predefined customm lists downloadImages (boolean), filter (string) could be an string denoting the id, class or tag to be filtered. If you want only a class introduce .classname, #idName for an id or <htmlTag> for a particular tag. One can also use standard XPath expresions supported by PHP. 'parseAnchors' (boolean), 'parseDivs' (paragraph, table): parses divs as paragraphs or tables, 'parseFloats' (boolean), 'strictWordStyles' (boolean) if true ignores all CSS styles and uses the styles set via the wordStyles option (see next) 'wordStyles' (array) associates a particular class, id or HTML tag to a Word style 'target' (string) document (default value), defaultHeader, firstHeader, evenHeader, defaultFooter, firstFooter, evenFooter, footnote, endnote and or comment. 'rawWordML' (boolean) |
$options |
|
access: | public |
|
access: | public |
|
access: | public |
example: | example |
|
access: | public |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
$path |
|
access: | public |
example: | example |
string | $path. | Path to the docx from which we wish to import the header and/or footer |
string | $type. | Declares if we want to import only the header, only the footer or both. Values: header, footer, headerAndFooter (default value) |
$path | ||
$type |
|
access: | public |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
$path |
|
access: | public |
string | $numberingsXML | the numberings.xml that we wish to modify |
string | $newNumbering | the new numbering style we wish to add. |
string | $numberId | a unique integer that determines the numbering id and the abstract numbering id |
$originalAbstractNumId |
|
access: | public |
example: | example |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
string | $type. | You may choose 'replace' (overwrites the current styles) or 'merge' (adds the selected styles) |
array | $myStyles. | A list of specific styles to be merged. If it is empty or the choosen type is 'replace' it will be ignored. |
$path | ||
$type | ||
$myStyles | ||
$styleIdentifier |
|
access: | public |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
$path |
|
access: | public |
string | $path. | Must be a valid path to an existing .docx, .dotx o .docm document |
$path |
|
access: | public |
example: | example |
array | $data | With the key, the name of the variable and the value the value of the input text |
|
access: | public |
example: | example not found |
array | $paperType | paperType (string): A4, A3, letter, legal, A4-landscape, A3-landscape, letter-landscape, legal-landscape, custom |
array | $options | options Values: width (int): measurement in twips (twentieths of a point) height (int): measurement in twips (twentieths of a point) numberCols (int): integer orient (string): portrait, landscape marginTop (int): measurement in twips (twentieths of a point) marginRight (int): measurement in twips (twentieths of a point) marginBottom (int): measurement in twips (twentieths of a point) marginLeft (int): measurement in twips (twentieths of a point) marginHeader (int): measurement in twips (twentieths of a point) marginFooter (int): measurement in twips (twentieths of a point) gutter (int): measurement in twips (twentieths of a point) bidi (on, off): set to 'on' for right to left languages rtlGutter (on, off): set to 'on' for right to left languages |
|
It returns a docx with all the available paragraph, list and table styles.
access: | public |
example: | example |
string | $path. | Optional, if empty lists the Ids of the current style sheet |
$path |
|
access: | public |
example: | example |
string | $path | Path to DOCX file |
|
access: | public |
example: | example |
string | $var | Value of the variable |
string | $pathImage | Path of the new image |
|
access: | public |
example: | example |
string | $var | Value of the variable. |
string | $html | HTML source |
array | $options: | isFile (boolean), customListStyles (bool) if true try to use the predefined customm lists baseURL (string), downloadImages (boolean), filter (string) could be an string denoting the id, class or tag to be filtered. If you want only a class introduce .classname, #idName for an id or <htmlTag> for a particular tag. One can also use standard XPath expresions supported by PHP. 'parseAnchors' (boolean), 'parseDivs' (paragraph, table): parses divs as paragraphs or tables, 'parseFloats' (boolean), 'strictWordStyles' (boolean) if true ignores all CSS styles and uses the styles set via the wordStyles option (see next) 'wordStyles' (array) associates a particular class, id or HTML tag to a Word style |
type | $type | inline or block |
$options |
|
access: | public |
example: | example |
string | $color | Values: hexadecimal color value without # (ffff00, 0000ff, ...) |
|
access: | public |
string | $symbol | Values: '.', ',',... |
|
access: | public |
example: | example |
string | $font | The new font Values: 'Arial', 'Times New Roman'... |
|
access: | public |
example: | example |
$lang | $lang | Locale: en-US, es-ES... |
|
access: | public |
array | $options | values: 'bidi' (bool) 'rtl' (bool) |
|
access: | public |
string | $symbol | The new symbol. Optional, $ as default |
|
access: | public |
$xmlContentTypes |
|
access: | public |
$xmlDocPropsApp |
|
access: | public |
$xmlDocPropsCore |
|
access: | public |
$xmlDocPropsCustom |
|
access: | public |
$xmlWordDocument |
|
access: | public |
$xmlWordDocumentStyles |
|
access: | public |
$xmlWordEndnotes |
|
access: | public |
$xmlWordFontTable |
|
access: | public |
$xmlWordFooter |
|
access: | public |
$xmlWordHeader |
|
access: | public |
$xmlWordRelsDocumentRels |
|
access: | public |
$xmlWordSettings |
|
access: | public |
$xmlWordStyles |
|
access: | public |
$xmlWordThemeTheme |
|
access: | public |
$xmlWordWebSettings |
|
access: | public |
example: | example |
string | $var | variables name |
int | $value | 1 (check) or 0 (uncheck) |
|
access: | public |
example: | example not found |
string | $docSource | |
string | $docDestination | |
string | $tempDir | |
array | $options | : · method : 'direct' (default), 'script' ; 'direct' method uses passthru and 'script' uses a external script. If you're using Apache and 'direct' doesn't work use 'script' · 'odfconverter' : true (default) or false. Use odf-converter. |
string | $version | 32, 64 or null (default). If null autodetect |
|
Supported formats, DOCX and DOC to PDF, RTF, HTML and DOC
access: | public |
$docSource | $docSource | You should use the full Windows path to the docx (remember to escape backslashes) |
$docDestination | $docDestination | ou should use the full Windows path to the docx (remember to escape backslashes) |
|
access: | public |
example: | example |
string | $path. | Path to the text file from which we insert into docx document |
array | $options | of style values keys: styleTbl, styleLst, styleP |
$text_filename |
|
return: | Return current word |
access: | public |
[line 23]
[line 24]
[line 26]