Strange things from the PDF417 font
15 posts • Page 1 of 2 • 1, 2
Strange things from the PDF417 font
I'm new to PDF417, and I'm having a problem. I am kind of in a testing phase, and wrote a quick VB application that takes an input string then encodes it for PDF417 using the ActiveX control that was sent with the fontset. I then take the encoded string and plug it into a fillable PDF and drop it into a text field utilizing the PDF417 font. For some reason, the resultant barcode looks very odd. Basically, it takes each line of the bar code and puts at least two carriage returns between them so the bar code is not stacked directly on top of each other into one barcode, but look live several individual barcodes double spaced in a long column. I skipped the middle step and had the VB application create the barcode directly and was met with similar results, except this time it doesn't have any carriage returns, it just strings them all out end to end. Any thoughts?
- Loopy(Legacy member)
Re: Strange things from the PDF417 font
Loopy,
First make sure that you resize the text box to hold a full PDF417 row. If the text box is too small, the line will wrap and extra spaces will be displayed.
If you still see extra blank line between the rows, the text box may not handle the line feed propertly. By default, the encode ActiveX outputs "\r\n" (corresponding to vbCrLf) at the end of each line. Some text box interpreates these two characters as two carriage returns. If that is the case, set LineFeedString property to chr(13), or "\n" only.
object.LineFeedString = chr(13)
First make sure that you resize the text box to hold a full PDF417 row. If the text box is too small, the line will wrap and extra spaces will be displayed.
If you still see extra blank line between the rows, the text box may not handle the line feed propertly. By default, the encode ActiveX outputs "\r\n" (corresponding to vbCrLf) at the end of each line. Some text box interpreates these two characters as two carriage returns. If that is the case, set LineFeedString property to chr(13), or "\n" only.
object.LineFeedString = chr(13)
- glitch(Legacy Member)
Re: Strange things from the PDF417 font
Works great in VB now, but same result in Acrobat
- Loopy(Legacy member)
Re: Strange things from the PDF417 font
How do you make the PDF file? We tested with distiller and no problems. Some third party PDF programs may not handle \r\n properly.
- glitch (legacy member)
Re: Strange things from the PDF417 font
Well, first I was just copying the encoded text from the VB app and pasting it into the PDF file. Now, I'm outputting the encoded text to a file and reading it in through a data object in Acrobat. I'm running Acrobat 7 professional.
- Loopy(Legacy member)
Re: Strange things from the PDF417 font
The thing is, it's a fillable PDF, and I enter the data directly into a text field on the PDF, not distilling it.
- Loopy(Legacy member)
Re: Strange things from the PDF417 font
Now I understand. It seems that the internal height of the font needs some modification to accommodate this scenario. I will get back to you once we have a solution.
- glitch (legacy member)
Re: Strange things from the PDF417 font
Loopy,
We found the problem cause. Visit the article below to obtain a fix:
http://www.morovia.com/support/article10070.html
Let me know if you have any questions.
We found the problem cause. Visit the article below to obtain a fix:
http://www.morovia.com/support/article10070.html
Let me know if you have any questions.
- glitch (legacy member)
Re: Strange things from the PDF417 font
Excellent - thanks! I'll try it out and let you know what happens. THanks for your quick response on this - you guys are great
- Loopy(Legacy member)
15 posts • Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 0 guests