Jump to content
Sign in to follow this  
dakrcz

Reseni cestiny v PDF - Presta 1.0 final

Recommended Posts

Zdravim

potreboval bych poradit jak vyresit aby se zobrazovali CZ znaky v pdf.
Zkousel jsem reseni co sou tady na foru ale bud to bylo pro starsi verze nebo to proste nejelo.

diky za odpovedi

Share this post


Link to post
Share on other sites

dik :)

Zeptam se takhle mate nekdo prestashop 1.0.0.8 a v nem fungujici PDF s ceskymi znaky ???
Pokud ano muzete napsat jak upravit soubory a pripadne prilozit soubor s fontem atd...

DEKUJI :)

Share this post


Link to post
Share on other sites
dik :)

Zeptam se takhle mate nekdo prestashop 1.0.0.8 a v nem fungujici PDF s ceskymi znaky ???
Pokud ano muzete napsat jak upravit soubory a pripadne prilozit soubor s fontem atd...

DEKUJI :)


V souboru classes/pdf.php si to uprav jak chces. smazal jsem si sve info
a v BO si nastav PDF na cp1250 ,pismo:arialmt


edit: koukam ze se stahuje ,tak neni zac no

pdf.zip

Share this post


Link to post
Share on other sites

Hello,

I live in Slovenia - we use practicaly the same symbols as Czech (same coding table cp1250 and same fonts). I managed to solve PDF invoice to print out our symbols normally with reading around some Czech threads, but I still have two problems. I can normally print out in PDF invoices (one by one) by clicking on Orders and then manually selecting one invoice from the list. But problems occur when I try to print out:

Orders -> Invoices -> Generate PDF file
Orders -> Credit Slips -> Generate PDF file

With those two options I don't get right characters printed out. I tried to change some settings in PDF.php and Tools.php but all without success. I am sending both file attachments (000003.pdf and invoices.pdf) where my problem is clearly visible. Do you have maybe any clue what could be wrong? How to change encoding, how to change fonts for those massive printings?

All I changed for now is: created new fonts (from arial.ttf in Windows) and planed them in tools/fpdf/font. Fonts are OK, because invoice is printed ok in single mode. Than I changed one single function in Tools.php:

static public function iconv($from, $to, $string)
{
if(function_exists("iconv"))
return iconv($from, $to, $string);
$converted = htmlentities($string, ENT_NOQUOTES, $from);
$converted = html_entity_decode($converted, ENT_NOQUOTES, $to);
return $converted;
}

Other than that I tried to change some things in PDF.php but there's practically no need to change anything. However, any advice would be appreciated.

Thank you in advance for your help!

Tomaz (Slovenia).

P.S. You can get both PDF files at:
http://rapidshare.de/files/41224508/Archive.zip.html

Archive.zip

Share this post


Link to post
Share on other sites

Máte někdo řešení pro verzi 1.2.5?
Does anybody have a solution for version 1.2.5?

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More