We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd like to known if its possible to only show the PDFViewer if the Document was finished rendering.! Thanks! :)
<PDFViewer style={{ width: '100%', height: '500px' }}> <Document> <Page size="A4" style={styles.page}> <View style={styles.mainHeader}> <Image style={styles.networkLogo} src={makeImageUrl(selectedNetwork.image)} /> <Text style={styles.networkName}> {t('bulletin.pdfNetworkTitle', [ selectedNetwork.name, readableDate(dateTime), ])} </Text> <ButtonRows buttons={buttons} buttonTypes={buttonTypes} /> </View> </Page> </Document> </PDFViewer>
the whole source code is here: https://github.com/helpbuttons/helpbuttons/blob/dev/web/src/pages/Bulletin/index.tsx#L149
write code to generate and render a PDF in react on-the-fly
I expected to have a way to known how the pdf is being loaded, so that PDFViewer won't fail to load
it fails to load the pdf sometimes.
An error occurred while loading the PDF. PDF.js v4.5.252 (build: e44e4db52) Message: 2152398850 [viewer.mjs:12081:13](resource://pdf.js/web/viewer.mjs) _otherError resource://pdf.js/web/viewer.mjs:12081 _documentError resource://pdf.js/web/viewer.mjs:12058 windowMessage resource://pdf.js/web/viewer.mjs:2039 (Async: EventListener.handleEvent) initPassiveLoading resource://pdf.js/web/viewer.mjs:2001 run resource://pdf.js/web/viewer.mjs:11812 webViewerLoad resource://pdf.js/web/viewer.mjs:13633
No response
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.
Sorry, something went wrong.
No branches or pull requests
Before you start - checklist
Description
I'd like to known if its possible to only show the PDFViewer if the Document was finished rendering.! Thanks! :)
the whole source code is here:
https://github.com/helpbuttons/helpbuttons/blob/dev/web/src/pages/Bulletin/index.tsx#L149
Steps to reproduce
write code to generate and render a PDF in react on-the-fly
Expected behavior
I expected to have a way to known how the pdf is being loaded, so that PDFViewer won't fail to load
Actual behavior
it fails to load the pdf sometimes.
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: