-
1. Re: Decode Compressed 2d Barcode PDF417
g5spark Jan 19, 2012 8:00 AM (in response to pmoralesm)You dont have to do anything different to decompress.
In workbench, what is your output variable on the Barcode.Decode step?
Is it defined as xml?
Did you print+scan your input file? The Barcode.Decode can't read the barcode from a interactive form. It must be flattened, no xml hierarchy.
What does the adobe.log say when you run it?
-
2. Re: Decode Compressed 2d Barcode PDF417
pmoralesm Jan 19, 2012 9:05 AM (in response to g5spark)Hi
You are correct, it decompress with no problem---
But I have another issue, if I use an external program I got an XML with
binary data inside wich is the pdf417 content.
How can I uncompress it using C# without using any LC service?...
2012/1/19 g5spark <forums@adobe.com>
**
Re: Decode Compressed 2d Barcode PDF417 created by g5spark<http://forums.adobe.com/people/g5spark>in
LiveCycle Barcoded Forms ES - View the full discussion<http://forums.adobe.com/message/4151954#4151954>
-
3. Re: Decode Compressed 2d Barcode PDF417
g5spark Jan 19, 2012 10:13 AM (in response to pmoralesm)binary data passed in a xml is encoded in base64 but i dont think thats your problem. If it is, then you need to convert it back to binary.
I dont know c#, but i did find this..
Syste.Convert.ToBase64String(toEncodeAsBtytes)
System.Convert.FromBase64String(encodedData)
I think your problem is that you dont know how the data was compressed in the barcode. In otherwords, if you created the pdf form in designer and checked the compress data parameter then the LC Barcode.Decode will be able to decompress it. If some other program compressed it, LC Barcode.Decode isn't going to know what compression algorithm was used to compress it, so it wont be able to decompress it.
-
4. Re: Decode Compressed 2d Barcode PDF417
pmoralesm Jan 19, 2012 10:53 AM (in response to g5spark)Exactly! The problem now is to decode outside LC using C#. I don't know if
the content of the compressed barcode is in base64 or not, maybe is just
zipped.
I'll try to find out...
2012/1/19 g5spark <forums@adobe.com>
**
Re: Decode Compressed 2d Barcode PDF417 created by g5spark<http://forums.adobe.com/people/g5spark>in
LiveCycle Barcoded Forms ES - View the full discussion<http://forums.adobe.com/message/4152319#4152319>
-
5. Re: Decode Compressed 2d Barcode PDF417
g5spark Jan 19, 2012 11:09 AM (in response to pmoralesm)Take a look at this website
http://www.motobit.com/util/base64-decoder-encoder.asp
Is the content of your binary in characters alphanumeric?
/9j/4AAQSkZJRgABAQAAAQABAAD//gA8Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcg
SlBFRyB2NjIpLCBxdWFsaXR5ID0gMTAwCv/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB
AQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEB
OR is it a bunch of letters, and symbols?
ÿØÿà JFIF ÿþ <CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 100
ÿÛ C ÿÛ C ÿÀ X " ÿÄ
ÿÄ µ } !1A Qa "q 2‘¡ #B±Á RÑð$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊ ÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ
The 1st one is base64. The 2nd is binary.
-
6. Re: Decode Compressed 2d Barcode PDF417
Lee Anthony Jan 20, 2012 7:44 AM (in response to pmoralesm)There is a trick to the compression and decompression for the barcode. The barcode itself is FLATE compressed. However, you need to drop the first 2 bytes of the data stream to DEFLATE the data outside of LiveCycle.
Lee.
-
7. Re: Decode Compressed 2d Barcode PDF417
pmoralesm Jan 20, 2012 1:36 PM (in response to Lee Anthony)Thanks Lee for your help,
I've attached 1 xml file, there is one field that has a property called
value that has the compressed "data"... I have to convert that data into
the original xml data...
The original uncompressed data I have to obtain from the compressed data is
the following:
Again, thanks for any tips you can give me...
Pablo
-
8. Re: Decode Compressed 2d Barcode PDF417
Lee Anthony Jan 23, 2012 10:38 AM (in response to pmoralesm)Pablo, if you are able to extract XML from the barcode decode then technically, you should have your data. Again, dropping the first 2 bytes of the data stream before you run the data through a DEFLATE process should provide you with the extracted data you're looking for.
-
9. Re: Decode Compressed 2d Barcode PDF417
alanda Jul 1, 2014 7:37 PM (in response to pmoralesm)Have you ever read this post? It seems someone posted the same PDF 417 barcode decoding question here.

