#29333


#pdfHeader#

#pdfFooter#


#pdfBody#

SCREENWIDTH i adjust based on the orientation :
Portrait :
Landscape :

margin i set in each part of the document (header, footer and body)
because when i set the margin in pageInsets, the header and footer is also affect with the margin setting

and still the result is different from the pdf render from cfdocument