Print preview and pdf export do not match

I am using a native bootstrap code in the ‘custom html’ field in my print format as shown below.

<div class="row">
  <div class="col-md-4">.col-md-4</div>
  <div class="col-md-4">.col-md-4</div>
  <div class="col-md-4">.col-md-4</div>

The print preview is okay and displays correctly.
The problem occurs in the pdf export. The views of the print preview and pdf export do not match. Seems like a bug and hence I have submitted on github issue 8199


1 Like

Hi I believe there’s really going to be a difference. So my advice just make your code be flexible in both features (print preview & pdf)

As a work around I’m using a lot of &nbsp to get the desired spacing but then again it’s a bug

We just use the print preview option and then Save as PDF in Chrome. Using the PDF generate button also uses more memory I believe.

@Ankit_Kumar you should use “col-xs-”, instead of “col-md-” for the print-formats get right!


It worked. Thank you.

This topic was automatically closed after 24 hours. New replies are no longer allowed.