Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

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

Avatar

Level 2

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.

chayanika_27_0-1675187793443.png

 

 

chayanika_27_1-1675187793449.png

 

 

 

While testing via postman, getting null pointer exception.

chayanika_27_2-1675187793460.png

 

 

Snippet of the log:

chayanika_27_3-1675187793465.png

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

 

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Community Advisor

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.

Lösung in ursprünglichem Beitrag anzeigen

3 Antworten

Avatar

Community Advisor

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.

Avatar

Level 2

Thanks for responding.

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

Assembler Service and DDX Reference (adobe.com).

 

Avatar

Korrekte Antwort von
Community Advisor

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.