Import Eclipse Project
-
Download and unzip the zip file
-
Launch Eclipse and import the project into Eclipse
-
The project includes the following folders in the resources folder:
- ddxFiles - This folder contains the ddx file to describe the output you want to generate
- pdffiles - This folder contains the pdf files you want to assemble and pdf files to test PDFA utitilites
- credentials - This folder contains pdfa-options.json file
Test Assembling PDF Files
- Copy and paste your service credentials in the service_token.json resource file in the project.
- Open the AssemblePDFFiles.java file and specify the folder in which you want to save the generated PDF files
- Open ExecuteAssemblerService.java. Set the value of the variable AEM_FORMS_CS to point to your instance.
- Uncomment the appropriate lines to test assembling two or more PDF files
- Run the ExecuteAssemblerService.java as java application
Test PDFA utilities
- Copy and paste your service credentials in the service_token.json resource file in the project.
- Open the PDFAUtilities.java file and specify the folder in which you want to save the generated PDF files.
- Open ExecuteAssemblerService.java. Set the value of the variable AEM_FORMS_CS to point to your instance.
- Uncomment the appropriate lines to test PDFA operations.
- Run the ExecuteAssemblerService.java as java application.
NOTE
The very first time you run the java program you will get HTTP 403 error. To get past this make sure you give the appropriate permissions to the technical account user in AEM.
AEM Forms Users is the role I have used for this course.
recommendation-more-help
4859a77c-7971-4ac9-8f5c-4260823c6f69