Snippets
- Learn phpdocx in 5 minutes
- Tutorial
- API quick guide
- HTML to Word
- HTML Extended
- Conversion plugin
- Word to HTML
- DOCXPath
- Bulk processing
- DOCXCustomizer
- Digital signature
- Cryptophpdocx
- Right to left languages
- phpdocx CLI command
- Tracking
- Artificial Intelligence
- Blockchain for documents
- JavaScript API
- Compiled mode
Snippets
Short fragments of code for specific tasks
The phpdocx snippets contain code and simple explanations to perform specific tasks in order to help you save development time.
- Adding images side by side
- Fixed table widths using addTable
- Prevent break tables using addTable
- Separate items in a list with blanks
- Tables without spacing between them
- Fixed table widths using HTML
- Prevent page break in paragraphs using HTML
- Prevent break tables using HTML
- Add a footnote and other block contents as inline contents using HTML Extended
- Adding more than one content into a single WordFragment as block elements
- Adding more than one content into a single WordFragment as inline elements
- Generate a WordFragment from WordML (OOXML)
- Return the WordML (OOXML) from a WordFragment
- Clone blocks replacing placeholders
- Remove an image that contains a placeholder
- Replace placeholders in all targets
- Replace placeholders with the same name by unique values
- Query reference nodes that uses a specific custom character style
- Query reference nodes that uses a specific custom paragraph style
- Query reference nodes that uses a specific custom table style
- Remove the last paragraph in a DOCX
- Case insensitive queries
- Empty header and footer in the first page
- Get font size from a content
- Include entity characters in MathML equations
- PDF to PNG using PHP ImageMagick
- Translate "page of" contents