Símbolo de colones.

186 views
Skip to first unread message

Braulio José Solano Rojas

unread,
May 12, 2011, 9:54:17 PM5/12/11
to siwapp...@googlegroups.com
Hola.

Estoy utilizando Siwapp para generar facturas y veo bien el s�mbolo de
colones en el Web, sin embargo, cuando genero el PDF veo cuadritos. �Es
un problema de la fuente? Encontr� estas instrucciones:
http://dev.siwapp.org/projects/siwapp/wiki/pdfUnicodeSupport, pero
indican que es para una versi�n de Siwapp menor a la que poseo. Veo que
la plantilla que ven�a por defecto en la hoja de estilos tiene como
fuente Helvetica. �Tengo que modificar la hoja de estilos? En el
directorio data/fonts las fuentes son Liberation en Serif y Sans, Symbol
y ZapfDingbats. No me queda claro si DomPDF toma esas fuentes o toma la
fuente de la hoja de estilos.

Disculpen que escriba en espa�ol, pero ya hab�a escrito un correo en
ingl�s y no s� si fue porque me expliqu� muy mal en el idioma ingl�s que
no me contestaron o porque estoy haciendo una pregunta trivial.

Saludos cordiales,

B.

--
Director General
Solsoft de Costa Rica
Inteligencia Artificial... en su Negocio
http://solsoft.biz/

"The two parties which divide the State, the party of Conservatism and that of Innovation are very old, and have disputed the possession of the world ever since it was made ... Now one, now the other gets the day, and still the fight renews itself as if for the first time, under new names and hot personalities ... Innovation is the salient energy; Conservatism the pause on the last movement."

Ralph Waldo Emerson

Braulio José Solano Rojas

unread,
May 13, 2011, 12:27:47 AM5/13/11
to siwapp...@googlegroups.com
El 12/05/2011 07:54 p.m., Braulio Jos� Solano Rojas escribi�:

> En el directorio data/fonts las fuentes son Liberation en Serif y
> Sans, Symbol y ZapfDingbats.

Jos�, estoy viendo que esas fuentes tienen un m�nimo de s�mbolos de
monedas. Me encontr� en Internet con que el rango de monedas en Unicode
va de U+20A0 a U+20CF
(http://www.alanwood.net/unicode/currency_symbols.html). �No deber�a
Siwapp puesto que es un software de facturaci�n utilizar una fuente que
incluya el m�ximo de esos s�mbolos? En el enlace mencionado hay una
lista de fuentes que tienen los s�mbolos de ese rango, sin embargo, no
est� especificado cu�l es libre y cu�l no lo es.

Esta fuente tiene bastante m�s s�mbolos de ese rango:
http://www.numbertext.org/linux/ (aunque no tiene el col�n).

Por �ltimo me encontr� con una p�gina que lista fuentes que contienen
s�mbolos de moneda y adem�s son libres (GPL, por ejemplo) y permitidas
en aplicaciones comerciales inclusive:
http://www.fontspace.com/unicode/block/Currency+Symbols

Not� que la fuente en la generaci�n del PDF no depende de los estilos
CSS en la plantilla. �C�mo puedo modificar la fuente del PDF?

Saludos y gracias de antemano,

Braulio

José de Zárate

unread,
May 13, 2011, 11:40:33 AM5/13/11
to siwapp...@googlegroups.com
braulio.

Muchas gracias por todas tus investigaciones.

La verdad es que yo personalmente he pasado mucho tiempo rompiéndome la cabeza con las fuentes y el domPDF. Especialmente para lograr fuentes unicode. Me costó mucho llegar a la configuración actual, y no me pregunté si los símbolos de moneda estaban o no cubiertos.

Con respecto a las fuentes, en el css puedes cambiar las fuentes, aunque de un modo limitado. aquí te pongo el "mapa":

especificación css -------->  fuente utilizada

sans-serif             --------->  LiberationSans
helvetica              ---------->  LiberationSans

times                  ------------> LiberationSerif
times-roman        ------------> LiberationSerif
serif                    ------------> LiberationSerif

courier                -------------> LiberationMono
monospace         -------------> LiberationMono
fixed                   -------------> LiberationMono

zapfdingbats  -------------->Zapfdingbats
symbon         --------------->Symbol


Voy a investigar estos enlaces que me envías, y ver si logro encontrar una manera no muy complicada de poder añadir fuentes especiales al dompdf


2011/5/13 Braulio José Solano Rojas <bra...@solsoft.biz>
El 12/05/2011 07:54 p.m., Braulio José Solano Rojas escribió:

En el directorio data/fonts las fuentes son Liberation en Serif y Sans, Symbol y ZapfDingbats.

José, estoy viendo que esas fuentes tienen un mínimo de símbolos de monedas.  Me encontré en Internet con que el rango de monedas en Unicode va de U+20A0 a U+20CF (http://www.alanwood.net/unicode/currency_symbols.html).  ¿No debería Siwapp puesto que es un software de facturación utilizar una fuente que incluya el máximo de esos símbolos?  En el enlace mencionado hay una lista de fuentes que tienen los símbolos de ese rango, sin embargo, no está especificado cuál es libre y cuál no lo es.

Esta fuente tiene bastante más símbolos de ese rango:  http://www.numbertext.org/linux/ (aunque no tiene el colón).

Por último me encontré con una página que lista fuentes que contienen símbolos de moneda y además son libres (GPL, por ejemplo) y permitidas en aplicaciones comerciales inclusive:
http://www.fontspace.com/unicode/block/Currency+Symbols

Noté que la fuente en la generación del PDF no depende de los estilos CSS en la plantilla.  ¿Cómo puedo modificar la fuente del PDF?


Saludos y gracias de antemano,

Braulio


--
You received this message because you are subscribed to the Google Groups "siwapp-users" group.
To post to this group, send email to siwapp...@googlegroups.com.
To unsubscribe from this group, send email to siwapp-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/siwapp-users?hl=en.


José de Zárate

unread,
May 13, 2011, 2:38:02 PM5/13/11
to siwapp...@googlegroups.com
braulio

I've come up with a very rusty guide on how to add custom fonts to the pdf generator, so you can locate your font of choice (one that have proper encoding for the "colon" symbol) and add it to your system.

I made it quick and dirty, I'm still not sure if it will work out well. Please contact me again if you need further assistance

2011/5/13 José de Zárate <jza...@gmail.com>

Braulio José Solano Rojas

unread,
May 14, 2011, 2:01:48 PM5/14/11
to siwapp...@googlegroups.com
El 13/05/2011 12:38 p.m., José de Zárate escribió:
I've come up with a very rusty guide on how to add custom fonts to the pdf generator, so you can locate your font of choice (one that have proper encoding for the "colon" symbol) and add it to your system.

I made it quick and dirty, I'm still not sure if it will work out well. Please contact me again if you need further assistance

Hi!

I found a font that could replace Liberty:  http://dejavu-fonts.org/.  It's free!  That font has a maximum of currency symbols: euros, colones, pesetas, francs (even some exotic currencies).

Your guide is perfect.  I used your guide to replace Liberation to DejaVu.

I have this in the array:

array (
  'sans-serif' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuSans',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuSans-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuSans-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuSans-BoldOblique'
  ),
  'times' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuSerif',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuSerif-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-BoldOblique'
  ),
  'times-roman' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuSerif',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuSerif-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-BoldOblique'
  ),
  'courier' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuMono',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuMono-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuMono-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuMono-BoldOblique'
  ),
  'helvetica' => array(
    'normal' => DOMPDF_FONT_DIR . 'DejaVuSans',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuSans-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuSans-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuSans-BoldOblique'
  ),
  'zapfdingbats' => array (
    'normal' => DOMPDF_FONT_DIR . 'ZapfDingbats',
    'bold' => DOMPDF_FONT_DIR . 'ZapfDingbats',
    'italic' => DOMPDF_FONT_DIR . 'ZapfDingbats',
    'bold_italic' => DOMPDF_FONT_DIR . 'ZapfDingbats'
  ),
  'symbol' => array (
    'normal' => DOMPDF_FONT_DIR . 'Symbol',
    'bold' => DOMPDF_FONT_DIR . 'Symbol',
    'italic' => DOMPDF_FONT_DIR . 'Symbol',
    'bold_italic' => DOMPDF_FONT_DIR . 'Symbol'
  ),
  'serif' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuSerif',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuSerif-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuSerif-BoldOblique'
  ),
  'monospace' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuMono',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuMono-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuMono-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuMono-BoldOblique'
  ),
  'fixed' => array (
    'normal' => DOMPDF_FONT_DIR . 'DejaVuMono',
    'bold' => DOMPDF_FONT_DIR . 'DejaVuMono-Bold',
    'italic' => DOMPDF_FONT_DIR . 'DejaVuMono-Oblique',
    'bold_italic' => DOMPDF_FONT_DIR . 'DejaVuMono-BoldOblique'
  )
)

I generated the ufm files.

I cleared the cache...

The PDF is generated with DejaVu (I can see that the font is embedded in the file).

However, when I see the PDF in the currency I see a little square.  :-(

Do I have to use some special option with ttf2ufm?  I tried with -aF option but it did not work either.  Strange because DejaVu fonts has currency symbols.

I will try to investigate this further.

Bests,

B.

Braulio José Solano Rojas

unread,
May 14, 2011, 3:25:06 PM5/14/11
to siwapp...@googlegroups.com
El 14/05/2011 12:01 p.m., Braulio Jos� Solano Rojas escribi�:

> However, when I see the PDF in the currency I see a little square. :-(

I think I solved the problem (not 100% sure if it was this because I
touched several things).

I changed the file plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.

I replaced:

if (!defined("DOMPDF_UNICODE_ENABLED")) {
define("DOMPDF_UNICODE_ENABLED", false);
}

by

define("DOMPDF_UNICODE_ENABLED", true);

I think this was it.

Bests,

B.

P.S.: I am using DejaVu Sans font (DejaVu Serif has less currency
symbols and does not include "col�n").

José de Zárate

unread,
May 14, 2011, 7:22:38 PM5/14/11
to siwapp...@googlegroups.com
of course it was it!!! what surprises me is that you had unicode enabled set to false. If I recall correctly, 0..3.4 version should have it enabled per default. It should be enabled on apps/siwapp/config/siwapConfiguration.class.php

anyway, that's for the best.

txs for the tip on the font

2011/5/14 Braulio José Solano Rojas <bra...@solsoft.biz>
El 14/05/2011 12:01 p.m., Braulio José Solano Rojas escribió:

However, when I see the PDF in the currency I see a little square.  :-(

I think I solved the problem (not 100% sure if it was this because I touched several things).

I changed the file plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.

I replaced:

if (!defined("DOMPDF_UNICODE_ENABLED")) {
 define("DOMPDF_UNICODE_ENABLED", false);
}

by

define("DOMPDF_UNICODE_ENABLED", true);

I think this was it.

Bests,

B.

P.S.:  I am using DejaVu Sans font (DejaVu Serif has less currency symbols and does not include "colón").



--
Director General
Solsoft de Costa Rica
Inteligencia Artificial... en su Negocio
http://solsoft.biz/

"The two parties which divide the State, the party of Conservatism and that of Innovation are very old, and have disputed the possession of the world ever since it was made ... Now one, now the other gets the day, and still the fight renews itself as if for the first time, under new names and hot personalities ... Innovation is the salient energy; Conservatism the pause on the last movement."

Ralph Waldo Emerson

Braulio José Solano Rojas

unread,
May 14, 2011, 9:10:22 PM5/14/11
to siwapp...@googlegroups.com
El 14/05/2011 05:22 p.m., José de Zárate escribió:
of course it was it!!! what surprises me is that you had unicode enabled set to false. If I recall correctly, 0..3.4 version should have it enabled per default. It should be enabled on apps/siwapp/config/siwapConfiguration.class.php

Well, I have 0.3.4 but I upgraded from 0.3.2 (using the upgrades in the site).  Maybe I was doing something wrong...


anyway, that's for the best.

txs for the tip on the font

Your welcome!  Actually, now I'm using DejaVu Sans Condensed because it looks better.  I think the font-size from the CSS styles in the bill template does not affect DOM PDF.

Bye...

B.

OdellPhotos.com

unread,
May 15, 2011, 10:44:11 PM5/15/11
to siwapp...@googlegroups.com
I've got an error that looks a lot like yours!

I'm getting this when I try to print my PDF invoice.

Any help or thoughts?!?!
__________________________________

500 | Internal Server Error | DOMPDF_Internal_Exception
Frame not found in cellmap

stack trace
at ()
in SF_ROOT_DIR/plugins/sfDomPDFPlugin/lib/dompdf/include/cellmap.cls.php
line 224 ...
$key = $frame->get_id();


if ( !isset($this->_frames[$key]) ) {

throw new DOMPDF_Internal_Exception("Frame not found in cellmap");

}


return $this->_frames[$key];

Thanks!
Mark

Braulio José Solano Rojas

unread,
May 15, 2011, 10:53:35 PM5/15/11
to siwapp...@googlegroups.com
El 15/05/2011 08:44 p.m., OdellPhotos.com escribi�:

> I've got an error that looks a lot like yours!
Actually a lot different from mine.

> I'm getting this when I try to print my PDF invoice.
>
> Any help or thoughts?!?!

Did you try to search on DomPDF lists?

Bests,

B.


> __________________________________
>
> 500 | Internal Server Error | DOMPDF_Internal_Exception
> Frame not found in cellmap
>
> stack trace
> at ()
> in SF_ROOT_DIR/plugins/sfDomPDFPlugin/lib/dompdf/include/cellmap.cls.php
> line 224 ...
> $key = $frame->get_id();
>
>
> if ( !isset($this->_frames[$key]) ) {
>
> throw new DOMPDF_Internal_Exception("Frame not found in cellmap");
>
> }
>
>
> return $this->_frames[$key];
>
> Thanks!
> Mark
>
>

> 2011/5/14 Braulio Jos� Solano Rojas<bra...@solsoft.biz>:
>> El 14/05/2011 05:22 p.m., Jos� de Z�rate escribi�:


>>
>> of course it was it!!! what surprises me is that you had unicode enabled set
>> to false. If I recall correctly, 0..3.4 version should have it enabled per
>> default. It should be enabled on
>> apps/siwapp/config/siwapConfiguration.class.php
>>
>> Well, I have 0.3.4 but I upgraded from 0.3.2 (using the upgrades in the
>> site). Maybe I was doing something wrong...
>>
>> anyway, that's for the best.
>> txs for the tip on the font
>>
>> Your welcome! Actually, now I'm using DejaVu Sans Condensed because it
>> looks better. I think the font-size from the CSS styles in the bill
>> template does not affect DOM PDF.
>>
>> Bye...
>>
>> B.
>>
>>
>>

>> 2011/5/14 Braulio Jos� Solano Rojas<bra...@solsoft.biz>
>>> El 14/05/2011 12:01 p.m., Braulio Jos� Solano Rojas escribi�:


>>>> However, when I see the PDF in the currency I see a little square. :-(
>>> I think I solved the problem (not 100% sure if it was this because I
>>> touched several things).
>>>
>>> I changed the file
>>> plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.
>>>
>>> I replaced:
>>>
>>> if (!defined("DOMPDF_UNICODE_ENABLED")) {
>>> define("DOMPDF_UNICODE_ENABLED", false);
>>> }
>>>
>>> by
>>>
>>> define("DOMPDF_UNICODE_ENABLED", true);
>>>
>>> I think this was it.
>>>
>>> Bests,
>>>
>>> B.
>>>
>>> P.S.: I am using DejaVu Sans font (DejaVu Serif has less currency symbols

>>> and does not include "col�n").

OdellPhotos.com

unread,
May 15, 2011, 10:56:50 PM5/15/11
to siwapp...@googlegroups.com
I'll give it a shot...
I've pulled off the logo and now I can send and print my invoices.
But now I have the little placeholder and red X in the upper right
corner on my PDF...

2011/5/15 Braulio José Solano Rojas <bra...@solsoft.biz>:


> El 15/05/2011 08:44 p.m., OdellPhotos.com escribió:
>>
>> I've got an error that looks a lot like yours!
>
> Actually a lot different from mine.
>
>> I'm getting this when I try to print my PDF invoice.
>>
>> Any help or thoughts?!?!
>
> Did you try to search on DomPDF lists?
>
> Bests,
>
> B.
>
>
>> __________________________________
>>
>> 500 | Internal Server Error | DOMPDF_Internal_Exception
>> Frame not found in cellmap
>>
>> stack trace
>> at ()
>> in SF_ROOT_DIR/plugins/sfDomPDFPlugin/lib/dompdf/include/cellmap.cls.php
>> line 224 ...
>>     $key = $frame->get_id();
>>
>>
>>     if ( !isset($this->_frames[$key]) ) {
>>
>>       throw new DOMPDF_Internal_Exception("Frame not found in cellmap");
>>
>>     }
>>
>>
>>     return $this->_frames[$key];
>>
>> Thanks!
>> Mark
>>
>>

>> 2011/5/14 Braulio José Solano Rojas<bra...@solsoft.biz>:


>>>
>>> El 14/05/2011 05:22 p.m., José de Zárate escribió:
>>>
>>> of course it was it!!! what surprises me is that you had unicode enabled
>>> set
>>> to false. If I recall correctly, 0..3.4 version should have it enabled
>>> per
>>> default. It should be enabled on
>>> apps/siwapp/config/siwapConfiguration.class.php
>>>
>>> Well, I have 0.3.4 but I upgraded from 0.3.2 (using the upgrades in the
>>> site).  Maybe I was doing something wrong...
>>>
>>> anyway, that's for the best.
>>> txs for the tip on the font
>>>
>>> Your welcome!  Actually, now I'm using DejaVu Sans Condensed because it
>>> looks better.  I think the font-size from the CSS styles in the bill
>>> template does not affect DOM PDF.
>>>
>>> Bye...
>>>
>>> B.
>>>
>>>
>>>

>>> 2011/5/14 Braulio José Solano Rojas<bra...@solsoft.biz>


>>>>
>>>> El 14/05/2011 12:01 p.m., Braulio José Solano Rojas escribió:
>>>>>
>>>>> However, when I see the PDF in the currency I see a little square.  :-(
>>>>
>>>> I think I solved the problem (not 100% sure if it was this because I
>>>> touched several things).
>>>>
>>>> I changed the file
>>>> plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.
>>>>
>>>> I replaced:
>>>>
>>>> if (!defined("DOMPDF_UNICODE_ENABLED")) {
>>>>  define("DOMPDF_UNICODE_ENABLED", false);
>>>> }
>>>>
>>>> by
>>>>
>>>> define("DOMPDF_UNICODE_ENABLED", true);
>>>>
>>>> I think this was it.
>>>>
>>>> Bests,
>>>>
>>>> B.
>>>>
>>>> P.S.:  I am using DejaVu Sans font (DejaVu Serif has less currency
>>>> symbols

>>>> and does not include "colón").

OdellPhotos.com

unread,
May 15, 2011, 10:58:59 PM5/15/11
to siwapp...@googlegroups.com
Is the program looking for a particular size image file or format?

Braulio José Solano Rojas

unread,
May 15, 2011, 11:02:15 PM5/15/11
to siwapp...@googlegroups.com
El 15/05/2011 08:56 p.m., OdellPhotos.com escribió:
I'll give it a shot...
I've pulled off the logo and now I can send and print my invoices.
But now I have the little placeholder and red X in the upper right
corner on my PDF...
Surround with an if the logo code in the template (in the configuration):

        {% if settings.company_logo %}
        <div class="logo">
          <img src="{{ settings.company_logo }}" alt="{{ settings.company_name }}" />
        </div>
        {% endif %}

Braulio José Solano Rojas

unread,
May 15, 2011, 11:08:17 PM5/15/11
to siwapp...@googlegroups.com
El 15/05/2011 08:58 p.m., OdellPhotos.com escribi�:

> Is the program looking for a particular size image file or format?
I am using a PNG 200px width. Anyway, one can't put anything to big
there because it won't look fine.

Bests,

B.


> On Sun, May 15, 2011 at 10:56 PM, OdellPhotos.com<odel...@gmail.com> wrote:
>> I'll give it a shot...
>> I've pulled off the logo and now I can send and print my invoices.
>> But now I have the little placeholder and red X in the upper right
>> corner on my PDF...
>>
>>
>>

>> 2011/5/15 Braulio Jos� Solano Rojas<bra...@solsoft.biz>:
>>> El 15/05/2011 08:44 p.m., OdellPhotos.com escribi�:


>>>> I've got an error that looks a lot like yours!
>>> Actually a lot different from mine.
>>>
>>>> I'm getting this when I try to print my PDF invoice.
>>>>
>>>> Any help or thoughts?!?!
>>> Did you try to search on DomPDF lists?
>>>
>>> Bests,
>>>
>>> B.
>>>
>>>
>>>> __________________________________
>>>>
>>>> 500 | Internal Server Error | DOMPDF_Internal_Exception
>>>> Frame not found in cellmap
>>>>
>>>> stack trace
>>>> at ()
>>>> in SF_ROOT_DIR/plugins/sfDomPDFPlugin/lib/dompdf/include/cellmap.cls.php
>>>> line 224 ...
>>>> $key = $frame->get_id();
>>>>
>>>>
>>>> if ( !isset($this->_frames[$key]) ) {
>>>>
>>>> throw new DOMPDF_Internal_Exception("Frame not found in cellmap");
>>>>
>>>> }
>>>>
>>>>
>>>> return $this->_frames[$key];
>>>>
>>>> Thanks!
>>>> Mark
>>>>
>>>>

>>>> 2011/5/14 Braulio Jos� Solano Rojas<bra...@solsoft.biz>:
>>>>> El 14/05/2011 05:22 p.m., Jos� de Z�rate escribi�:
>>>>>

>>>>> of course it was it!!! what surprises me is that you had unicode enabled
>>>>> set
>>>>> to false. If I recall correctly, 0..3.4 version should have it enabled
>>>>> per
>>>>> default. It should be enabled on
>>>>> apps/siwapp/config/siwapConfiguration.class.php
>>>>>
>>>>> Well, I have 0.3.4 but I upgraded from 0.3.2 (using the upgrades in the
>>>>> site). Maybe I was doing something wrong...
>>>>>
>>>>> anyway, that's for the best.
>>>>> txs for the tip on the font
>>>>>
>>>>> Your welcome! Actually, now I'm using DejaVu Sans Condensed because it
>>>>> looks better. I think the font-size from the CSS styles in the bill
>>>>> template does not affect DOM PDF.
>>>>>
>>>>> Bye...
>>>>>
>>>>> B.
>>>>>
>>>>>
>>>>>

>>>>> 2011/5/14 Braulio Jos� Solano Rojas<bra...@solsoft.biz>
>>>>>> El 14/05/2011 12:01 p.m., Braulio Jos� Solano Rojas escribi�:


>>>>>>> However, when I see the PDF in the currency I see a little square. :-(
>>>>>> I think I solved the problem (not 100% sure if it was this because I
>>>>>> touched several things).
>>>>>>
>>>>>> I changed the file
>>>>>> plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.
>>>>>>
>>>>>> I replaced:
>>>>>>
>>>>>> if (!defined("DOMPDF_UNICODE_ENABLED")) {
>>>>>> define("DOMPDF_UNICODE_ENABLED", false);
>>>>>> }
>>>>>>
>>>>>> by
>>>>>>
>>>>>> define("DOMPDF_UNICODE_ENABLED", true);
>>>>>>
>>>>>> I think this was it.
>>>>>>
>>>>>> Bests,
>>>>>>
>>>>>> B.
>>>>>>
>>>>>> P.S.: I am using DejaVu Sans font (DejaVu Serif has less currency
>>>>>> symbols

>>>>>> and does not include "col�n").

OdellPhotos.com

unread,
May 15, 2011, 11:15:55 PM5/15/11
to siwapp...@googlegroups.com
Thanks! That did the trick. I guess my file was too large! 200 px
is working, though it IS pushing the rest of the information down the
page. But I think it will work out alright for me!

Thanks again!
Mark

2011/5/15 Braulio José Solano Rojas <bra...@solsoft.biz>:


> El 15/05/2011 08:58 p.m., OdellPhotos.com escribió:
>>
>> Is the program looking for a particular size image file or format?
>
> I am using a PNG 200px width.  Anyway, one can't put anything to big there
> because it won't look fine.
>
> Bests,
>
> B.
>
>
>> On Sun, May 15, 2011 at 10:56 PM, OdellPhotos.com<odel...@gmail.com>
>>  wrote:
>>>
>>> I'll give it a shot...
>>> I've pulled off the logo and now I can send and print my invoices.
>>> But now I have the little placeholder and red X in the upper right
>>> corner on my PDF...
>>>
>>>
>>>

>>> 2011/5/15 Braulio José Solano Rojas<bra...@solsoft.biz>:


>>>>
>>>> El 15/05/2011 08:44 p.m., OdellPhotos.com escribió:
>>>>>
>>>>> I've got an error that looks a lot like yours!
>>>>
>>>> Actually a lot different from mine.
>>>>
>>>>> I'm getting this when I try to print my PDF invoice.
>>>>>
>>>>> Any help or thoughts?!?!
>>>>
>>>> Did you try to search on DomPDF lists?
>>>>
>>>> Bests,
>>>>
>>>> B.
>>>>
>>>>
>>>>> __________________________________
>>>>>
>>>>> 500 | Internal Server Error | DOMPDF_Internal_Exception
>>>>> Frame not found in cellmap
>>>>>
>>>>> stack trace
>>>>> at ()
>>>>> in
>>>>> SF_ROOT_DIR/plugins/sfDomPDFPlugin/lib/dompdf/include/cellmap.cls.php
>>>>> line 224 ...
>>>>>     $key = $frame->get_id();
>>>>>
>>>>>
>>>>>     if ( !isset($this->_frames[$key]) ) {
>>>>>
>>>>>       throw new DOMPDF_Internal_Exception("Frame not found in
>>>>> cellmap");
>>>>>
>>>>>     }
>>>>>
>>>>>
>>>>>     return $this->_frames[$key];
>>>>>
>>>>> Thanks!
>>>>> Mark
>>>>>
>>>>>

>>>>> 2011/5/14 Braulio José Solano Rojas<bra...@solsoft.biz>:


>>>>>>
>>>>>> El 14/05/2011 05:22 p.m., José de Zárate escribió:
>>>>>>
>>>>>> of course it was it!!! what surprises me is that you had unicode
>>>>>> enabled
>>>>>> set
>>>>>> to false. If I recall correctly, 0..3.4 version should have it enabled
>>>>>> per
>>>>>> default. It should be enabled on
>>>>>> apps/siwapp/config/siwapConfiguration.class.php
>>>>>>
>>>>>> Well, I have 0.3.4 but I upgraded from 0.3.2 (using the upgrades in
>>>>>> the
>>>>>> site).  Maybe I was doing something wrong...
>>>>>>
>>>>>> anyway, that's for the best.
>>>>>> txs for the tip on the font
>>>>>>
>>>>>> Your welcome!  Actually, now I'm using DejaVu Sans Condensed because
>>>>>> it
>>>>>> looks better.  I think the font-size from the CSS styles in the bill
>>>>>> template does not affect DOM PDF.
>>>>>>
>>>>>> Bye...
>>>>>>
>>>>>> B.
>>>>>>
>>>>>>
>>>>>>

>>>>>> 2011/5/14 Braulio José Solano Rojas<bra...@solsoft.biz>


>>>>>>>
>>>>>>> El 14/05/2011 12:01 p.m., Braulio José Solano Rojas escribió:
>>>>>>>>
>>>>>>>> However, when I see the PDF in the currency I see a little square.
>>>>>>>>  :-(
>>>>>>>
>>>>>>> I think I solved the problem (not 100% sure if it was this because I
>>>>>>> touched several things).
>>>>>>>
>>>>>>> I changed the file
>>>>>>> plugins/sfDomPDFPlugin/lib/dompdf/dompdf_config.inc.php.
>>>>>>>
>>>>>>> I replaced:
>>>>>>>
>>>>>>> if (!defined("DOMPDF_UNICODE_ENABLED")) {
>>>>>>>  define("DOMPDF_UNICODE_ENABLED", false);
>>>>>>> }
>>>>>>>
>>>>>>> by
>>>>>>>
>>>>>>> define("DOMPDF_UNICODE_ENABLED", true);
>>>>>>>
>>>>>>> I think this was it.
>>>>>>>
>>>>>>> Bests,
>>>>>>>
>>>>>>> B.
>>>>>>>
>>>>>>> P.S.:  I am using DejaVu Sans font (DejaVu Serif has less currency
>>>>>>> symbols

>>>>>>> and does not include "colón").

Reply all
Reply to author
Forward
0 new messages