imagenes y dompdf

3,941 views
Skip to first unread message

Diego Villar

unread,
Mar 12, 2009, 3:13:24 PM3/12/09
to cakep...@googlegroups.com
Cual seria la forma correcta de insertar imagenes en una vista que luego exporto a pdf con dompdf, por alguna razon el mi PC local las imagenes insertadas con $html->image() funcionan pero en el server (linux) no ... alguien tiene idea?

José Lorenzo

unread,
Mar 12, 2009, 3:25:53 PM3/12/09
to cakep...@googlegroups.com
$pdf->image()
admite los mismos parametros que html->image

2009/3/13 Diego Villar <dmvi...@gmail.com>

Diego Villar

unread,
Mar 12, 2009, 6:10:20 PM3/12/09
to cakep...@googlegroups.com
gracias por responder ...

con $pdf->image() me anda barbaro en mi PC, ahora en el server (linux) no me funciona, que podra ser?

Diego Villar

unread,
Mar 12, 2009, 6:14:05 PM3/12/09
to cakep...@googlegroups.com
Aparentemente es algo de dompdf, por que ni poniendo la url completa de la imagen a mano, la toma en el pdf , podra tener que ver con algun permiso en alguna carpeta temporal o algo asi ??

teng...@gmail.com

unread,
Mar 12, 2009, 6:14:07 PM3/12/09
to cakep...@googlegroups.com
tienes permisos de escritura en la carpeta de las fuentes...

http://www.digitaljunkies.ca/dompdf/install.php#requirements

envianos el error que devuelve el servidor en linux para darte mas ayuda

Diego Villar

unread,
Mar 12, 2009, 6:16:19 PM3/12/09
to cakep...@googlegroups.com
Encontre esto en el archivo de configuracion de dompdf, y creo que viene por aca el tema:

/**
 * The location of the system's temporary directory.
 *
 * This directory must be writeable by the webserver process.
 * It is used to download remote images.
 */
define("DOMPDF_TEMP_DIR", "/tmp");



no estoy seguro de que la app pueda escribir en /tmp ... como puedo cambiar esto, no se a que ruta apuntar?

Diego Villar

unread,
Mar 12, 2009, 6:18:13 PM3/12/09
to cakep...@googlegroups.com
No tengo forma de sacar el error, por que para que salga el PDF tuve que poner debug = 0 y ini_set("display_errors", 0);

sino no me saca el pdf

teng...@gmail.com

unread,
Mar 12, 2009, 6:20:00 PM3/12/09
to cakep...@googlegroups.com
te recomiendo que lo habilites y nos lo envies para observarlo, a las ciegas es muy dificil ayudarte

Diego Villar

unread,
Mar 12, 2009, 6:26:11 PM3/12/09
to cakep...@googlegroups.com
si quito el init_set, me manda esta chorrera:



<br />
<b>Strict Standards</b>:  Non-static method App::import() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>722</b><br />
<br />
<b>Strict Standards</b>:  Non-static method App::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>760</b><br />
<br />
<b>Strict Standards</b>:  Declaration of SessionHelper::id() should be compatible with that of CakeSession::id() in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/helpers/session.php</b> on line <b>203</b><br />
<br />
<b>Strict Standards</b>:  Declaration of SessionHelper::write() should be compatible with that of CakeSession::write() in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/helpers/session.php</b> on line <b>203</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Overloadable::overload() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>1005</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/helpers/session.php</b> on line <b>61</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/session.php</b> on line <b>127</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/session.php</b> on line <b>131</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/session.php</b> on line <b>133</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::variable() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>636</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::camelize() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Inflector::underscore() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/inflector.php</b> on line <b>479</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>653</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head>
<body>
	<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>653</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<style>
.cableza{
	font-family:Chevin-Medium;
}

.cabeza td{
	font-size:8px;
	font-family:Chevin-Medium;
	border: 1px solid;
}
.cabeza th{
	font-size:8px;
	font-family:Chevin-Medium; 
}
</style>

<table width='97%'>
<tr>
	<td style='text-align:left'>
		<img src="http://digitsinc.com.ar/scp2/img/logo_skf_login.jpg" alt="" />		<!--<img src='http://www.edsullivandvd.com/img/logoed.gif'>-->
	</td>
	<td style='text-align:right'><span  style='font-family:Chevin-Medium;font-style:italic'>Standard Control Process Document</span></td>
</tr>
</table>
<table width='100%' class='cabeza'>
<tr>
	<td colspan='2' style='text-align:left;background-color:#E4E4E4'><b>PR-I-SKF Standard Control Process- Rev 02</b></td>
	<td style='text-align:right;background-color:#E4E4E4'></td>
</tr>
<tr>
	 <td style='text-align:left'>Type:<b> Procedure</b> </td>
	 <td style='text-align:left;background-color:red'>Use: <b> Internal </b></td>
	 <td style='text-align:left'>Owner:  Mariano Gonzalez </td>
</tr>
<tr>
	 <td style='text-align:left'>Creation Date: Nov 6th 2008, 15:41 </td>
	 <td style='text-align:left'>Revision: 02 </td>
	 <td style='text-align:left'>Status: Approved </td>
</tr>
<tr>
	 <td style='text-align:left'>Next Revision Date: Nov 6th 2008, 00:00 </td>
	 <td style='text-align:left'>Last Modified: Yesterday, 03:21</td>
	 <td></td>
</tr>
<tr>
	<th colspan='3' style='text-align:left'>Site in PM</th>
</tr>
<tr>
<td colspan='2' style='text-align:left'>
	<ul>
		<li>IMS » Marketing & Communication</li><li>IMS » Marketing & Communication » Marketing</li><li>PRM » Marketing & Comunication » Marketing</li><li>Pdm » Marketing & Comunication » Marketing</li>	</ul>
</td>
<td style='text-align:right;vertical-align:bottom'>
		
</td>	
</tr>
</table>

<table width='100%'>
	<tr>
		<td>
		<p style="FONT-FAMILY: "><span style="font-family: Chevin-Medium;"><span style="font-size: medium;"><span style="text-decoration: underline;">Este un doc de SKF Latin America</span></span></span></p>
<p><span style="font-family: Chevin-Medium;"><span style="font-size: medium;">Contenido xxxxxx</span></span></p>
<p><span style="font-family: Chevin-Medium;"><span style="font-size: medium;">&nbsp;</span></span></p>		</td>
	</tr>
</table>

</body>
</html>
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/app/webroot/index.php</b> on line <b>92</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/app/webroot/index.php</b> on line <b>95</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/model/connection_manager.php</b> on line <b>263</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/model/datasources/dbo_source.php</b> on line <b>2056</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />

teng...@gmail.com

unread,
Mar 12, 2009, 6:40:39 PM3/12/09
to cakep...@googlegroups.com
mmmm... ese error tmb me salio cuando lo subi a mi servidor en linux... pero no lo pude resolver... te recomiendo que revises todas las librerias de instalacion, el error de No Static generalmente se da cuando usas una clase factory, pero no creas el objeto... y x consiguiente cuando utilizas sus metodos hace una llamada estatica cuando no lo declaraste asi

Diego Villar wrote:
</b> on line <b>302</b><br />
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;  /></head>
<body>
	<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/view/view.php</b> on line <b>653</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<style>
.cableza{
	font-family:Chevin-Medium;
}

.cabeza td{
	font-size:8px;
	font-family:Chevin-Medium;
	border: 1px solid;
}
.cabeza th{
	font-size:8px;
	font-family:Chevin-Medium; 
}
</style>

<table width='97%'>
<tr>
	<td style='text-align:left'>
		<img src="http://digitsinc.com.ar/scp2/img/logo_skf_login.jpg" alt="" />		<!--<img src='http://www.edsullivandvd.com/img/logoed.gif'>-->
	</td>
	<td style='text-align:right'><span  style='font-family:Chevin-Medium;font-style:italic'>Standard Control Process Document</span></td>
</tr>
</table>
<table width='100%' class='cabeza'>
<tr>
	<td colspan='2' style='text-align:left;background-color:#E4E4E4'><b>PR-I-SKF Standard Control Process- Rev 02</b></td>
	<td style='text-align:right;background-color:#E4E4E4'></td>
</tr>
<tr>
	 <td style='text-align:left'>Type:<b> Procedure</b> </td>
	 <td style='text-align:left;background-color:red'>Use: <b> Internal </b></td>
	 <td style='text-align:left'>Owner:  Mariano Gonzalez </td>
</tr>
<tr>
	 <td style='text-align:left'>Creation Date: Nov 6th 2008, 15:41 </td>
	 <td style='text-align:left'>Revision: 02 </td>
	 <td style='text-align:left'>Status: Approved </td>
</tr>
<tr>
	 <td style='text-align:left'>Next Revision Date: Nov 6th 2008, 00:00 </td>
	 <td style='text-align:left'>Last Modified: Yesterday, 03:21</td>
	 <td></td>
</tr>
<tr>
	<th colspan='3' style='text-align:left'>Site in PM</th>
</tr>
<tr>
<td colspan='2' style='text-align:left'>
	<ul>
		<li>IMS » Marketing & Communication</li><li>IMS » Marketing & Communication » Marketing</li><li>PRM » Marketing & Comunication » Marketing</li><li>Pdm » Marketing & Comunication » Marketing</li>	</ul>
</td>
<td style='text-align:right;vertical-align:bottom'>
		
</td>	
</tr>
</table>

<table width='100%'>
	<tr>
		<td>
		<p style="FONT-FAMILY: "><span style="font-family: Chevin-Medium;"><span style="font-size: medium;"><span style="text-decoration: underline;">Este un doc de SKF Latin America</span></span></span></p>
<p><span style="font-family: Chevin-Medium;"><span style="font-size: medium;">Contenido xxxxxx</span></span></p>
<p><span style="font-family: Chevin-Medium;"><span style="font-size: medium;">&nbsp;</span></span></p>		</td>
	</tr>
</table>

</body>
</html>
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/app/webroot/index.php</b> on line <b>92</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/app/webroot/index.php</b> on line <b>95</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/model/connection_manager.php</b> on line <b>263</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::read() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/model/datasources/dbo_source.php</b> on line <b>2056</b><br />
<br />
<b>Strict Standards</b>:  Non-static method Configure::getInstance() should not be called statically, assuming $this from incompatible context in <b>/var/www/virtual/digitsinc.com.ar/htdocs/scp2/cake/libs/configure.php</b> on line <b>302</b><br />
  

Diego Villar

unread,
Mar 12, 2009, 6:45:19 PM3/12/09
to cakep...@googlegroups.com
Antes que nada, gracias por tanta buena onda !
Si, intente muchas horas tratando de ver por que daba este error de Non-Static, pero no le pude encontrar solucion ... asi que opte por el init_set


Por otro lado te cuento que pude resolver lo de las imagenes !!! y el tema esta en que no es posible escribir en "/tmp", de momento y para probar en ese lugar puse "./" y le di permiso de escritura a toda la app y ahi funcionan las imagenes ! ahora no se como deberia quedar para que sea correcto ... como apunto eso a algun path relativo coherente ??




Diego Villar

unread,
Mar 12, 2009, 6:50:18 PM3/12/09
to cakep...@googlegroups.com
Bueno, encontre creo la mejor solucion al menos a primera vista

Asi me quedo:

define("DOMPDF_TEMP_DIR", "../tmp");

y funciona ok, supongo que le esta cayendo al tmp de la app

teng...@gmail.com

unread,
Mar 12, 2009, 6:55:39 PM3/12/09
to cakep...@googlegroups.com
mmm... revisa en la carpeta /app/webroot/ a veces cuando pones rutas en duro, cake crea estas en Webroot...
en hora buena q has podido lograr usar esa libreria!, yo tmb volvere a mis fueros con ella, antes tambien tuve esos problemas pero por premuras del trabajo desisti... :D

sebastian saucedo

unread,
Jul 30, 2013, 3:42:06 PM7/30/13
to cakep...@googlegroups.com, dmvi...@gmail.com
Hola gente, si todavia no lo resolvieron el tea de insertar imagenes en cakephp cuando se exporta con dompdf lo siguiente me funciono:

1- En \app\Vendor\dompdf  editar el archivo dompdf_config.inc.php.

2- En el archivo buscar "DOMPDF_ENABLE_REMOTE" y cambiarlo a 'true'.

3- Finalmente en el archivo a imprimir la imagen, hay que colocar la url completa de la imagen:
<img src="<?php echo Router::url('/', true); ?>img/pdf/logo_pdf.jpg" />

Espero que le haya sido de ayuda... 

Saludos

Andres Añez

unread,
Feb 21, 2015, 9:00:08 PM2/21/15
to cakep...@googlegroups.com, dmvi...@gmail.com
Aqui esta la solucion a este tema http://skynetproject.com.ve/blog/error-con-imagenes-en-dompdf/

Me tomo algo de tiempo dar con la falla.

Gracias por su atencion.
Reply all
Reply to author
Forward
0 new messages