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

Incredibly slow generation #6

Open
brandondeweese opened this issue Feb 11, 2021 · 2 comments
Open

Incredibly slow generation #6

brandondeweese opened this issue Feb 11, 2021 · 2 comments

Comments

@brandondeweese
Copy link

Very very slow generation of a page. Even has timed out my server. Is this a common occurrence?

Also, is there a way to generate on click instead of as the page loads?

@jacobgraf
Copy link
Owner

In my experience, it takes the PDFShift servers about ~2 seconds to generate and return the PDF. What kind of speeds are you seeing from the time you click the link until the time the PDF begins downloading?

In order to generate a link to the PDF, you can use this method (https://github.com/jacobgraf/pdfshift#return-url-to-pdf-document), but in any way, the PDF is requested/generated when the link is clicked.

@brandondeweese
Copy link
Author

When it generates them, usually takes 10+ seconds. But about half the time it times out. I'll keep working on it and see if have any errors, but it hasn't been ideal.

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

No branches or pull requests

2 participants