This is an automated email from the ASF dual-hosted git repository. orpiske pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2daf2b0d22d916efa0e2f2d16b9a95531e8cf969 Author: Otavio Rodolfo Piske <[email protected]> AuthorDate: Wed Feb 21 15:56:02 2024 +0100 CAMEL-20410: documentation fixes for camel-printer - Fixed samples - Fixed grammar and typos - Fixed punctuation - Added and/or fixed links - Converted to use tabs --- .../camel-printer/src/main/docs/lpr-component.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/camel-printer/src/main/docs/lpr-component.adoc b/components/camel-printer/src/main/docs/lpr-component.adoc index 3a44253c447..064af213f2f 100644 --- a/components/camel-printer/src/main/docs/lpr-component.adoc +++ b/components/camel-printer/src/main/docs/lpr-component.adoc @@ -15,8 +15,8 @@ *{component-header}* The Printer component provides a way to direct payloads on a route to -a printer. Obviously the payload has to be a formatted piece of payload -in order for the component to appropriately print it. The objective is +a printer. The payload has to be a formatted piece of payload +in order for the component to appropriately print it. The goal is to be able to direct specific payloads as jobs to a line printer in a camel flow. @@ -40,7 +40,7 @@ for this component: == URI format Since the URI scheme for a printer has not been standardized (the -nearest thing to a standard being the IETF print standard) and therefore +nearest thing to a standard being the IETF print standard), and therefore not uniformly applied by vendors, we have chosen *"lpr"* as the scheme. ----------------------------------------------- @@ -74,7 +74,7 @@ route. == Usage Samples -=== Example 1: Printing text based payloads on a Default printer using letter stationary and one-sided mode +=== Example 1: Printing text-based payloads on a Default printer using letter stationary and one-sided mode [source,java] ----------------------------------------------- @@ -85,11 +85,11 @@ RouteBuilder builder = new RouteBuilder() { "&flavor=DocFlavor.INPUT_STREAM&" + "&mimeType=AUTOSENSE" + "&mediaSize=NA_LETTER" + - "&sides=one-sided") + "&sides=one-sided"); }}; ----------------------------------------------- -=== Example 2: Printing GIF based payloads on a Remote printer using A4 stationary and one-sided mode +=== Example 2: Printing GIF-based payloads on a remote printer using A4 stationary and one-sided mode [source,java] -------------------------------------------------- @@ -99,11 +99,11 @@ RouteBuilder builder = new RouteBuilder() { .to("lpr://remotehost/sales/salesprinter" + "?copies=2&sides=one-sided" + "&mimeType=GIF&mediaSize=ISO_A4" + - "&flavor=DocFlavor.INPUT_STREAM") + "&flavor=DocFlavor.INPUT_STREAM"); }}; -------------------------------------------------- -=== Example 3: Printing JPEG based payloads on a Remote printer using Japanese Postcard stationary and one-sided mode +=== Example 3: Printing JPEG-based payloads on a remote printer using Japanese Postcard stationary and one-sided mode [source,java] -------------------------------------------------- @@ -114,7 +114,7 @@ RouteBuilder builder = new RouteBuilder() { "?copies=2&sides=one-sided" + "&mimeType=JPEG" + "&mediaSize=JAPANESE_POSTCARD" + - "&flavor=DocFlavor.INPUT_STREAM") + "&flavor=DocFlavor.INPUT_STREAM"); }}; --------------------------------------------------
