HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Convert html source to pdf › Re: Re: Convert html source to pdf
March 26, 2014 at 13:37
#29513
Yes, the code
pd4ml.setPageSize(pd4ml.changePageOrientation(PD4Constants.A4));
forces landscape.
For portrait use
pd4ml.setPageSize(PD4Constants.A4);
Also you may change the orientation for particular pages with a dedicated parameter of