I am working on the use case where end user fill the pdf document and click the push button to generate the barcode with field values… I am looking for the solution in PDFBox or IText7 or Aspose….
I have created the editable pdf document using the above mentioned references.
I have tried in itext7 and PDFBox but no luck



I don't think that these requirements can be achieved using Aspose.PDF directly. You can specify a JavaScript method behind a button to trigger and then Adobe Reader executes that action using its own engine/debugger.
You cannot tell Adobe Reader to use Aspose.Barcode to generate a barcode image and add this in the PDF.
There can be a workaround that can be tried. I am not sure if it is going to work in all cases but its worth a try. i.e.
Code to generate barcode image using Aspose.Barcode:
Code to specify a JavaScript Action behind PDF button using Aspose.PDF:
Above JS Action can be added behind the button using:
You can try above workaround. I hope that it will help you. In case you face any issues, please create a post in official Aspose support forum where you will be assisted accordingly. This is Asad Ali and I am developer evangelist at Aspose.