drposter icon indicating copy to clipboard operation
drposter copied to clipboard

Print as PDF using Chrome for large size poser

Open MatRapi opened this issue 7 years ago • 4 comments

Hi, I have the issue that printing the poster at a size of 60x36" does not work properly using "print as pdf" in Chrome.

I adjusted the page size in the page.css file into:

@page { size: 1524mm 915mm; margin: 0; }

html { margin: 0; width: 1524mm; height: 915mm; padding: 2.5cm; /* Overall document "margins" (while keeping the background, etc.) */ }

The format is translated appropriately within chrome, but when trying to print, the content is broken into two pages.

Any ideas what I do wrong?

MatRapi avatar Sep 19 '18 18:09 MatRapi

Your CSS looks okay, so I only have a few broad guesses. Are you printing to PDF? Do you need to move things from one column to another (add another .{col-2} class, etc)? Unfortunately the package doesn't reflow columns automatically, and if a column is has too much content then it will get pushed onto another page. (or if there are too many columns)

bbucior avatar Sep 19 '18 18:09 bbucior

Hi, thanks for your fast response! Really appreciate that.

Yes, I am trying to print to pdf within Chrome.

I am using three {.col-3} classes. Within those, there are three to four contents. Looks like that:

{.col-3}

Abstract

###Background ...

###Objective …

###Methods …

###Conclusion …

##Study Design Figure

##Baseline Characteristics of Study Population

{.col-3}

##Baseline Figure 2:

Content

Subheading

Figure 3:

###Content Figure 4:

##Content ###Subheading Figure 5

###Subheading Figure 6

{.col-3}

##Content

##Content

##Content

My understanding was that the css adapts size of figures, fonts, etc based on their number and the page’s size. Can it be forced to stay on one page?

Von: Ben Bucior [email protected] Antworten an: bbucior/drposter [email protected] Datum: Mittwoch, 19. September 2018 um 11:49 An: bbucior/drposter [email protected] Cc: Dr Raschpichler [email protected], Author [email protected] Betreff: Re: [bbucior/drposter] Print as PDF using Chrome for large size poser (#7)

Your CSS looks okay, so I only have a few broad guesses. Are you printing to PDF? Do you need to move things from one column to another (add another .{col-2} class, etc)? Unfortunately the package doesn't reflow columns automatically, and if a column is has too much content then it will get pushed onto another page. (or if there are too many columns)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bbucior/drposter/issues/7#issuecomment-422917091, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApaJUCw-pBQblrpo3Iw1KJhXNPdVA-qqks5ucpHCgaJpZM4WwuUo.

MatRapi avatar Sep 19 '18 19:09 MatRapi

It would be great if it did that (like an automatic zoom), but unfortunately it only adds additional spacing as it's available, not shrinking content to make room.

If you don't feel like playing with the default font size (in the html block of fonts.css) or setting figure scaling rules, you might be able to set a document-wide zoom for printing by adding a few things to your page.css:html styles, but YMMV.

zoom: 0.5;  /* 50% size */
margin: auto;  /* re-center, since now there will be extra margins on the sides */

bbucior avatar Sep 19 '18 20:09 bbucior

Thanks. I converted the poster into LaTeX. Will try your suggestions asap.

Von: Ben Bucior [email protected] Antworten an: bbucior/drposter [email protected] Datum: Mittwoch, 19. September 2018 um 13:34 An: bbucior/drposter [email protected] Cc: Dr Raschpichler [email protected], Author [email protected] Betreff: Re: [bbucior/drposter] Print as PDF using Chrome for large size poser (#7)

It would be great if it did that (like an automatic zoom), but unfortunately it only adds additional spacing as it's available, not making additional space.

If you don't feel like playing with the default font size (in the html block of fonts.css) or setting figure scaling rules, you might be able to set a document-wide zoom for printing by adding a few things to your page.css:html styles, but YMMV.

zoom: 0.5; /* 50% size */

margin: auto; /* re-center, since now there will be extra margins on the sides */

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bbucior/drposter/issues/7#issuecomment-422948784, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ApaJUAPuBYTYiXC5OtQ0QLERN253QDu4ks5ucqpkgaJpZM4WwuUo.

MatRapi avatar Sep 20 '18 00:09 MatRapi