Closed ItaiYuda closed 2 years ago
Hi,
I am trying to set a page break in a pdf A4 page.
My options:
let options = { html, width: 595, height: 842, fileName: ...myFileName, directory: 'Documents' };
I added a class with page break properties to the html style and added the class before the Weather section div:
.page-break-before { display: block; page-break-before: always; page-break-after: auto; page-break-inside: avoid; }
when I generate the pdf, in the dev environment everything works as expected:
(The page break should appear before the Weather section)
but in production, the page break doesn't seem to work:
It occurs on Android only.
"react-native-html-to-pdf": "0.11.0", "react": "17.0.2", "react-native": "0.64.2",
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
I am trying to set a page break in a pdf A4 page.
My options:
I added a class with page break properties to the html style and added the class before the Weather section div:
when I generate the pdf, in the dev environment everything works as expected:
(The page break should appear before the Weather section)
but in production, the page break doesn't seem to work:
OS
It occurs on Android only.
Environment