Jump to content

Problem with invoice


apastalas

Recommended Posts

Hello every one. I have prestashop version 1.5.6.1.

I modifyed pdf/header.tpl

<table style="width: 100%">
<tr>
	<td style="width: 50%">
		{if $logo_path}
			<img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" />
		{/if}
	</td>
	<td style="width: 50%; text-align: right;">
		<table style="width: 100%">
			<tr>
				<td style="font-weight: bold; font-size: 14pt; color: #444; width: 100%">
				<font face="Times New Roman"><CONTENT="text/html; charset=utf-8">
				<font size="4">UAB "Akvakomfortas"<br>Adresas: Danės g.23 , 92111 Klaipėda<br>
				Įmonės kodas: 1421 18159<br>
				PVM mokėtojo kodas: LT421181515<br>
				įmonės reg. kodas AB03-06<br>
				Bankas: SEB<br>
				LT35 7044 0600 0408 2586</font></font></td>
			</tr>
			<tr>
				<td style="font-size: 14pt; color: #9E9F9E">
				<font face="Times New Roman"><CONTENT="text/html; charset=utf-8">{$date|escape:'htmlall':'UTF-8'}</font></td>
			</tr>
			<tr>
				<td style="font-size: 14pt; color: #9E9F9E">
				<font face="Times New Roman"><CONTENT="text/html; charset=utf-8">{$title|escape:'htmlall':'UTF-8'}</font></td>
			</tr>
		</table>
	</td>
</tr>
</table>

But instead characters such as "ąčęėįšųūž" invoice pdf shows me "?" I tryed set utf-8, but nothing changes. Some one knows solution. I read a bunch of topics tryed a lot modules, but didn't find out how to fix it.

Link to comment
Share on other sites

Yes I did, I just find where is problem. /classes/pdf/PDFGenerator.php

	public $font_by_lang = array(
		'ja' => 'cid0jp', 
		'bg' => 'freeserif', 
		'ru' => 'freeserif', 
		'uk' => 'freeserif', 
		'mk' => 'freeserif', 
		'el' => 'freeserif',
		'lt' => 'freeserif',
		'en' => 'dejavusans',		
		'vn' => 'dejavusans', 
		'pl' => 'dejavusans',
		'ar' => 'dejavusans',
		'fa' => 'dejavusans',
		'ur' => 'dejavusans',
		'az' => 'dejavusans',
		'ca' => 'dejavusans',
		'gl' => 'dejavusans',
		'hr' => 'dejavusans',
		'sr' => 'dejavusans',
		'si' => 'dejavusans',
		'cs' => 'dejavusans',
		'sk' => 'dejavusans',
		'ka' => 'dejavusans',
		'he' => 'dejavusans',
		'lo' => 'dejavusans',
		'lv' => 'dejavusans',
		'tr' => 'dejavusans',
		'ko' => 'cid0kr',
		'zh' => 'cid0cs',
		'tw' => 'cid0cs',
		'th' => 'freeserif'
		);

I just added language code and font. Thats all what was needed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...