[
https://issues.apache.org/jira/browse/PDFBOX-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761989#comment-16761989
]
Thorsten Schöning commented on PDFBOX-4456:
-------------------------------------------
Looks good to me: "FreePDF" now maps to the one and only correct printer, while
"FreePDF -" isn't found anymore, but the error message printed and the default
printer used. Thanks for fixing this so quickly!
> PrintPDF doesn't support 1:1 printer name matching
> --------------------------------------------------
>
> Key: PDFBOX-4456
> URL: https://issues.apache.org/jira/browse/PDFBOX-4456
> Project: PDFBox
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.0.13
> Reporter: Tilman Hausherr
> Priority: Major
> Labels: PrintPDF, print, printing
> Fix For: 2.0.14, 3.0.0 PDFBox
>
>
> From Thorsten Schöning on the users mailing list:
> When using the argument "-printerName FreePDF" on the shell, one of
> the printers using an additional profile is used to actually print
> instead of the one I expected. The reason is that printer names are
> not matched 1:1 or using some glob syntax or whatever, but using
> "contains":
> {quote}if (printService[i].getName().contains(printerName)){quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]