Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.3.2
-
Fix Version/s: 5.0
-
Component/s: API, Core/Parsing
-
Labels:None
-
Environment:All
Description
It would be nice to be able to specify the number of copies of the pdf are to print when the print dialog is shown (or even when it is printed silently). We made the change to the source code to make this possible and it didn't seem too difficult at all. Our use case defaults 3 copies when our users print a bill of lading since they always need a copy for themselves and two for the trucker. Hence why having a default other than the hard-coded 1 copy would be useful.
Our implementation into the source code adds a method "setDefaultNumberOfCopies(int)" to SwingController. A local int is used in the "initialisePrinting(boolean)" instead of 1.
canPrint = printHelper.setupPrintService(
0,
document.getNumberOfPages() - 1,
copies, // default number of copies -- changed from 1 <--
viewModel.isShrinkToPrintableArea(), // shrink to printable area
withDialog // show print dialogl
);
Our implementation into the source code adds a method "setDefaultNumberOfCopies(int)" to SwingController. A local int is used in the "initialisePrinting(boolean)" instead of 1.
canPrint = printHelper.setupPrintService(
0,
document.getNumberOfPages() - 1,
copies, // default number of copies -- changed from 1 <--
viewModel.isShrinkToPrintableArea(), // shrink to printable area
withDialog // show print dialogl
);
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #34195 | Tue Apr 02 14:34:12 MDT 2013 | patrick.corless | |
Files Changed | ||||
![]() ![]() |