Document component is used to create a layout for document pages. It provides a structured way to set the size, orientation, and margin of the document.
Usage
Props
string
required
The size of the document. Must be one of: “A3”, “A4”, “A5”, “letter”, or “legal”.
string
required
The orientation of the document. Must be either “portrait” or “landscape”.
string | React.CSSProperties['margin']
The margin of the document. Can be a string (e.g., “0.39in”) or a valid CSS margin value.
React.ReactNode
required
The content of the document.