Set PDF In landscape view

Hi,
I'm looking for display a pdf view in landscape view with a custom JS Button :
var form_nr = 1;
var str=window.location.href;
var res=str.split("/");
var str2=res[res.length-1];
console.log(window.location.hostname);

var res2=str2.split(".");
var dossierID= res2[0];
console.log(dossierID);
window.open('https://' + window.location.hostname + ' + form_nr + '/' + dossierID + '/attestation-'+ dossierID +'?format=pdf&layout=bootstrap_custom');

I would like to set the view in landscape, but I don't find how ? Maybe in default.php?
An idea ?
 
PDF orientation is in the PDF layout (form/list) settings.
If you want to override it on the fly try with URL
&pdf_orientation=landscape
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top