DocumentSection
Divides a PDF document into sections.
This component is available in the free-tier functionality of this module
Component Signature
<bx:DocumentSection marginBottom=[numeric]
marginLeft=[numeric]
marginRight=[numeric]
marginTop=[numeric]
mimeType=[string]
name=[string]
srcfile=[string]
src=[string]
userAgent=[string]
authPassword=[string]
authUser=[string] />Attributes
marginBottom
numeric
false
The bottom margin of the section in the unit specified in the document component.
marginLeft
numeric
false
The left margin of the section in the unit specified in the document component.
marginRight
numeric
false
The right margin of the section in the unit specified in the document component.
marginTop
numeric
false
The top margin of the section in the unit specified in the document component.
mimeType
string
false
The mime type of the content. If the content is a file, the mime type is determined by the file extension. If the content is a URL, the mime type is determined by the HTTP response.
name
string
false
The name of the section. This is used as a bookmark for the section.
srcfile
string
false
The absolute path of the file to include in the section.
src
string
false
The URL or path relative to the web root of the content to include in the section.
userAgent
string
false
The HTTP user agent identifier to use when fetching the content from a URL. Not currently implemented
authPassword
string
false
The authentication password to use when fetching the content from a URL. Not currently implemented
authUser
string
false
The authentication user name to use when fetching the content from a URL. Not currently implemented
Examples
Named Sections with Bookmarks
External Content Sections
Custom Section Margins
Mixed Content Types
Section Bookmarks
When the name attribute is specified and the document has bookmark="true", sections automatically create PDF bookmarks for easy navigation. The bookmark hierarchy follows the order of sections in the document.
Related Components
Document - Main component for PDF generation
DocumentItem - Specifies headers, footers, and page breaks
Last updated
Was this helpful?
