-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PDFDownloadLink not working using Next js #2754
Comments
I ran into this same problem and what I found weird is that it works without |
Thanks.
求真
***@***.***
…------------------ 原始邮件 ------------------
发件人: "diegomura/react-pdf" ***@***.***>;
发送时间: 2024年5月20日(星期一) 晚上6:52
***@***.***>;
***@***.******@***.***>;
主题: Re: [diegomura/react-pdf] PDFDownloadLink not working using Next js (Issue #2754)
I ran into this same problem and what I found weird is that it works without Text elements, but when using text loading is never set to false. Based on discussions on a different issue, it happens when using custom fonts in the text, it's caused by a dependency of react-pdf, this helped me #2675 (comment).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"@react-pdf/renderer": "^3.4.4"
"next": "14.2.1",
{myDocument && <PDFDownloadLink document={myDocument} fileName={project.company.jgmc + project.year + ".pdf"}>
{({ blob, url, loading, error }) => {
console.log("loading=" + loading)
return error ? error.toString() :
loading ? 'Loading...' : <>Pdf</>
}}
}
console:
loading=false
loading=true
web: The page keeps displaying "Loading..."
Click No Response
The text was updated successfully, but these errors were encountered: