Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Show PDF Form to user and allow him to fill the data

diogomiranda
Level 4
Level 4

Hi,

Can someone guide me which functionality in adobe forms allows this?

Show PDF Form designed on Designer to the users, allow him to fill or edit the data and then save it

I can then read the documentation but I'm not finding it at all.

Thanks

6 Replies
Mayank_Gandhi
Community Advisor
Community Advisor

Based on the question I would say Form created in Designer need to be reader extended to allow user to fill, comment, sign the pdf in case you want to open that in designer. If you can elaborate the scenario more I will be able to share mor inputs.

Thanks,

Mayank

diogomiranda
Level 4
Level 4

yes, I think the goal is it to be reader extended.

can you guide me where I can find documentation about how to implement a solution?

the business case is:

- design pdf forms that we can allow users to fill data and then the user can save it locally.

at the moment when I save a PDF locally it gives a warning that it will be saved blank.

Mayank_Gandhi
Community Advisor
Community Advisor

If you have AEM Server then you can follow the below document:

AEM forms * Configuring Acrobat Reader DC extensions

We have Reader Extension UI as well which allows you to ReaderExtend your form without writing code. UI can be accessed using below URL:

http://Host:port/ReaderExtensions/

The Ui looks like this:

1828543_pastedImage_2.png

If you have standalone acrobat you will see reader extension option in 'save as'.

Hope this helps!

Regards,

Mayank

workflowuser
Employee
Employee

Do you have AEM Forms license?

If yes you can use DocAssurance API to reader extend the pdf forms

I have a sample here Aem Forms Samples

Search for "Apply Usage Rights to PDF" which allows you to upload a PDF and it returns the PDF with Usage rights

The following code snippet does what you are looking for

public Document renderAndExtendXdp(String xdpPath) {

    // TODO Auto-generated method stub

    log.debug("In renderAndExtend xdp the alias is " + docConfig.ReaderExtensionAlias());

    PDFFormRenderOptions renderOptions = new PDFFormRenderOptions();

    renderOptions.setAcrobatVersion(AcrobatVersion.Acrobat_11);

    try {

        Document xdpRenderedAsPDF = formsService.renderPDFForm("crx://" + xdpPath, null, renderOptions);

        UsageRights usageRights = new UsageRights();

        usageRights.setEnabledBarcodeDecoding(docConfig.BarcodeDecoding());

        usageRights.setEnabledFormFillIn(docConfig.FormFill());

        usageRights.setEnabledComments(docConfig.Commenting());

        usageRights.setEnabledEmbeddedFiles(docConfig.EmbeddingFiles());

        usageRights.setEnabledDigitalSignatures(docConfig.DigitialSignatures());

        usageRights.setEnabledFormDataImportExport(docConfig.FormDataExportImport());

        ReaderExtensionsOptionSpec reOptionsSpec = new ReaderExtensionsOptionSpec(usageRights, "Sample ARES");

        UnlockOptions unlockOptions = null;

        ReaderExtensionOptions reOptions = ReaderExtensionOptions.getInstance();

        reOptions.setCredentialAlias(docConfig.ReaderExtensionAlias());

        log.debug("set the credential");

        reOptions.setResourceResolver(getResolver.getFormsServiceResolver());

       

        reOptions.setReOptions(reOptionsSpec);

        log.debug("set the resourceResolver and re spec");

        xdpRenderedAsPDF = docAssuranceService.secureDocument(xdpRenderedAsPDF, null, null, reOptions,

                unlockOptions);

diogomiranda
Level 4
Level 4

thank you both, I'm studying your answers and will post news soon.

Yes I have AEM Forms