-
Notifications
You must be signed in to change notification settings - Fork 22
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
Extra pages #5
Comments
@hatton What version are you using?
I've just released v1.0.7. Let me see if it works for you. |
I have the same problem. And And it's only getting the first page. If the content is longer than one page, it only prints the first page and a blank page. |
@joseantgv Can you try the latest docker version? This can ensure that the environments are the same across different platforms. docker run --rm -it \
-v $(pwd)/pdf:/app/pdf \
openbayes/docusaurus-prince-pdf:master \
-u https://docusaurus.io/docs/cli The output: |
This is what I've got after some investigation according to Prince CLI docs. A4 size: docker run --rm -it \
-v $(pwd)/pdf:/app/pdf \
openbayes/docusaurus-prince-pdf:master \
-u https://docusaurus.io/docs/api/misc/create-docusaurus --prince-args="--page-size='210mm 297mm'" Output: docusaurus.io-docs-api-misc-create-docusaurus-a4.pdf Letter size: docker run --rm -it \
-v $(pwd)/pdf:/app/pdf \
openbayes/docusaurus-prince-pdf:master \
-u https://docusaurus.io/docs/api/misc/create-docusaurus --prince-args="--page-size='215.9mm 279.4mm'" Output: docusaurus.io-docs-api-misc-create-docusaurus-letter.pdf @hatton Actually the default output is 8.5 x 11 in when no |
A couple of issues:
I'm running on Windows So I tried:
And the result:
I have "build && serve" my instance and it's accessible with the browser. Maybe it's not working in local environment? Thanks for your effort 🙌 |
If you need to generate PDF from localhost using Docker image. You need to replace |
Oh same problem :(
|
@joseantgv This works for me on macOS :( Try to deploy your site external so that program inside the container can access it. Or you can try the latest |
Ok, we move forward :) I have uploaded the content to a public site and it's fetched now. But I get:
If I execute
|
These blank pages are caused by long code blocks, to fix see #31. |
Using
npx docusaurus-prince-pdf -u https://docusaurus.io/docs/cli --selector '.pagination-nav__link--next'
I get a PDF in which every other page is empty:
I don't know if it matters, but I'm in the USA and the pages are coming out 8.5 x 11 in, not A4.
Any ideas?
The text was updated successfully, but these errors were encountered: