Skip to main content
Participating Frequently
December 14, 2022
Question

Getting 'Fatal error ' when generating pdf using Adobe pdfservices-sdk

  • December 14, 2022
  • 1 reply
  • 5166 views

Getting 'Fatal error ' as below when generating pdf using Adobe

pdfservices-sdk

version 2.2.2 Html to pdf operation

All validations successfully done. Beginning CreatePDF operation execution 2022-12-13 16:59:48.749 [XNIO-1 task-14] ERROR c.a.e.d.m.b.s.CreatePDFFromHTML - Exception encountered while executing operation com.adobe.pdfservices.operation.exception.ServiceApiException: description ='Fatal error, Please check logs for details.'; requestTrackingId='Y6GzQ0h7Wj1e2GAdWMuBVapadrRcvtwY'; statusCode=500; errorCode=UNKNOWN at com.adobe.pdfservices.operation.pdfops.CreatePDFOperation.execute(CreatePDFOperation.java:212) at com.anthem.emep.dckr.microsvc.bbbookletservice.service.CreatePDFFromHTML.generatePdf(CreatePDFFromHTML.java:68)

    This topic has been closed for replies.

    1 reply

    Raymond Camden
    Community Manager
    Community Manager
    December 14, 2022

    Can you share the HTML input you used?

    Participating Frequently
    December 14, 2022
    <!DOCTYPE html>
    <html lang="en">

    <head>
    <meta charset="UTF-8">
    <title>Adobe IO</title>
    <script src="https://cdn.jsdelivr.net/npm/jsonata/jsonata.min.js"></script>
    </head>

    <body onload = "initial()">
    <script type="text/javascript">
    function initial()
    {
    var document = window.document;
    document.getElementById("outline").innerHTML = String(window.json.outline);
    }
    </script>

    <div>
    <div>
    <p id="outline"></p>
    </div>
    </div>
    </body>

    </html>
    Participating Frequently
    January 3, 2023

    I didn't know I had the ability - but I just removed your attachment.

     

    I'm looking at your second attachment, you still do NOT have the script tag. To be clear, it must be this: <script src='./json.js' type='text/javascript'></script>


     <script src="https://cdn.jsdelivr.net/npm/jsonata/jsonata.min.js"></script>

    I'm having above line in html file