Skip to main content
Participating Frequently
December 28, 2021
Question

PDF Document Service in AEM

  • December 28, 2021
  • 3 replies
  • 1201 views

Hi

We are looking for an integration of PDF Document Services in AEM6.5.  Though I am able to convert the HTML to pdf standalone but when putting them in AEM, the Bundes are not getting resolved saying the following.

com.adobe.pdfservices.operation -- Cannot be resolved
com.adobe.pdfservices.operation.auth -- Cannot be resolved
com.adobe.pdfservices.operation.exception -- Cannot be resolved
com.adobe.pdfservices.operation.io -- Cannot be resolved
com.adobe.pdfservices.operation.pdfops -- Cannot be resolved
com.adobe.pdfservices.operation.pdfops.options.createpdf -- Cannot be resolved

 

I know the document services Jar file is missing. But I need a OSGI bundel for this. Do we have any pre build OSGI Bundel or we need to convert the PDF document serives Jar to OSGI?

 

Subhendu

    This topic has been closed for replies.

    3 replies

    Ben Vanderberg
    Community Manager
    Community Manager
    January 5, 2022

    Thanks for the question! At this time, we do not have a pre-built OSGI bundle for Adobe PDF Services API. There is the Java SDK which you can utilize. For your use-case, are you looking to use it with AEM Sites, Assets, or Forms?

    Participating Frequently
    January 5, 2022

    Hi Ben

    Thanks for the reply. I am looking at using this in the AEM Sites. We need to convert the AEM Site webpage to PDF in the fly and show the PDF to the user on the browser.

     

    Currently I am trying to make this work using the PDF Services API but this is taking taking time as I have to call 3 APIS one after another (1. get Token, 2. create PDF, 3. get PDF) and most of the times the Last API is faling because by the time We call to get the PDF content it may be still geting processed by Adobe Cloud service and thats why we are some times getting 403 or file not found. And there is noway  we can know when the 2nd call will be finished so that we can call the 3rd one.

     

    Subhendu

    Ben Vanderberg
    Community Manager
    Community Manager
    January 5, 2022

    From the sound of you three API calls, are you using the REST API or are you using the Java SDK? I ask because the SDK would simplify the step 1 and step 3.

     

    Via REST API, there are two ways you can get the PDF back via REST API. The first way is to set your 

    respond-sync,wait=xxx

    https://documentcloud.adobe.com/document-services/index.html#post-createPDF

     

    This allows for the response to be provided and returned as part of your initial request. The other option is to make the separate API call asynchronously to get the output.

    Participant
    January 5, 2022

    I am still waiting for the response.

    Participating Frequently
    December 28, 2021

    Adding to the Question, Do we have any connnectors for AEM with PDF document servers?