Skip to main content
Alex Doubts
Known Participant
July 18, 2017
Question

How to convert image field value to a binary stream in Adobe Acrobat Pro?

  • July 18, 2017
  • 1 reply
  • 370 views

I want to convert image field value to a binary stream in adobe acrobat pro. I would get the image path say("C\temp\test.jpg")

and then set to bar code as binary file so as to get the image while reading from the bar code.

Saw below code

this.importIcon("myIcon", "/C/temp/myIcon.jpg", 0);

     var oIcon = util.iconStreamFromIcon(this.getIcon("myIcon"));
     app.addToolButton({ 
          cName: "myButton", 
          oIcon: oIcon,
          cExec: "console.println('My Button!');",
          cTooltext: "My button!",
          nPos: 0 
     });

But how to set it to bar code.

This topic has been closed for replies.

1 reply

Alex Doubts
Known Participant
July 18, 2017

Image to binary stream is the main need and embed to bar code and fetch the picture while bar code scanner