Skip to main content
Solved

How to render/visualize pdf file in acumatica´s graph

  • June 26, 2021
  • 1 reply
  • 255 views

Hello Goodnight.I have pdf files hosted in the cloud. I need to be able to visualize them in some section of acumatica. I developed a code to display it on a web page and it works without problems (HTML5 pages, javascript), but when adding the same code in acumatica the code does not mark an error but nothing appears.

 

The code to visualize a pdf in a div is

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>My PDF Viewer</title>

</head>
<body>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.2.5/pdfobject.js"></script>
    <div id="example1" style="width: 700px; height: 500px;"></div>

    <script>

        document.addEventListener("DOMContentLoaded", function(event) { 

            PDFObject.embed(`url_pdf`, "#example1");
          });
        </script>

</body>


</html>
this code works perfect.

 

i put the same code in acumatica (the div “example1” is inside a splittercontent) but nothing appears.

 

Aditional: the code is a customization. 

can you help me please?

Best answer by eddiedaco

I found the solution in this link.

 

https://stackoverflow.com/questions/63958535/iframe-in-acumatica-form

View original
Did this topic help you find an answer to your question?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings