Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 29714 invoked from network); 2 Jul 2009 14:46:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jul 2009 14:46:21 -0000 Received: (qmail 39043 invoked by uid 500); 2 Jul 2009 14:46:31 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 39014 invoked by uid 500); 2 Jul 2009 14:46:31 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 39004 invoked by uid 500); 2 Jul 2009 14:46:31 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 39001 invoked by uid 99); 2 Jul 2009 14:46:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 14:46:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2009 14:46:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 02456234C044 for ; Thu, 2 Jul 2009 07:46:07 -0700 (PDT) Message-ID: <1750691317.1246545967004.JavaMail.jira@brutus> Date: Thu, 2 Jul 2009 07:46:07 -0700 (PDT) From: "Ashwin Karpe (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-1675) Created a new camel printer component that supports document/image printing with copies, stationary and sides choices. In-Reply-To: <1527087139.1244220411255.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashwin Karpe updated CAMEL-1675: -------------------------------- Attachment: camel-printer.zip camel-printer.patch Hi Hadrian, Claus and Jon, I have made the changes suggested by Jon and added a send a sendToPrinter flag that will allow directing the output of the Job to a file in the target directory under filename TestPrintJob{Copy No}_{UUID}.{gif | jpg | pdf | txt}. I have also done the requisite checkstyle checks and verified that everything works in both modes (sendToPrinter=true/false). The flag defaults to true when not specified, i.e. the job will be printed. Please see a new patch file and a new source drop in the attached zip file. 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.