I try to load an JS script into a fdf file to make some control on the form. I load the js script with this piece of code (Java) :
PDDocument document = PDDocument.load(pdfTemplateFile);
But when i open the same pdf file with the Adobe PDF Embed API, it doesn't work. I follow the Sample find in this repository : https://github.com/adobe/pdf-embed-api-samples.git and specialy the React samples that was interest me. I just replace the default pdf of the sample with the pdf generated.