Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long single page + A4 size #2844

Open
jooyoni opened this issue Aug 16, 2024 · 1 comment
Open

Long single page + A4 size #2844

jooyoni opened this issue Aug 16, 2024 · 1 comment

Comments

@jooyoni
Copy link

jooyoni commented Aug 16, 2024

Hello,
Thank you for developing such a great library.
I have a question regarding this library.
I have successfully implemented an A4-sized PDF using this library.
However, I am a bit disappointed with the content being cut off due to page breaks.
Therefore, I would like to create a PDF with the width of an A4 size but without any height limitation, effectively making it a single-page document.
Is there a way to achieve this using this library?

@volskaya
Copy link

volskaya commented Aug 16, 2024

You can do that if you pass undefined as height to the page, instead of using A4.

<Page
   size={{ width: 595.28, height: undefined }}
   style={styles.page}
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants