Snippets
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
- 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 an image that contains a placeholder
- 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