[
https://issues.apache.org/activemq/browse/CAMEL-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52590#action_52590
]
Ashwin Karpe commented on CAMEL-1675:
-------------------------------------
Hi Jon,
Thanks for the positive feedback I really appreciate it. It is great to have
the submission validated on different printers under different settings.
I have started re-factoring the component URL to add a boolean "printFlag"
variable. It should wrk as follows
context.addRoutes(new RouteBuilder() {
public void configure() {
from("direct:start").
to("lpr://localhost/default?copies=2&flavor=DocFlavor.BYTE_ARRAY&mimeType=AUTOSENSE&mediaSize=na-letter&sides=one-sided&printFlag=false");
}
});
context.start();
If the printFlag is set to false, then the job will be logged to a Logger as an
INFO level payload. I will also write a file based on the job definition to the
target directory.
Hope this is ok... Please let me know if you think solution looks good to you.
I will submit a patch later today or tomorrow.
Cheers,
Ashwin...
> 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.