New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

How to create PDF417 in BI Publisher?


TOOLS AND REQUIREMENTS

PDF417 Font and Encoder Package (Developer License and up)
BI Publisher Desktop/Analytics Desktop
• Microsoft Word
• barcodeutilPDF417.java file. Download the IDAutomation_BIPublisher_PDF417.zip
• Collection of Jar files from the jlib folder of the BI Publisher Desktop install.


05-26-21     1.8 year(s) ago    

  Report Abuse

 

Ben

Best Answer

-INSTALL FONTS-

Install all required applications and components for Word and BI Publisher.

1. Download the purchase from the IDAutomation store and extract the PDF417 Font Encoder Package zip file.

2. To install the IDAutomation2D font, run the .exe file located in the package or manually install the font located by searching for *.ttf. Once the file(s) is located, right-click and choose Install.
image


-SET UP JAVA CLASS-

3. Download and install the PDF417 Developer Tools from the IDAutomation store and extract the IDAutomation_PDF417_Developer_Tools.zip.

4. Locate the IDAutomation_JavaFontEncoder_PDF417.jar and extract this file to use the com-idautomation-fontencoder-pdf417-PDF417Encoder.class and set up the jar file in your Java environment.

NOTE: Prior to implementing the solution in BI Publisher, confirm that you can create a PDF417 barcode in a stand alone application/project. If not, ensure that the PDF417 class file is part of the classpath within your Environment Variables.

-CREATE BARCODEUTIL.CLASS-

5. Download the IDAutomation_BIPublisher_PDF417.zip. It includes the barcodeutilPDF417.java and dependencies (Logger.class and XDOBarcodeEncoder.class) for creating the barcodeutilPDF417.class.
image

6. The Encoder section of the tutorial provides an example of the parameters. Update the parameters in the .java file based on the barcode requirements:

/* Import the idautomation encoder class */
import com.idautomation.fontencoder.pdf417.*;

PDF417Encoder pdfe = new PDF417Encoder();
return pdfe.fontEncode(DataToEncode);

Class[] clazz = new Class[] { "".getClass() };
ENCODERS.put("pdf417" , mUtility.getClass().getMethod("pdf417" , clazz));



7. Compile the barcodeutilPDF417.java file to create a new class named barcodeutilPDF417.class.

-SET UP JAR FILES-

8. Access the jlib path and place the following jar files in the classpath: xdocore.jar, xmlparserv2.jar, collections.jar, aolj.jar, share.jar, xdoparser.jar, jewt4.jar, 18nAPI_v3.jar.
image

9. Place the barcodeutilPDF417.class into a new jar named barcodejar.jar.

10. Copy the IDAutomation_PDF417_JavaFontEncoder.jar and the barcodejar.jar to the jlib folder within the Template Builder for Word.

11. So that BI Publisher can find the wrapper class, all the jars required for the project must be put into the RTF2PDF.jar which is located in the jlib folder.

12. Make a back up of the RTF2PDF.jar file.

13. Open the RTF2PDF.jar using Winzip or 7-zip and access the META-INF directory. Open and edit the MANIFEST.MF to include the jars at the end of the classpath list:

Manifest-Version: 1.0
Class-Path: ./activation.jar ./mail.jar ./xdochartstyles.jar ./bicmn.jar ./jewt4.jar
./share.jar ./bipres.jar ./xdoparser.jar ./xdocore.jar ./xmlparserv2.jar
./xmlparserv2-904.jar ./i18nAPI_v3.jar ./versioninfo.jar
./barcodejar.jar ./PDF417Encoder.class
Main-Class: RTF2PDF


-SET UP TO RENDER BARCODE-

14. In order to render the barcode in a PDF report, it must be embedded by referencing the font within a config file in the BI Publisher config folder. Open the xdo example.cfg file located:
image

15. Add an entry for the IDAutomation2D font in the code area under the font setting:
image

-WORD SET UP-


16. Return to Word and access the BI Publisher file. Double-click the field to barcode and choose Add Help Text to open the Form Field.

17. In the Status Bar tab, enter the first command:
<?register-barcode-vendor:'ENCODER WRAPPER CLASS'; 'ENCODER NAME'?>
image

18. In the Help Key (F1), enter the second command:
<?format-barcode:DATA_TO_ENCODE;'ENCODER_METHOD_NAME';'ENCODER_NAME'?>
<?format-barcode:AS_OF_DATE;pdfe';'MyBarcodeEncoder'?>



19. To ensure the data is encoded, view the document (PDF,RTF,HTML):

The data should be a group of numbers (for PDF417)


20. Return to the project and select the IDAutomation2D font from the font list. IDAutomation2D is the appropriate font for PDF417.

Posted 1.8 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook