Skip to main content

HTML to PDF how to avoid a picture to break

Updated over 4 months ago

HTML to PDF how to avoid a picture to break

Zapier and Integromat/Make

Please add this in the Profiles field {"HTMLCodeHeadInject":"<style> @media print { div,p { break-inside: avoid !important; } } </style>"}"

For Developers

Please add the profiles param in your code below:

{
   "profiles": "{'HTMLCodeHeadInject':'<style> @media print { div,p { break-inside: avoid !important; } } </style>'}"
}

Applies To:

  • pdf/convert/from/html

  • pdf/convert/from/url

Did this answer your question?