Solved

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

  • 26 June 2021
  • 1 reply
  • 199 views

Userlevel 2
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?
icon

Best answer by eddiedaco 29 June 2021, 06:48

View original

1 reply

Userlevel 2

I found the solution in this link.

 

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

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved