本文整理汇总了PHP中CreateDocx::addStructuredDocumentTag方法的典型用法代码示例。如果您正苦于以下问题:PHP CreateDocx::addStructuredDocumentTag方法的具体用法?PHP CreateDocx::addStructuredDocumentTag怎么用?PHP CreateDocx::addStructuredDocumentTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CreateDocx
的用法示例。
在下文中一共展示了CreateDocx::addStructuredDocumentTag方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateDocx
<?php
//path to the CreateDocx class within your PHPDocX installation
require_once '../../../classes/CreateDocx.inc';
$docx = new CreateDocx();
//Combo box
$list = array(array('First Choice', 1), array('second choice', 2), array('Third choice', 3));
$options = array('listItems' => $list, 'placeholderText' => 'Choose a value or write it down', 'alias' => 'Combo Box', 'fontSize' => 12, 'italic' => true, 'color' => 'FF0000', 'bold' => true, 'underline' => 'single', 'font' => 'Algerian');
$docx->addStructuredDocumentTag('comboBox', $options);
//date
$options = array('placeholderText' => 'Choose a date', 'alias' => 'Date picker', 'fontSize' => 14, 'italic' => true, 'color' => '777777', 'bold' => true, 'font' => 'Calibri');
$docx->addStructuredDocumentTag('date', $options);
//dropdown
$list = array(array('One', 1), array('Two', 2), array('Three', 3));
$options = array('listItems' => $list, 'placeholderText' => 'Choose a value', 'alias' => 'Dropdown menu', 'fontSize' => 12);
$docx->addStructuredDocumentTag('comboBox', $options);
//richText
$options = array('placeholderText' => 'This text is locked', 'alias' => 'Rich text', 'lock' => 'contentLocked');
$docx->addStructuredDocumentTag('richText', $options);
$docx->createDocx('example_addStructuredDocumentTag_1');