ruby on rails - PDF Print view not the same between development and production environments using wkhtmltopdf/wicked_pdf -


i using wkhtmltopdf/wicked_pdf generate pdf view in rails on heroku. running mac os x locally.

here 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 issue having some of css code rendering correctly on both local environment , production while other css code appears ignored. code used repeat table headers , prevent rows being split on 2 pages. 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 2 images depicting discrepancy:
local:
https://docs.google.com/a/digiquatics.com/file/d/0b321e2h8q00czwlmcfryaxrrsek/edit
production:
https://drive.google.com/file/d/0b321e2h8q00cndi1vfl3ntdzzlu/view

thank in advance!


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -