How to merge two pdfs with assembler service using External Data URLs in DDX document? | Adobe Higher Education
Skip to main content
Level 2
January 31, 2023
해결됨

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

  • January 31, 2023
  • 1 답변
  • 1227 조회

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

 

이 주제는 답변이 닫혔습니다.
최고의 답변: 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 답변

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.

chayanika_27작성자
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
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.