ericferon / glpi-archimap

GLPI plugin for drawing architecture maps (based on draw.io)
GNU General Public License v2.0
19 stars 10 forks source link

Error when exporting to pdf #44

Closed handsonti closed 3 years ago

handsonti commented 3 years ago

When exporting the diagram to PDF it returns error 404.

See below the message:

image

The error occurs in all browsers (Chorme, Edge, Firefox, Safari).

In the logs do not show any errors

Any advice to solve this problem?

ericferon commented 3 years ago

The draw.io/diagrams.net documentation advise to print a diagram in a pdf file instead of exporting it as pdf, for result quality. But, if you want to export it anyway, you should have an "image server" and replace the EXPORT_URL constant in the file drawio/src/main/webapp/js/PreConfig.js by the URL to your image server. For convenience, I modified the EXPORT_URL to point to the diagrams.net's image server, in the cloud. This is implemented in version >= 3.1.4 K.r,