• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PDF Document Service in AEM

Community Beginner ,
Dec 28, 2021 Dec 28, 2021

Copy link to clipboard

Copied

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

Views

698

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 28, 2021 Dec 28, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 05, 2022 Jan 05, 2022

Copy link to clipboard

Copied

I am still waiting for the response.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 05, 2022 Jan 05, 2022

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 05, 2022 Jan 05, 2022

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 05, 2022 Jan 05, 2022

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 05, 2022 Jan 05, 2022

Copy link to clipboard

Copied

Hi  Ben 

 

Thanks for your response. I am using REST API. I am following your 1st suggestion. Sometimes if the URL page is heavy the CreatePDF Rest API is giving 202 response instead of 201. If the response is 201 we are good. But incase case the response comes with 202, then we are going for GetPDF Rest Api call and there we get the issue like 403 or file not found, if the PDF is not prepared fully at Adobe Clould Service. And there is no way we know when the Create PDF is going to finish so that we can call the GetPDF API.

 

Subhendu

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 23, 2023 Jul 23, 2023

Copy link to clipboard

Copied

LATEST

Hi @Ben Vanderberg , 

Is Adobe PDF Services API (Java SDK) licensed under AEM 6.5 or we need to buy a separate license for it for our enterprize application? Or is it free?

Regards!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources