DataExplorer icon indicating copy to clipboard operation
DataExplorer copied to clipboard

Charts run off the edge of PDF pages

Open tcash21 opened this issue 3 years ago • 1 comments

I'm using the below command in a shiny app to generate a PDF report using the output from create_report. I've tried several datasets and for some reason the charts sometimes leak off the edge of the PDF pages (see screenshot). Thank you for any help.

the_report_file <- tempfile(tmpdir = ".", pattern = "report", fileext =".pdf")
create_report(for_profile, output_file = the_report_file, y = input$col_dependent, output_format = pdf_document(), config = configure_report(add_plot_str = FALSE))

image

tcash21 avatar Apr 04 '22 16:04 tcash21

Hi @tcash21 thanks for the information, and I can re-produce this with any dataset. While I do not have an immediate solution, please generate a html report and manually save it as pdf, if that is an option. I tested that route, and the pdf report looks OK.

Thanks again for raising this issue!

boxuancui avatar Apr 04 '22 19:04 boxuancui