I want to convert an html file to pdf using TeamDev jxbrowser. I want to trigger it automatically wihout any extra print dialog or popup etc just by executing some code. And I also want to set some extra settings. In the 6.X versions I can see more detailed options by coding
https://jxbrowser.support.teamdev.com/support/solutions/articles/9000013120-print-settings
browser.setPrintHandler(new PrintHandler() {
@Override
public PrintStatus onPrint(PrintJob printJob) {
PrintSettings printSettings = printJob.getPrintSettings();
printSettings.setLandscape(true);
But in 7.x relases there are very few details for customizing pdf generation step by code.
https://jxbrowser-support.teamdev.com/docs/guides/printing.html#print-preview
- Is it not possible with newer releases getting a PrintSettings instance?
- Can we set custom header and footer content?