Questions and discussion about using ProcessMaker: user interface, running cases & functionality
User avatar
By vlegros
#823370
Hi team
I try to add a simple logo in the PDF generated by processmaker.
My problem is that my server has no access to internet and i can't set an image url (for ex https://fr.freelogodesign.org/Content/img/logo-ex-7.png)
I would like to add a local jpg file that will be reachable by HTML2PDF when generating the pdf (HTML2PDF need a direct access to a file and i can't as I have no internet access on the server)
I've tryed to upload my logo to the photo gallery but then the url is http://XXXX/sysworkflow/en/neoclassic/a ... 9uZC5wbmc= and HTML2PDF won't allow it
Or is there a way to have a kind of template for generated output files ?
User avatar
By amosbatto
#823374
Upload the image to the Public Files for your process:
uploadedInPublicFiles.png
uploadedInPublicFiles.png (15.01 KiB) Viewed 3285 times


Then, edit the HTML code for your Output Document and add a line like this:
Code: Select all
<p><img src="http://localhost/sys@#SYS_SYS/en/neoclassic/@#PROCESS/yourFile.jpg" /></p>

OutputDocumentEditHtml.png
OutputDocumentEditHtml.png (51.59 KiB) Viewed 3285 times


The image won't appear in the HTML editor, but it should appear when you generate the Output Document when running a case:
generatedOutputDocumentWithImage.png
generatedOutputDocumentWithImage.png (99.34 KiB) Viewed 3285 times
User avatar
By vlegros
#823390
Thanks a lot for this response
It works on my dev machine, but doesn't generate the pdf on the test server
I probably made a mistake and will investigate the logs
best regards
vincent

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]