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
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
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.
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
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").
El 14/05/2011 12:01 p.m., Braulio José Solano Rojas escribió:I think I solved the problem (not 100% sure if it was this because I touched several things).
However, when I see the PDF in the currency I see a little square. :-(
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
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
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
> 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").
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").
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...
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").
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").