[ 
https://issues.apache.org/activemq/browse/CAMEL-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52589#action_52589
 ] 

Jonathan Anstey commented on CAMEL-1675:
----------------------------------------

Testing printing components is a pain. In the past I've just mocked out where 
calls are made to a printer (in this case, calls to the Java printing API) to 
verify the stuff we're passing in is good. So I'm +1 for modding 
PrinterOperations to support writing job data to a file and then verifying it. 
Would be also nice to verify that config properties from the lpr URI make it 
the the Java Printing API config classes properly.

Also, nice work Ashwin! :) I just tried it out on a PDF printer and network HP 
- both worked fine.

> Created a new camel printer component that supports document/image printing 
> with copies, stationary and sides choices.
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1675
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1675
>             Project: Apache Camel
>          Issue Type: New Feature
>         Environment: Works on both Windows and UNIX
>            Reporter: Ashwin Karpe
>             Fix For: 2.1.0
>
>         Attachments: camel-printer.patch, camel-printer.zip
>
>
> I have developed a camel printer component (producer) that facilitates 
> printing of documents and images when a Printer URL is speified on a route.
> The component is developed using the standard javax.print package and uses 
> the standard java JDK packages to print to all manner of printers.
> The Printer URL looks like the following:
>       " 
> lpr://localhost/default?copies=1&flavor=DocFlavor.BYTE_ARRAY&mimeType=AUTOSENSE&mediaSize=na-letter&sides=one-sided"
> The component allows you to set the following parameters:
>       - copies
>       - flavor
>       - mimeType
>       - mediaSize
>       - sides
> All the values are setting against the javax.print.attribute.standard 
> properties.
> Can the committers, please review, comment and commit as apropriate.
> Cheers,
> Ashwin Karpe
> Principal Consultant - Professional Services
> Progress Software...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to