Issue with using OutputService API in AEM Forms

sowmyap72935357

01-07-2019

@Reference

private OutputService outputService;

----------

---------

PDFOutputOptions option = new PDFOutputOptions();

option.setContentRoot("/content/dam");

option.setAcrobatVersion(com.adobe.fd.output.api.AcrobatVersion.Acrobat_10);

option.setTaggedPDF(true);

option.setTaggedPDF(true);

option.setLocale(locale);

String XDPPath = "/content/dam/xdpfile.xdp";

File inputXML = new File("D:\test.xml");

InputStream in = new FileInputStream(inputXML);

doc = outputService.generatePDFOutput(XDPPath, new Document(in), option);

Hi Team,

I am trying to generate a PDF file from the adaptive form which is associated to a XDP.

I found  outputService.generatePDFOutput(XDPPath, new Document(in), option) API can do this PDF generation as shown in the code above.

When I try to use this, I have added the dependencies in pom as mentioned below to get the errors resolved.

<dependency>

    <groupId>com.adobe.aemfd</groupId>

    <artifactId>aemfd-client-sdk</artifactId>

    <version>1.0.2</version>

</dependency>

Then build got successful for project, but the core bundle is in "Installed" state as its dependency aemfd-client-sdk is having the below errors and its in "Installed" state.

1782783_pastedImage_15.png

I am unable to download the dependencies for the packages marked in red.

Please help me to resolve these errors.

Accepted Solutions (0)

Answers (0)