TOPIC:

no show Image in pdf 2 months 1 week ago #277797

  • Topic Author
  • gateirow
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 18
  • Thanks: 0
Hello

My problem is that the uploaded image does not show in the pdf.

Help me
Attachments:

Please Log in or Create an account to join the conversation.

no show Image in pdf 2 months 1 week ago #277799

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3262
  • Karma: 2
  • Thanks: 160
Hi,

could you please provide me here pdf.php file so I can test it on my server

Let me know!

If you have more questions, feel free to ask!


Regards,
Mirko

Please Log in or Create an account to join the conversation.

no show Image in pdf 2 months 1 week ago #277801

  • Topic Author
  • gateirow
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 18
  • Thanks: 0
Hi friend

Variable i1 is the image



<?php
echo '<link href="estilopdf.css" type="text/css" rel="stylesheet">';
/**
* BreezingForms - A Joomla Forms Application
* @version 1.9
* @package BreezingForms
* @copyright (C) 2008-2020 by Markus Bopp
* @license Released under the terms of the GNU General Public License
**/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// IMPORTANT!
// Supported Tags: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small
?>

<?php
/** Declare all variables */
$fecha_de_solicitud = '';
$i1 = '';
$nombre_funcionario = '';

$fecha_ingreso_funcionario ='';




if (count($xmldata)){
foreach ($xmldata as $data) {
$value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
switch($data[_FF_DATA_NAME]){


case 'fecha_de_solicitud':
$fecha_de_solicitud= $value;
break;

case 'observaciones':
$observaciones= $value;
break;

case 'nombre_funcionario':
$nombre_funcionario= $value;
break;
case 'cargo_funcionario':
$cargo_funcionario= $value;
break;
case 'empresa_funcionario':
$empresa_funcionario= $value;
break;
case 'fecha_ingreso_funcionario':
$fecha_ingreso_funcionario= $value;
break;
case 'i1':
$i1= $value;
break;

}
}
}
?>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<table width="540" border="0" id="sec1">
<tr>
<td width="234" align="right"><?php echo $fecha_de_solicitud; ?>
</td>
<td width="296" align="center"><span style="color:red;"><?php echo $this->record_id; ?></span>
</td>

</tr>

</table>



<p>

<!--tabla principal
-->
</p>
<table width="540" border="0">
<tr>
<td> <span style="font-size:10px;"><?php echo $nombre_funcionario; ?></span>
</td>
</tr>
</table>
<table width="540" border="0">
<tr>
<td width="210"><span style="font-size:10px;"><?php echo $cargo_funcionario; ?></span>
</td>
<td width="320"><span style="font-size:9px;"><?php echo $i1; ?></span></td>
</tr>
</table>

Please Log in or Create an account to join the conversation.

no show Image in pdf 2 months 1 week ago #277822

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3262
  • Karma: 2
  • Thanks: 160
Hi,

oke I will now test this code on my server and see where is the problem and solve it


If you have more questions, feel free to ask!


Regards,
Mirko

Please Log in or Create an account to join the conversation.

no show Image in pdf 2 months 1 week ago #277826

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 3262
  • Karma: 2
  • Thanks: 160
Hi,

could you please try this code below :
<?php
/**
 * BreezingForms - A Joomla Forms Application
 * @version 1.9
 * @package BreezingForms
 * @copyright (C) 2008-2020 by Markus Bopp
 * @license Released under the terms of the GNU General Public License
 **/
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// IMPORTANT!
// Supported Tags: h1, h2, h3, h4, h5, h6, b, u, i, a, img, p, br, strong, em, font, blockquote, li, ul, ol, hr, td, th, tr, table, sup, sub, small
?>

<?php
/* Declare all variables */
$fecha_de_solicitud = '';
$i1 = '';
$nombre_funcionario = '';

$fecha_ingreso_funcionario ='';




if (count($xmldata)){
foreach ($xmldata as $data) {
$value = nl2br(htmlentities(substr(is_array($data[_FF_DATA_VALUE]) ? implode('|',$data[_FF_DATA_VALUE]) : $data[_FF_DATA_VALUE],0,10000), ENT_QUOTES, 'UTF-8'));
switch($data[_FF_DATA_NAME]){


case 'fecha_de_solicitud':
$fecha_de_solicitud= $value;
break;

case 'observaciones':
$observaciones= $value;
break;

case 'nombre_funcionario':
$nombre_funcionario= $value;
break;
case 'cargo_funcionario':
$cargo_funcionario= $value;
break;
case 'empresa_funcionario':
$empresa_funcionario= $value;
break;
case 'fecha_ingreso_funcionario':
$fecha_ingreso_funcionario= $value;
break;
case 'i1':
$i1= $value;
break;

}
}
}
?>
<br/><br/><br/><br/><br/><br/><br/><br/><br/>
<table width="540" border="0" id="sec1">
<tr>
<td width="234" align="right"><?php echo $fecha_de_solicitud; ?>
</td>
<td width="296" align="center"><span style="color:red;"><?php echo $this->record_id; ?></span>
</td>

</tr>

</table>



<p>

<!--tabla principal
-->
</p>
<table width="540" border="0">
<tr>
<td> <span style="font-size:10px;"><?php echo $nombre_funcionario; ?></span>
</td>
</tr>
</table>
<table width="540" border="0">
<tr>
<td width="210"><span style="font-size:10px;"><?php echo $cargo_funcionario; ?></span>
</td>
<td width="320"><span style="font-size:9px;"><img src="<?php echo $i1; ?>" width="150" /></span></td>
</tr>
</table>



I tested it on my server and I get the image in the pdf file

Please test this code, and then let me know the result!

Regards,
Mirko

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.050 seconds

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!