<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ``` <?php header("Content-Type: text/html; charset=UTF-8"); include "phpword/PHPWord.php"; $PHPWord = new PHPWord(); $PHPWord->addFontStyle('rStyle', array('bold' => true, 'italic' => true, 'size' => 16)); $PHPWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100)); $PHPWord->addTitleStyle(1, array('bold' => true), array('spaceAfter' => 240)); $section = $PHPWord->createSection();//創建新頁面 $section->addTitle('歡迎使用', 1); $section->addText('中國'); $section->addTextBreak(2); // Link $section->addLink('http://www.google.com', null, '中國'); $section->addTextBreak(); // Image $section->addImage('1.jpg', array('width'=>180, 'height'=>180)); //表格-------------------------------------------------------------------------------------------- // Define table style arrays $styleTable = array('borderSize'=>6, 'borderColor'=>'006699', 'cellMargin'=>80); $styleFirstRow = array('borderBottomSize'=>18, 'borderBottomColor'=>'0000FF', 'bgColor'=>'66BBFF'); // Define cell style arrays $styleCell = array('valign'=>'center'); $styleCellBTLR = array('valign'=>'center', 'textDirection'=>PHPWord_Style_Cell::TEXT_DIR_BTLR); // Define font style for first row $fontStyle = array('bold'=>true, 'align'=>'center'); // Add table style $PHPWord->addTableStyle('myOwnTableStyle', $styleTable, $styleFirstRow); // Add table $table = $section->addTable('myOwnTableStyle'); // Add row $table->addRow(900); // Add cells $table->addCell(2000, $styleCell)->addText('姓名 1', $fontStyle); $table->addCell(2000, $styleCell)->addText('性別 2', $fontStyle); $table->addCell(2000, $styleCell)->addText('Row 3', $fontStyle); $table->addCell(2000, $styleCell)->addText('Row 4', $fontStyle); $table->addCell(500, $styleCellBTLR)->addText('Row 5', $fontStyle); // Add more rows / cells for($i = 1; $i <= 10; $i++) { $table->addRow(); $table->addCell(2000)->addText("我 $i"); $table->addCell(2000)->addText("Cell $i"); $table->addCell(2000)->addText("Cell $i"); $table->addCell(2000)->addText("Cell $i"); $text = ($i % 2 == 0) ? 'X' : ''; $table->addCell(500)->addText($text); } //-------------------------------------表格結束------------------------------------------------------- // Add table $table = $section->addTable(); for($r = 1; $r <= 10; $r++) { // Loop through rows // Add row $table->addRow(); for($c = 1; $c <= 5; $c++) { // Loop through cells // Add Cell $table->addCell(1750)->addText("行 $r, 列 $c"); } } //-----------------------------簡單表格---------------------------- // Add 頁頭 $header = $section->createHeader(); $table = $header->addTable(); $table->addRow(); $table->addCell(4500)->addText('我是頁頭.'); $table->addCell(4500)->addImage('1.jpg', array('width'=>50, 'height'=>50, 'align'=>'right')); // Add 頁尾 $footer = $section->createFooter(); $footer->addPreserveText('第 {PAGE} 頁共 {NUMPAGES} 頁', array('align'=>'center')); $section->addTextBreak(2); // Add hyperlink elements $section->addLink('http://www.google.com', '最好的搜索', array('color'=>'0000FF', 'underline'=>PHPWord_Style_Font::UNDERLINE_SINGLE)); $section->addTextBreak(2); $PHPWord->addLinkStyle('myOwnLinkStyle', array('bold'=>true, 'color'=>'808000')); $section->addLink('http://www.bing.com', '描述', 'myOwnLinkStyle'); $section->addLink('http://www.yahoo.com', '超級鏈接', 'myOwnLinkStyle'); // Add listitem elements $section->addListItem('列表 1', 0); $section->addListItem('List Item 1.1', 1); $section->addListItem('List Item 1.2', 1); $section->addListItem('List Item 1.3 (styled)', 1, array('bold'=>true)); $section->addListItem('List列表Item 1.3.1', 2); $section->addListItem('List Item 1.3.2', 2); $section->addTextBreak(2); $objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007'); $objWriter->save('demo.doc'); ?> ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看