Skip to content

fix blank page before plot while export img to pdf#172

Open
shun2wang wants to merge 1 commit intojasp-stats:masterfrom
shun2wang:fixPdf
Open

fix blank page before plot while export img to pdf#172
shun2wang wants to merge 1 commit intojasp-stats:masterfrom
shun2wang:fixPdf

Conversation

@shun2wang
Copy link
Contributor

Fix: https://github.com/jasp-stats/INTERNAL-jasp/issues/2782

Set onefile=FALSE : “generate a file with name containing the page number for each page”, see: https://stat.ethz.ch/R-manual/R-devel/library/grDevices/html/pdf.html ,So this needs to be discussed, I'm not sure if there are any other side effects of doing this

@shun2wang shun2wang requested a review from vandenman April 15, 2025 03:18
@vandenman
Copy link
Contributor

I'm not sure if this is the correct solution, as far as I know, the issue arises as a consequence of incorrectly calling grid.newpage() somewhere in the analysis or in jaspGraphs. Also, the issue is not that there are multiple files, (which is what onefile is about) but that there is one file with multiple pages.

@shun2wang
Copy link
Contributor Author

shun2wang commented Apr 23, 2025

Seems we are not only one has this issue: https://stackoverflow.com/questions/12481267/in-r-how-to-prevent-blank-page-in-pdf-when-using-gridbase-to-embed-subplot-insi

From EJ's test case it's also to export only one img to PDF but not using export all results.

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

Successfully merging this pull request may close these issues.

2 participants