2 Replies Latest reply on Jun 7, 2011 8:15 AM by leesutton

    Read barecode from PDF

    J.Cermoch Level 1

      Hello,

       

      I create proces which read pdf document with barecode. When I

      read barecode from Tif file everything is ok. When I read barecode

      from pdf file, it return empty mesage.

       

      I create pdf file from pdf form via adobe printer.

       

       

      If I create pdf via combinate file from acrobat. Decode barecode doesnt

      throws an error but decoding never stop (the decode component is green

      in recording).

       

      Does anyone know what is wrong?

      Does anyone have solution? - I have to use pdf for decode not tif. And

      a customer havent generator, so I cant convert pdf->tif.

       

      Thanks Jakub

        • 1. Re: Read barecode from PDF
          J.Cermoch Level 1

          Right now it throws this error

           

          ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
          at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.throwExceptionHandler(So apAxisDispatcher.java:211)
          at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(SoapAxisDispatche r.java:129)
          at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
          at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
          at com.adobe.workbench.utils.invoke.InvokeWithProgressRunner.invokeServiceOperation(InvokeWi thProgressRunner.java:230)
          at com.adobe.workbench.utils.invoke.InvokeWithProgressRunner.run(InvokeWithProgressRunner.ja va:125)
          at java.lang.Thread.run(Thread.java:619)
          Caused by: (0)null
          at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
          at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
          at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
          at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
          at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
          at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
          at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
          at org.apache.axis.client.Call.invoke(Call.java:2748)
          at org.apache.axis.client.Call.invoke(Call.java:2424)
          at org.apache.axis.client.Call.invoke(Call.java:2347)
          at org.apache.axis.client.Call.invoke(Call.java:1804)
          at com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(SoapAxisDispatche r.java:127)
          ... 5 more

          • 2. Re: Read barecode from PDF
            leesutton Level 3

            The problem is due to the fact that you are trying to decode a barcode from a PDF that is not printed or flattened. It is still an electronic PDF.  The workflow the barcode decoder is expecting is either a TIF or PDF that has been flattened. Ideally, the PDF is the result of a scan.

             

            If you are trying to simulate the scanning of flat PDF's I would suggest saving the document as a TIF and then convert that to a PDF.

             

            If you are receiving electronic documents then use the Data Export service instead of the barcode decoder as this will provide you with the field values without having to decode the barcode.

             

            Alternatively, first try to export data from the PDF, if that fails, then decode. This will allow you to get the data directly from the PDF if it is still in electronic form, and then fall back to the barcode if the PDF is a scanned or faxed document.