You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newly defined intrinsic elements have the `pdf-` prefix. Roughly, each type of PDF Make node corresponds to one element type, where the property specifying `Content` is mapped to the `children` prop. For example:
76
+
Newly defined intrinsic elements by this package have the `pdf-` prefix. Roughly speaking, each type of PDF Make content object corresponds to one element type, where the property specifying the`Content` is mapped to the `children` prop. For example:
There are also virtual element types. For more information, read [JSDocs in types](./src/types/PdfElements.ts) for more information.
90
+
91
+
### Document, Header, and Footer
92
+
93
+
You can easily define extra document definition props straight inside your JSX using `<PdfDocument>`. It is optional to put the body of the document inside this component.
94
+
95
+
Implemented using React Portals, you can define static/dynamic header and footer using `<PdfHeader>` and `<PdfFooter>`.
96
+
97
+
These components can appear anywhere within your JSX structure, although you may follow this convention for a better looking structure:
There are also virtual element types. For more information, read JSDocs in types.
119
+
### PdfPreview
120
+
121
+
`<PdfPreview>` provides an easy way to render your React PDF Make Reconciler JSX in the browser. You can also debug your PDF JSX using the [React Developer Tools](https://chromewebstore.google.com/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi) browser extension.
0 commit comments