Filed under: CentOS, Fedora, Joomla, LAMP, oscommerce, php, Tips, Tricks | Tags: create pdf with php, create php fonts, Create TCPDF PHP Fonts, pdfPHP, tcpdf fonts |
TCPDF supports TrueTypeUnicode (UTF-8 Unicode), OpenTypeUnicode, TrueType, OpenType, Type1, CID-0 and Core (standard) fonts.
You will find font creation utility at fonts/utils of TCPDF… copy desired font to fonts/utils/svnlabs.ttf
* For TrueTypeUnicode
# cd /var/www/html/tcpdf/fonts/utils
# ttf2ufm -a -F svnlabs.ttf
# php -q makefont.php svnlabs.ttf svnlabs.ufm
* For embedded fonts to tcpdf PDF file.. copy the resulting svnlabs.php, svnlabs.z and svnlabs.ctg.z to fonts folder
Uses:
……..
$pdf->SetFont(‘svnlabs’,'I’,8);
……….
?>
http://sandeepverma.wordpress.com/2009/12/10/create-tcpdf-php-fonts/
Selasa, 21 Desember 2010
Rabu, 29 September 2010
Fatal error: Method Varien_Object::__tostring() cannot take arguments in C:\wamp\www\magento\lib\Varien\Object.php on line 488
Fatal error: Method Varien_Object::__tostring() cannot take arguments in C:\wamp\www\magento\lib\Varien\Object.php on line 488
File: /lib/Varien/Object.php (Line 484)
Change from
public function ___toString(array $arrAttributes = array(), $valueSeparator=',')
To this
public function __invoke(array $arrAttributes = array(), $valueSeparator=',')
File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)
Change from
$host = split(':', $_SERVER['HTTP_HOST']);
To this
$host = explode(':', $_SERVER['HTTP_HOST']);
from http://www.magentocommerce.com/boards/viewthread/50022/
File: /lib/Varien/Object.php (Line 484)
Change from
public function ___toString(array $arrAttributes = array(), $valueSeparator=',')
To this
public function __invoke(array $arrAttributes = array(), $valueSeparator=',')
File /app/code/core/Mage/Core/Controller/Request/Http.php (Line 274)
Change from
$host = split(':', $_SERVER['HTTP_HOST']);
To this
$host = explode(':', $_SERVER['HTTP_HOST']);
from http://www.magentocommerce.com/boards/viewthread/50022/
Setting curl (magento)
On “xampp-win32-1.6.2-installer.exe” you will Have 4 php files to edit:
C:\xampp\apache\bin\php.ini
C:\xampp\php\php.ini
C:\xampp\php\php4\php.ini
C:\xampp\php\php4\php4.iniOpen the files one at a time With “Notepad++” Press Ctrl F And search\Find “cUrl”, You will See “;extension=php_curl.dll” all you have to do is REMOVE THE ” ; ” from all 4 files Make them:
extension=php_curl.dll And Restart The Xampp Server. Now Curl Support will be on.
From http://www.menyhart.net/blog/developer-stuff/enabling-curl-on-xampp/
Rabu, 04 Agustus 2010
create .ctp on netbean IDE
how to create template file cakePHP (.ctp) on netbean IDE
try this way:
right click and then select new > Empty file > yourfilename.ctp
Finish.
Good luck...
try this way:
right click and then select new > Empty file > yourfilename.ctp
Finish.
Good luck...
Selasa, 03 Agustus 2010
netbean + cakePHP
How to associate the .ctp file with .php file use IDE netbean ?
try this way :
tools -> option -> miscellaneous -> Files tab
add new file extension " ctp"
and then associated to php.
Good luck ......
try this way :
tools -> option -> miscellaneous -> Files tab
add new file extension " ctp"
and then associated to php.
Good luck ......
Langganan:
Postingan (Atom)