top of page
Search
c8bjgilani

Barcode Generator and Overprinter 6.6 12 38: A Powerful Tool for Creating and Printing Barcodes



The Barcode library requires ZXing ("Zebra Crossing") barcode scanning library for Java version 3.3.2 or later. The library is NOT distributed with XEP. It is available from Github under the terms of Apache License. Its binaries are downloadable, too. In order to make it work, put ZXing-core-3.3.2.jar in the ClassPath.


All options can be controlled using processing instructions, and some options can be controlled by use of generator options. The following sections describe available processing instructions and generator options as well where they can be utilized.




barcode generator and overprinter 6.6 12 38




As soon as XSL-FO 1.0 does not have native support of barcodes, technical implementation of them is based on SVG. These stylesheets render barcodes as SVG primitives, including additional tag containing the value and parameters of barcode rendered.


If barcode tag is found, the barcode is rendered with BC:OCA or G:OCA, depending on which is enabled. This is done with USE_BCOCA_LEVEL and USE_GOCA_LEVEL configuration parameters. If both BC:OCA and G:OCA are enabled, BC:OCA overrides. Please refer configuration parameters section about configuring BC:OCA and G:OCA.


AFP Barcodes (BC:OCA) are verified to be compatible with barcodes generated by WordML2FO stylesheets (the latest version). RenderX WordML2FO stylesheets are available for free download from RenderX site:


If you develop custom stylesheets implementing Barcodes, please note that barcode MUST be alone item within SVG block if barcodes are generated with BC:OCA. That is, AFP Generator skips SVG content after tag.


AFPLogLevel option lets users turn on output of additional information related to internal details of processing document elements in AFP generator. This information has various levels of detail, from 0 to 2.


The source Unicode string is analyzed by characters. For each of them, AFP generator determines Character Set ( element in config file) the character belongs to (using the Code Ranges listed in configuration file specified in elements). If the range not found, the first configured range is assumed (normally, Base Latin). After the range is found, AFP generator checks whether the character is specified within the list of specially translated characters ( element). If so, the character is translated according to the mapping table (afp attribute). If not, AFP generator uses Java libraries to map the character to the corresponding code page ( element, (name attribute). After that, it determines if the character belongs the same code page as the previous one in the same text block. For instance, Chinese and Cyrillic characters cannot reside in the same AFP tect block due to different encodings. However, Base Latin may follow the Cyrillic character since Cyrillic code pages usually contain Latin characters in lower half of codes (0x00-0x7F). This approach is determined by forcelatin attribute. Finally, after the string of the same code page is composed, it becomes assigned with IBM encoded name (ibm-name attribute) and placed to AFPDS stream.


Configuration of the SVG generator is performed in a usual way all XEP generators are configured. All configuration options for SVG generator are child elements of XEP configuration file element . Each SVG generator configuration option is an element option and looks like


Configuration of the XHTML generator is performed in a usual way all XEP generators are configured. All configuration options for XHTML generator are child elements of XEP configuration file element . Each XHTML generator configuration option is an element option and looks like


XHTML generator does not support rotate, polygon, internal-bookmark and external-bookmark XEPOUT elments. Therefore the following XSL FO features are unavailable: borders, reference orientation and bookmarks.


You can set -1 as the value of -DH4PPML.GA_LEVEL to avoid processing images as resources entirely: all images will be passed to the target format generators and appear in pages rather than resources.


Configuration of the PPML generator is performed in a usual way all XEP generators are configured. All configuration options for PPML generator are child elements of XEP configuration file element . Each PPML generator configuration option is an element option and looks like


[s] In PDF and PostScript generators, URLs starting with explicit "file:" protocol specification are rendered as PDF-to-PDF links ("remote go-to actions"). All other links are treated as Internet URIs, and open in a browser.


The appearance of bookmark label (color, font-style and font-weight attributes) is only supported in the PDF generator staring from XEP 4.19, and only if the PDF_VERSION option is set to 1.4 or higher.


In the PostScript generator module, the document info fields are added using the pdfmark operator. The respective fields are filled when PostScript is converted to PDF using Adobe Acrobat Distiller or GhostScript.


The RMO are only supported in the PDF generator, only if the PDF_VERSION option is set to 1.7 or higher (currently only SWF rich media format is supported). Design and Implementation of Rich Media Objects in XEP are based on PDF Specification version 1.7, Extension Level 3.


Starting with version 4.29, XEP provides a fast and convenient way to use barcodes in XSL-FO documents via RenderX extension . Based on specified barcode type and its data value, XEP generates a corresponding barcode as SVG graphic object.


XEP does not attempt to validate the barcode data. E.g., EAN-13 only supports digits as its data value. If a non-digit symbol is specified within the data for EAN-13 barcode, the behavior is undefined.


Character encoding for data. If data contains non ASCII symbols, data-encoding should be specified. In most cases it'll add Extended Channel Interpretation (ECI) to barcode data which will allow barcode reader to correctly interpret encoded data. We recommend using UTF-8 and for the Japanese language you may prefer Shift_JIS but you can specify any standard encoding of your own preference. Optional.


Visual appearance and dimensions play an important role in barcode readability. Scanning machines and software are accustomed to certain stroke widths and lengths, interleave, color, and overall dimensions. So it is not recommended to alter the visual appearance of barcodes unless specifying a custom size is inevitable (e.g., because of the lack of free place on the page).


The default x-dimension for all 1D barcodes is 0.33mm. The default height (excluding EAN-13 and EAN-8, see above) is 13mm. It's a widespread practice of using half-height 1D barcodes. It is, however, recommended to use 25.9mm height when possible (as in EAN-* defaults). Normally, one should control the barcode height via the barcode-height attribute.


In case if a custom size is needed, one can specify the exact barcode size via content-width or content-height attributes. The underlying barcode will fit the specified dimension, keeping it's standard aspect ratio.


In order to produce a barcode with a specific size, first set barcode-height to achieve desired width/height aspect ratio and then set content-width and/or content-height attribute. The barcode will scale to fit the smallest dimension.


CID-based OpenType fonts are supported by PDF generator only. These fonts are mostly used for languages with ideographic scripts, like Chinese, Japanese and Korean. They appear in Asian font packs for Adobe Acrobat; XEP can produce documents that can be viewable by users who have these font packs installed.


XEP supports opacity, fill-opacity, and stroke-opacity attributes. Because of the output format limitations, these features are only supported in the PDF generator, and only if the PDF version is set to 1.4 or higher.


PDF images are supported in PDF generator only. XEP is capable to embed an arbitrary page of a PDF document as a vector image. All related resources (fonts, images, color profiles) are transferred to the output file. Annotations (text notes, hyperlinks, etc) are dropped.


EPS images are supported in PostScript generator only. In the PDF generation module, they are replaced by a bitmap preview image (EPSI or TIFF) if available; otherwise, the corresponding area is left blank.


XEPOUT images are supported in all generators except AFP. The MIME type used for XEPOUT images is application/xepout. XEP embeds the first page of a XEPOUT (XEP Intermediate Output Format) document as a vector image. All elements are transferred to the output file except: , , , , (supported in PS generator only).


There are several other attributes (such as author or title) that transfer unchanged from extension formatting objects (if present) in the source document. Their use is implementation-dependent; for example, PDF generator uses them to fill the fields of the Info object.


4 Designer messages Designer message reference LAD1006 Unable to fit display item The image / shape/ table is too big to fit on the page Re-size the image / shape/ table to fit. LAD1007 Barcode value '%s' contains characters not supported in the '%s' barcode format Barcode value contains characters not supported for the barcode format The program aborts. The contents of output files will be incomplete. Check the data for compliance with the rules for the barcode format. LAD1008 Barcode value '%s' is invalid, 2 of 5 (Interleaved) barcodes must be an even number of digits. Barcode value is invalid - 2 of 5 (Interleaved) barcodes must consist of an even number of digits. EngageOne Compose EngageOne Generate Diagnostic Guide 4


5 Designer messages LAD1008 The program aborts. Output created by the application will be incomplete. Check the input data for compliance with formatting rules for 2 of 5 (interleaved) barcodes. LAD1009 The value '%s' is invalid, PostNet and PlanetCode barcodes must be 5, 9 or 11 digits. The input barcode format is invalid. PostNet and PlanetCode barcodes must be 5, 9 or 11 digits. Check the input data for compliance with the rules for PostNet and PlanetCode barcodes. LAD1010 The graphical object is outside the page boundaries One of the following causes applies: The shape is above the first page. The shape is left of the page. The shape does not fit on the page. Undo previous operations to bring the object back into view and resize / reposition the object appropriately. EngageOne Compose EngageOne Generate Diagnostic Guide 5 2ff7e9595c


0 views0 comments

Recent Posts

See All

Comments


bottom of page