How to merge two pdfs with assembler service using External Data URLs in DDX document? | Community
Skip to main content
Level 2
Jan 31, 2023 6:00 PM UTC
Solved

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

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.
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Feb 1, 2023 10:32 AM UTC

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.

3 replies

Vijay_Katoch
New Participant
Jan 31, 2023 8:24 PM UTC

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.

Translate
Level 2
Feb 1, 2023 10:20 AM UTC

Thanks for responding.

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

Assembler Service and DDX Reference (adobe.com).

 

Translate
Vijay_Katoch
Vijay_KatochAccepted solution
New Participant
Feb 1, 2023 10:32 AM UTC

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.

Translate