How to merge two pdfs with assembler service using External Data URLs in DDX document? | Community
Skip to main content
Level 2
January 31, 2023
Solved

How to merge two pdfs with assembler service using External Data URLs in DDX document?

  • January 31, 2023
  • 1 reply
  • 1225 views

Hello everyone,

I am facing issue in merging two pdfs with assembler service using external data URLs in DDX, which is location of the PDF from my local file system.

 

I am following the below process:

Environment details - AEM 6.5 (On-Premise) Forms-add-on package (adobe-aemfd-win-pkg-6.0.640.zip), OSGI forms & output service.

The DDX  being used:

<?xml version="1.0" encoding="UTF-8"?>

<DDX xmlns="http://ns.adobe.com/DDX/1.0/">

<PDF result="AnAssemblyAlso">

<PDF source="C:\\DDX_PDF\\GeneratedPDF_modify_LocAdd.pdf" >

<PDF source="C:\\DDX_PDF\\pdfB-MarketingContent.pdf">

</PDF>

</DDX>

 

Created a servlet to merge the pdfs using the assembler service.

 

 

 

 

 

While testing via postman, getting null pointer exception.

 

 

Snippet of the log:

Is this situation achievable? If yes, can anyone please suggest how to achieve the same?

Pls provide any resources or leads to understand if there is any limitations.

Thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Vijay_Katoch

In this case, you need to map the drive to the server or I think files should be on the same server where your aem server is.

1 reply

Vijay_Katoch
Community Advisor
Community Advisor
January 31, 2023

You need to retrieve the documents from the file system in variables and then pass them to ddx.

I am afraid the path like you mentioned will work.

Level 2
February 1, 2023

Thanks for responding.

I was referring the following document from adobe in page 33.

Assembler Service and DDX Reference (adobe.com).

 

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
February 1, 2023

In this case, you need to map the drive to the server or I think files should be on the same server where your aem server is.