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

PDF Conversion Error - Word 2 PDF

New Here ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

Hi, 

I am using java sdk for pdf conversion using the following code:

Credentials credentials = Credentials.serviceAccountCredentialsBuilder().fromFile("pdftools-api-credentials.json").build();


ExecutionContext executionContext = ExecutionContext.create(credentials);


CreatePDFOperation createPdfOperation = CreatePDFOperation.createNew();

 

FileRef source = FileRef.createFromLocalFile( Utils.getDataDir() + fileId + "." + extension);
createPdfOperation.setInput(source);


FileRef result = createPdfOperation.execute(executionContext);

result.saveAs(Utils.getDataDir() + fileId.split("\\.")[0] + ".pdf");

 

And I get the following error on the line in bold:

 

om.adobe.platform.operation.exception.ServiceApiException: description ='An Internal Server Error has occurred.; transactionId=4p5gjnmi8oMoRm2IaeQmrs7kHeaiSNFr'; requestTrackingId='4p5gjnmi8oMoRm2IaeQmrs7kHeaiSNFr'; statusCode=500

at com.adobe.platform.operation.pdfops.CreatePDFOperation.execute(CreatePDFOperation.java:196) ~[pdftools-sdk-1.2.0.jar!/:na]

 

Do someone have an idea what can be the reason??

 

TOPICS
Acrobat SDK and JavaScript , Windows

Views

68

Likes

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
LEGEND ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

LATEST

This is not the Acrobat SDK. Are you using  the Document Cloud SDK? Try here: https://community.adobe.com/t5/document-services-apis/bd-p/Document-Cloud-SDK?page=1&sort=latest_rep...

Likes

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