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
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 5.0 [ 10314 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #34195 | Tue Apr 02 14:34:12 MDT 2013 | patrick.corless | |
Files Changed | ||||
![]() ![]() |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Thanks for posting your comments. I'll make sure the print helper modification makes the next release.