Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality
Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
By bahare
#787422
Hi
In a process I made an output document, and inserted an image in it. but image doesn't show in file, when I open the file.
I'm using tcpdf and I've uploaded image in public directory from process.
User avatar
By amosbatto
#787432
If you post the HTML code for your Output Document template, I might be able to figure out what is wrong. (in the editor for the template, click on the [html] button to see the HTML code.)
By bahare
#787438
amosbatto wrote:If you post the HTML code for your Output Document template, I might be able to figure out what is wrong. (in the editor for the template, click on the [html] button to see the HTML code.)
Hi amosbatto, thank u very much. here is my HTML code:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<p></p>
<table align="center" style="text-align: center; width: 100%;" class="mceItemTable" border="0">
<tbody>
<tr>
<td dir="rtl"></td>
<td dir="rtl" style="width: 40%; "><font size="3"><b>درخواست کالا از انبار</b></font></td>
<td dir="rtl" style="width: 30%; "><img src="http://IP/sysworkflow/en/neoclassic/52730885255cc5e4ff3e4d4053388737/logo.JPEG" data-mce-src="http://IP/sysworkflow/en/neoclassic/52730885255cc5e4ff3e4d4053388737/logo.JPEG" width="132" height="58" /></td>
</tr>
</tbody>
</table>
<p></p>
<table align="center" style="width: 100%;" class="mceItemTable" border="0">
<tbody>
<tr>
<td align="right" dir="rtl">واحد درخواست کننده: @#applicant_department_label</td>
<td align="right" style="width: 50%; " dir="rtl">شماره: @#request_staff_number</td>
</tr>
<tr dir="rtl">
<td align="right">نام درخواست کننده: @#name</td>
<td align="right">تاریخ: @#request_date</td>
</tr>
</tbody>
</table>
<p dir="rtl"></p>
<table align="center" style="width:100%;" cellspacing="0" border="1">
<tbody>
<tr data-mce-style="background-color: #bcbcbd; " style="background-color: #bcbcbd; "><th>کد کالا</th><th>شرح کالا</th><th>واحد</th><th>تعداد درخواستی</th><th>تعداد تحویل شده</th><th>توضیحات</th></tr>
<!--@>goods_from_warehouse-->
<tr>
<td>@#item_code</td>
<td>@#item_description</td>
<td>@#unit</td>
<td>@#request_quantity</td>
<td>@#delivered_quantity</td>
<td>@#quantity_comments</td>
</tr>
<!--@<goods_from_warehouse--></tbody>
</table>
<p></p>
<table align="center" style="width: 100%;" border="1">
<tbody>
<tr>
<td align="right" dir="rtl">
<p>تحویل گیرنده:</p>
<p>@#receiver_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>انباردار:</p>
<p>@#repositoryresponsible_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>بازرگانی:</p>
<p>@#commercialmanager_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>درخواست کننده:</p>
<p>@#applicant_name_aftersign</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
User avatar
By amosbatto
#787446
Your HTML looks fine. Is "IP" your domain name or did you put that in the code?

If you open a browser and put this web address, do you see the image?
Code: Select all
http://IP/sysworkflow/en/neoclassic/52730885255cc5e4ff3e4d4053388737/logo.JPEG
Maybe the table is causing problems. Try this:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<p></p>
<p dir="rtl" ><font size="3"><b>درخواست کالا از انبار</b></font></p>
<img src="http://IP/sysworkflow/en/neoclassic/52730885255cc5e4ff3e4d4053388737/logo.JPEG"  width="132" height="58" />
<p></p>
<table align="center" style="width: 100%;" class="mceItemTable" border="0">
<tbody>
<tr>
<td align="right" dir="rtl">واحد درخواست کننده: @#applicant_department_label</td>
<td align="right" style="width: 50%; " dir="rtl">شماره: @#request_staff_number</td>
</tr>
<tr dir="rtl">
<td align="right">نام درخواست کننده: @#name</td>
<td align="right">تاریخ: @#request_date</td>
</tr>
</tbody>
</table>
<p dir="rtl"></p>
<table align="center" style="width:100%;" cellspacing="0" border="1">
<tbody>
<tr data-mce-style="background-color: #bcbcbd; " style="background-color: #bcbcbd; "><th>کد کالا</th><th>شرح کالا</th><th>واحد</th><th>تعداد درخواستی</th><th>تعداد تحویل شده</th><th>توضیحات</th></tr>
<!--@>goods_from_warehouse-->
<tr>
<td>@#item_code</td>
<td>@#item_description</td>
<td>@#unit</td>
<td>@#request_quantity</td>
<td>@#delivered_quantity</td>
<td>@#quantity_comments</td>
</tr>
<!--@<goods_from_warehouse--></tbody>
</table>
<p></p>
<table align="center" style="width: 100%;" border="1">
<tbody>
<tr>
<td align="right" dir="rtl">
<p>تحویل گیرنده:</p>
<p>@#receiver_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>انباردار:</p>
<p>@#repositoryresponsible_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>بازرگانی:</p>
<p>@#commercialmanager_name_aftersign</p>
</td>
<td align="right" dir="rtl" style="width: 25%; ">
<p>درخواست کننده:</p>
<p>@#applicant_name_aftersign</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
User avatar
By amosbatto
#787568
Very strange.
The only thing I can imagine is that maybe it can't resize the image correctly or maybe rtl is interfering.Try:
Code: Select all
<p><font size="3"><b>درخواست کالا از انبار</b></font></p>
<img src="http://IP/sysworkflow/en/neoclassic/52730885255cc5e4ff3e4d4053388737/logo.jpg" />
<p></p>
User avatar
By amosbatto
#788250
Here is the HTML code for my output Document:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
</head>
<body>
<p>Can you see the following image?</p>
<p><img src="http://pm.localhost/sysworkflow/en/neoclassic/498947028586c53c01f92c0048304287/PausedCases.png" /></p>
</body>
</html>
What happens if you only use English text in your document? Your text should be in the UTF-8 character set, so maybe you are using another character which is causing problems.
User avatar
By amosbatto
#793161
This largely depends on your web browser and how it renders images. You can open the PNG image in a bitmap editor (like GIMP or Photoshop) and resave it to use interlacing. Or you can save it as a JPEG. You can also set the size of the image in your template like this so the content doesn't shift as the image is downloaded and rendered on the page.
Code: Select all
<img width="500px" height="250px" ...>

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]