| Author |
|
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 13 2005 at 8:34am | IP Logged
|
|
|
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?
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 13 2005 at 10:22am | IP Logged
|
|
|
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)
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 13 2005 at 10:47am | IP Logged
|
|
|
Works great in VB now, but same result in Acrobat.
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 13 2005 at 11:09am | IP Logged
|
|
|
Loopy wrote:
| Works great in VB now, but same result in Acrobat. |
|
|
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.
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 13 2005 at 12:45pm | IP Logged
|
|
|
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.
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 13 2005 at 12:46pm | IP Logged
|
|
|
The thing is, it's a fillable PDF, and I enter the data directly into a text field on the PDF, not distilling it.
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 13 2005 at 4:38pm | IP Logged
|
|
|
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.
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 14 2005 at 9:25am | IP Logged
|
|
|
Great - thanks!
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 15 2005 at 12:33pm | IP Logged
|
|
|
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.
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 15 2005 at 12:46pm | IP Logged
|
|
|
Excellent - thanks! I'll try it out and let you know what happens. THanks for your quick response on this - you guys are great!
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 15 2005 at 1:26pm | IP Logged
|
|
|
I'm still getting the same result. Is there any way I could send you my PDF so you can test it there and see if I'm just screwing up something over on this end?
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 15 2005 at 2:09pm | IP Logged
|
|
|
Loopy,
Send the PDF to support@morovia.com we'll take a look.
Also you may consider starting with a new PDF document after you install the new fonts. Acrobat grabs the fonts into the document right after you create an edit box and select the font.
Edited by glitch on September 15 2005 at 2:12pm
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 15 2005 at 2:50pm | IP Logged
|
|
|
You know what, I didn't think about that. I'll try a new PDF and see what happens.
|
| Back to Top |
|
| |
Loopy Newbie

Joined: September 13 2005 Location: United States Posts: 9
|
| Posted: September 15 2005 at 3:00pm | IP Logged
|
|
|
Recreated the PDF document, met with the same result. Let me know what you guys find.
|
| Back to Top |
|
| |
glitch Admin Group


Joined: January 25 2003 Location: Canada Posts: 280
|
| Posted: September 15 2005 at 3:35pm | IP Logged
|
|
|
The fonts worked on Acrobat 6.0. After I moved the document to 7.0, the barcode initially looked good, but extra spaces appear whenever I change the content.
I'll think about it and get back to you soon.
|
| Back to Top |
|
| |