Bienvenido, Invitado
Nombre de Usuario: Contraseña:

TEMA: Problema con TCPDF en virtuemart

Problema con TCPDF en virtuemart 3 años 2 meses antes #7727

  • Ricardo48
  • Avatar de Ricardo48
  • Fuera de línea
  • Fresh Boarder
  • Mensajes: 1
  • Karma: 0
Hola, tengo instalado Virtuemart 2.022c sobre Joomla 2.5.14. Como me pide Viruemart he instalado TCPDF dentro de la carpeta "libraries" de joomla, he configurado tcphp_config.php (Lo adjunto) y cuando intento generar una factura me da el error: TCPDF ERROR: Could not include font definition file: helvetica .

¿hay que cambiar alguna otra configuración, o asignar permisos a las carpetas de TCPDF?

Gracias
<?php
//============================================================+
// File name : tcpdf_config.php
// Begin : 2004-06-11
// Last Update : 2013-05-16
//
// Description : Configuration file for TCPDF.
// Author : Nicola Asuni - Tecnick.com LTD - www.tecnick.com -

 \n

 Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.



// License : GNU-LGPL v3 (www.gnu.org/copyleft/lesser.html)
//
-----
// Copyright (C) 2004-2013 Nicola Asuni - Tecnick.com LTD
//
// This file is part of TCPDF software library.
//
// TCPDF is free software: you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
//============================================================+

/**
* Configuration file for TCPDF.
* @author Nicola Asuni
* @package com.tecnick.tcpdf
* @version 4.9.005
* @since 2004-10-27
*/

// If you define the constant K_TCPDF_EXTERNAL_CONFIG, the following settings will be ignored.

/**
* Installation path (/var/www/tcpdf/).
* By default it is automatically calculated but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_MAIN', '/libraries/tcpdf/');

/**
* URL path to tcpdf installation folder (http://localhost/tcpdf/).
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_URL', 'www.productossanos.com/libraries/tcpdf');

/**
* Path for PDF fonts.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_FONTS','/fonts/');

/**
* Default images directory.
* By default it is automatically set but you can also set it as a fixed string to improve performances.
*/
define ('K_PATH_IMAGES', '/images/');

/**
* Deafult image logo used be the default Header() method.
* Please set here your own logo or an empty string to disable it.
*/
//define ('PDF_HEADER_LOGO', '');

/**
* Header logo image width in user units.
*/
//define ('PDF_HEADER_LOGO_WIDTH', 0);

/**
* Cache directory for temporary files (full path).
*/
define ('K_PATH_CACHE', sys_get_temp_dir().'/');

/**
* Generic name for a blank image.
*/
define ('K_BLANK_IMAGE', '_blank.png');

/**
* Page format.
*/
define ('PDF_PAGE_FORMAT', 'A4');

/**
* Page orientation (P=portrait, L=landscape).
*/
define ('PDF_PAGE_ORIENTATION', 'P');

/**
* Document creator.
*/
define ('PDF_CREATOR', 'TCPDF');

/**
* Document author.
*/
define ('PDF_AUTHOR', 'TCPDF');

/**
* Header title.
*/
define ('PDF_HEADER_TITLE', 'TCPDF Example');

/**
* Header description string.
*/
define ('PDF_HEADER_STRING', "Ricarod García. www.productossanos.com");

/**
* Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
*/
define ('PDF_UNIT', 'mm');

/**
* Header margin.
*/
define ('PDF_MARGIN_HEADER', 5);

/**
* Footer margin.
*/
define ('PDF_MARGIN_FOOTER', 10);

/**
* Top margin.
*/
define ('PDF_MARGIN_TOP', 27);

/**
* Bottom margin.
*/
define ('PDF_MARGIN_BOTTOM', 25);

/**
* Left margin.
*/
define ('PDF_MARGIN_LEFT', 15);

/**
* Right margin.
*/
define ('PDF_MARGIN_RIGHT', 15);

/**
* Default main font name.
*/
define ('PDF_FONT_NAME_MAIN', 'helvetica');

/**
* Default main font size.
*/
define ('PDF_FONT_SIZE_MAIN', 10);

/**
* Default data font name.
*/
define ('PDF_FONT_NAME_DATA', 'helvetica');

/**
* Default data font size.
*/
define ('PDF_FONT_SIZE_DATA', 8);

/**
* Default monospaced font name.
*/
define ('PDF_FONT_MONOSPACED', 'courier');

/**
* Ratio used to adjust the conversion of pixels to user units.
*/
define ('PDF_IMAGE_SCALE_RATIO', 1.25);

/**
* Magnification factor for titles.
*/
define('HEAD_MAGNIFICATION', 1.1);

/**
* Height of cell respect font height.
*/
define('K_CELL_HEIGHT_RATIO', 1.25);

/**
* Title magnification respect main font size.
*/
define('K_TITLE_MAGNIFICATION', 1.3);

/**
* Reduction factor for small font.
*/
define('K_SMALL_RATIO', 2/3);

/**
* Set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language.
*/
define('K_THAI_TOPCHARS', true);

/**
* If true allows to call TCPDF methods using HTML syntax
* IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
*/
define('K_TCPDF_CALLS_IN_HTML', true);

/**
* If true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
*/
define('K_TCPDF_THROW_EXCEPTION_ERROR', false);

//============================================================+
// END OF FILE
//============================================================+
Última Edición: 2 años 11 meses antes por FeDoo.
El administrador ha desactivado la escritura pública.

Problema con TCPDF en virtuemart 2 años 11 meses antes #7757

  • FeDoo
  • Avatar de FeDoo
  • Fuera de línea
  • Administrator
  • Mensajes: 159
  • Gracias recibidas 7
  • Karma: 2
Estimado Ricardo48, al parecer tu mensaje no se guardo. ¿Nos puedes enviar nuevamente tu consulta?.
Slds.
Freddy
www.joomla.cl | Comunidad Joomla Chile | @joomlachile | www.facebook.com/joomla.cl
El administrador ha desactivado la escritura pública.




Moderadores: FeDoo, willin
Tiempo de carga de la página: 0.223 segundos
Gracias a Foro Kunena