PDF The print version is independent of the development and production environment using wkhtmltopdf / wicked_pdf

I use wkhtmltopdf / wicked_pdf to create a PDF presentation in Rails on Heroku. I use Mac OS X locally.

Here are my versions:
 - Ruby 2.1.3 (Both)
 - Rails 4.0.3 (both)
 - wkhtmltopdf-binary-edge, 0.12.2.1 (local)
 - wkhtmltopdf-amd64, 0.12.2.1 (Production)
 - wicked_pdf, 0.11.0 (Both)

The problem I am facing is that some CSS codes display correctly both in my local environment and during production, while other CSS code is ignored. In particular, the code used to repeat table headers and prevent two-page row splitting. See below:

.table-break { page-break-inside:auto !important; }
.row-break { page-break-inside:avoid !important; page-break-after:auto !important; }
.head-break { display:table-header-group !important; }

Here are two images depicting this mismatch:
Local:
https://docs.google.com/a/digiquatics.com/file/d/0B321e2H8Q00CZWlmcFRyaXRRSEk/edit
Production:
https://drive.google.com/file/d/0B321e2H8Q00CLDI11 / view

Thank you in advance!

+4
source share

All Articles