Optimize speed for ...
Clear all

Optimize speed for domPdf?

1 Posty
1 Users
0 Reactions
2,531 Widok
Topic starter

Optimize speed for domPdf?

1 Answer
Topic starter

A: 1. Do not use any TABLE / TR /TD tag, replace it with SPAN or DIV and set css for it ( )

A: 2. Replace all withe spaces from HTML, /r/n replace with nothing, replace double wihitespace with nothing.

A: 3. I you have to use table, avoid colspan and rowspan, they give extrmely lag to whole documment. Avoid % sizes, make them static like width:100px, not width:100%

A: Keep PHP fresh, upgrade it

A: and…fastest option in whole world is to USE wkhtmltopdf !


Author Name

Author Email

Your question *

Preview 0 Revisions Saved