Hello,
I see in your docs here that you can set PDF to use landscape mode when using exportContent:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#attr..DSRequest.exportCSS
However, we are not using the native exportContent API and we are instead calling getPDFRenderer() server-side ourselves like this. I tried to set exportCSS as one of the settings passed to getPdfRenderer but that didn't work. So, how do I set exportCSS in this example to use Landscape mode?
I see in your docs here that you can set PDF to use landscape mode when using exportContent:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#attr..DSRequest.exportCSS
However, we are not using the native exportContent API and we are instead calling getPDFRenderer() server-side ourselves like this. I tried to set exportCSS as one of the settings passed to getPdfRenderer but that didn't work. So, how do I set exportCSS in this example to use Landscape mode?
Code:
settings.put("skinName", exportData.get("skinName").toString()); //this didn't work settings.put("exportCSS", "@page {size: US-Letter landscape; }"); PdfExport export = new PdfExport(); ITextRenderer renderer = export.getPdfRenderer(finalHTML,settings);
Comment