| Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems |
| by SMEDrieben on 2010/2/10 15:05:12 I solved the problem in News by deleting the images. I used the thread above and added three lines to pdf.php: le="color: #000000"><?php $content = str_replace('[pagebreak]','<br/>',$content); //after this line $pattern[] = "/<img (.*)/>/sU"; $replacements[] = ''; $content = preg_replace($pattern, $replacements, $content); Now the images are deleted, the text is perfect !! SME Drieben |
| Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems |
| by SMEDrieben on 2010/2/3 20:27:56 Thanks ! I tried your suggestions. It did not solve the problem, but I find out what is the cause ! When I add an image to the hometext or bodytext, such as: le="color: #000000"><?php [img align=right id=46]Imagename[/img] my problem occurs. It is: the hometext (and or bodytext) are printed in the pdf over the header. The pdf gets unreadable. If there is no Xoops-image code, the pdf is generated correctly. Any solution ? SME Drieben |
| Re: News 1.63 - PDF Creation: UTF-8 not working and xLanguage Problems |
| by culex on 2010/2/2 11:17:26 I can't replicate the problem on my site everything screens ok. JvQ in xoopsnordic added these modifications to my changes to clear up subject / title issues, maybe they can help line 251-257 le="color: #000000"><?php $pdf->SetCreator(PDF_CREATOR); $pdf->SetAuthor($article->uname()); $pdf->SetTitle($doc_title); $pdf->SetSubject($doc_title); $pdf->SetKeywords($doc_keywords); $firstLine = $article->title();
|
| Re: News 1.63 - PDF Creation: UTF-8 is working: header and body text problems |
| by SMEDrieben on 2010/2/1 22:15:54 Finally, my characters are given correctly. One problem remains: the hometext and bodytext is displayed over the header, post and date info. This only happens on the first page. There must a problem with the page length of the first page, using the pdf.php. I cannot attach a file, otherwise I would show a generated pdf. Any idea ? SMEDrieben |
| Re: News 1.63 - PDF Creation: UTF-8 not working |
| by SMEDrieben on 2010/2/1 15:07:24 1) I have similar problems. I removed the news_html() prefixes. The first and second line show normal characters. However, the hometext and bodytext are not correctly displayed. I removed: le="color: #000000"><?php $content = news_unhtml($content); I adapted the other suggestions in this thread: the chacracters in teh home and bodytext are displayed correctly as well. However,... the hometext and bodytext are printed over line 1 and line 2 and over the data of the poster, post date etc. Is is a mess. Any idea how to correct this problem ? 2) Herve has left the fpdf map: you can make your own choice. If you refer to makepdf.php the news_article block, pdf's are generated by the fpdf-system. Thanks ! Drieben |