(OFBIZ-10896) Currently, we are using code39 to generate barcodes but there are some limitations of code39 as it only able to encrypt letters from A to Z, digits from 0 to 9 and an additional set of special characters – “. $ % + – / *”. Thanks Pawan Verma for reporting, analysis and providing the patch. Thanks everyone else for providing their inputs during discussion on Dev ML. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1858243 13f79535-47bb-0310-9956-ffa450edef68
68 lines
2.7 KiB
Plaintext
68 lines
2.7 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<#escape x as x?xml>
|
|
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
|
|
<fo:layout-master-set>
|
|
<fo:simple-page-master master-name="main" page-height="4in" page-width="8in"
|
|
margin-top="0.5in" margin-bottom="0.25in" margin-left="0.25in" margin-right="0.25in">
|
|
<fo:region-body margin-top="0in"/>
|
|
<fo:region-before extent="0in"/>
|
|
<fo:region-after extent="0in"/>
|
|
</fo:simple-page-master>
|
|
</fo:layout-master-set>
|
|
|
|
<fo:page-sequence master-reference="main">
|
|
<fo:flow flow-name="xsl-region-body" font-family="Helvetica">
|
|
<fo:block text-align="center">
|
|
${example.exampleName!}
|
|
</fo:block>
|
|
<fo:block text-align="center">
|
|
<fo:instream-foreign-object>
|
|
<barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ns"
|
|
message="${exampleId}">
|
|
<barcode:code128>
|
|
<barcode:height>0.75in</barcode:height>
|
|
<barcode:module-width>.375mm</barcode:module-width>
|
|
</barcode:code128>
|
|
<barcode:human-readable>
|
|
<barcode:placement>bottom</barcode:placement>
|
|
<barcode:font-name>Helvetica</barcode:font-name>
|
|
<barcode:font-size>18pt</barcode:font-size>
|
|
<barcode:display-start-stop>false</barcode:display-start-stop>
|
|
<barcode:display-checksum>false</barcode:display-checksum>
|
|
</barcode:human-readable>
|
|
</barcode:barcode>
|
|
</fo:instream-foreign-object>
|
|
</fo:block>
|
|
<fo:block>
|
|
<fo:leader/>
|
|
</fo:block>
|
|
<fo:block text-align="center">
|
|
<#setting url_escaping_charset='UTF-8'>
|
|
<fo:external-graphic
|
|
src="/example/control/qrcode;jsessionid=${session.id}?message=${example.exampleName?url}&format=bmp&encoding=UTF-8&verifyOutput=true&logoImageMaxWidth=20&logoImageMaxHeight=20"
|
|
overflow="hidden" height="1.5in" content-height="scale-to-fit"/>
|
|
</fo:block>
|
|
</fo:flow>
|
|
</fo:page-sequence>
|
|
</fo:root>
|
|
</#escape>
|