Forum

Optimize speed for ...
 
Notifications
Clear all

Optimize speed for domPdf?

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

Optimize speed for domPdf?

1 Answer
0
Topic starter

A: 1. Do not use any TABLE / TR /TD tag, replace it with SPAN or DIV and set css for it ( http://www.w3schools.com/html/html_layout.asp )

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 !

Odpowiedź

Author Name

Author Email

Your question *

Preview 0 Revisions Saved
Share: