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
I need to generate a PDF with one long page (no page breaks).
I define my page component as follows:
<Document> <Page size={{ width: 1800 }} style={PDFCommonStyles.page}> {/* ...content... */} </Page> </Document>
My style: const PDFCommonStyles = StyleSheet.create({ page: { padding: 30, }, });
However, this does not work and I keep getting this console error: hook.js:608 RangeError: Invalid array length at Array.push (<anonymous>) at y (yoga-wasm-base64-esm.js:62:248) at 000460e2:0xcb26 at 000460e2:0xa4d at 000460e2:0x9078 at 000460e2:0x9abf at 000460e2:0x52c3 at 000460e2:0x70c5 at 000460e2:0xbaf9 at 000460e2:0x7100
How can I define auto height for my PDF page? What am I doing wrong?
Is there a recommended way to create a single, scrollable page that fits all content?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to generate a PDF with one long page (no page breaks).
I define my page component as follows:
<Document> <Page size={{ width: 1800 }} style={PDFCommonStyles.page}> {/* ...content... */} </Page> </Document>My style:
const PDFCommonStyles = StyleSheet.create({ page: { padding: 30, }, });However, this does not work and I keep getting this console error:
hook.js:608 RangeError: Invalid array length at Array.push (<anonymous>) at y (yoga-wasm-base64-esm.js:62:248) at 000460e2:0xcb26 at 000460e2:0xa4d at 000460e2:0x9078 at 000460e2:0x9abf at 000460e2:0x52c3 at 000460e2:0x70c5 at 000460e2:0xbaf9 at 000460e2:0x7100How can I define auto height for my PDF page? What am I doing wrong?
Is there a recommended way to create a single, scrollable page that fits all content?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions