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

insert line feeds with PDF417Encoder.class

The Company I am working for has purchased your software. We need to insert line feeds into the pdf417 barcode. We are currently using the PDF417Encoder.class to produce the barcode.

Tried using ~010 and ~013 but they just appear as I have typed them. Is there a way to enable tildes with the Java class?

Cheers,
Liam


02-21-12     12.6 year(s) ago    

  Report Abuse

 

Ben

Best Answer

Farrelll,

You could use char to encode the characters. For example:

Line Feed is (char)10

Return is (char)13

Posted 12.6 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.
Other Answers (3)
(char)10 works when I use it in the Java class:
pdfe.fontEncode("Line 1" + (char)10 + "Line 2");

I have not found a way to pass this through the BI Publisher call:
<?format-barcode:concat('Line 1',' + (char)10 +','Line 2');'pdf417';'XMLPBarVendor'?>

Posted 12.6 year(s) ago

(0)
(0)
   Report Abuse
I am currently using the Java Class Encoder 'PDF417Encoder.class' which returns an encoded string to be used with the fonts. This class does not seem to have the setProcessTilde method.

I have looked at the PDF417.class in the Java Applet and Servlet library. This class has the tilde function, but I can't seem to get it to just pass the encoded string back.

I am using this class with BI Publisher to produce the barcode on a letter. Is there a way to get the PDF417 class to just return the encoded string? or is there a way to use the image in BI Publisher?

Thanks

Posted 12.6 year(s) ago

(0)
(0)
   Report Abuse
Yes, you can enable processTilde
https://www.idautomation.com/java/pdf417/Doc/com/idautomation/pdf417/PDF417.html#processTilde

For more information, the PDF class description is located at
https://www.idautomation.com/java/pdf417/Doc/com/idautomation/pdf417/PDF417.html


Posted 12.6 year(s) ago

(0)
(0)
   Report Abuse
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