php - mPDF how to set up flexible height a paper size -


i use mpdf. want set flexible height paper size.

$mpdf = new mpdf('utf-8', array(224, 500)); 

the length of 500 not constant because change according content. may less or more 500.

to set automatic height. make changes according content. do?

this may you: https://mpdf.github.io/paging/different-page-sizes.html

the functions addpage() , tocpagebreak() both have parameters select sheet size.

accepted values - same options original mpdf() - are:

"a4", "a3", "letter" etc "a4-l", "a3-l", "letter-l" etc. landscape array of 2 numbers width height in mm e.g. array(210,297)


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -