aizis Posted June 19, 2008 Report Share Posted June 19, 2008 Vai kāds lūdzu nevarētu apskaidrot, kā varētu dabūt to lai PDF failu vaētu veidot latviešu valodā, tjipa bez garumzimeem ierakstiit nesagādā nekādas grūtības, bet tiklīdz jāraksta garumzīmes PDFā rakstās visādi ķeburi, šādi aptuveni izskatās mans kodiņš : $pdf = PDF_new(); pdf_open_file($pdf, "latviski.pdf"); pdf_set_parameter($pdf, "textformat", "auto"); pdf_begin_page($pdf,595, 842); $font=pdf_findfont($pdf, "Times-Roman", "host",0); pdf_setfont($pdf, $font, 12); pdf_show_xy($pdf, "Ieraksām kādu Latviešu tekstiņu", 50, 750); pdf_end_page($pdf); pdf_close($pdf); Link to comment Share on other sites More sharing options...
Klez Posted June 19, 2008 Report Share Posted June 19, 2008 tai klasei nevar kaut kaa enkodingu noraadiit ? kas taa par klasi ko izmanto ? Link to comment Share on other sites More sharing options...
marrtins Posted June 19, 2008 Report Share Posted June 19, 2008 Tev vajag ielikt pdf`ā fontu ar win1257 charsetu. Link to comment Share on other sites More sharing options...
Aleksejs Posted June 19, 2008 Report Share Posted June 19, 2008 http://php.lv/f/index.php?showtopic=1142&hl= Link to comment Share on other sites More sharing options...
martins256 Posted June 19, 2008 Report Share Posted June 19, 2008 es izmantoju šito: http://www.tecnick.com/public/code/cp_dpag...?aiocp_dp=tcpdf supports UTF-8 Unicode and Right-To-Left languages; Link to comment Share on other sites More sharing options...
Klez Posted June 20, 2008 Report Share Posted June 20, 2008 panjem no windows fonts mapiites fontu, kursh prot rakstiit garumziimes. atver wordu uzraksti kaut ko pamaini fontu un to fonu no windows/fonts mapiites noraadi tai pdf klasei ... Link to comment Share on other sites More sharing options...
zinatnieks Posted June 20, 2008 Report Share Posted June 20, 2008 Iesaku izmantot TCPDF. Ar garumzīmēm nebūs problēmu. Link to comment Share on other sites More sharing options...
Alnis Posted June 20, 2008 Report Share Posted June 20, 2008 (edited) vai ir kāda līdzīga klase, kas dara visu to pasu bet MS WORD formātā? Edited June 20, 2008 by Alnis Link to comment Share on other sites More sharing options...
bubu Posted June 20, 2008 Report Share Posted June 20, 2008 Priekš Word izdevīgāk ir drukāt outputā HTML'u, bet content-type padot kā word dokumentam. Link to comment Share on other sites More sharing options...
Alnis Posted June 20, 2008 Report Share Posted June 20, 2008 paldies:) tieši tas kas vajadzīgs! Varbūt ir kāds, kas nezin, kas precīzi jāraksta, tad lūdzu: header("Content-type: application/msword") Link to comment Share on other sites More sharing options...
Recommended Posts