Hi,
maybe this issue was solved elsewhere, so ignore it if it isn't of interest..
When i used the SwingController to display a document the printer dialog always used the letter page size as default when i pressed the print button. I wanted to change this beavior using the following
Code:
SwingController controller;
... // some initialization incl. call controller.openDocument(...)
controller.getViewModel().setPrintHelper(
new PrintHelper( controller.getDocumentViewController(), controller
.getDocument().getPageTree(), MediaSizeName.ISO_A4,
PrintQuality.NORMAL ) );
This did not help. The reason is, that the printHelper is always overwritten in SwingController#initialisePrinting(...).
The attached patch helped me. Should i file a bug?