Forums

[resolved] [Plugin: wp-mpdf] Cyrillic support (5 posts)

  1. swwwolf
    Member
    Posted 2 years ago #

    Hi there. I think that your plugin didn't work with non-english chars (Russian for example). I tried many options, but no effect at all. Is there any possible solution for this?

    I'm using Atahualpa theme and just add <?php if(function_exists('mpdf_pdfbutton')) mpdf_pdfbutton(); ?> to "EDIT POST/PAGE INFO ITEM" -> "KICKER: Single Post Pages" editbox in preferences of the theme. The button is visibled/enabled on a post page, but still working wrong.

    http://wordpress.org/extend/plugins/wp-mpdf/

  2. fkrauthan
    Member
    Posted 2 years ago #

    Hmm what do you mean with still working wrong? How dose special chars look like?

  3. swwwolf
    Member
    Posted 2 years ago #

    Well, you can check it by yourself: http://sww-it.ru/2010-02-21/362

    Chars are looking like "?" chars in a whole text of the PDF, but only in Bookmarks (in Adobe Reader) they are looking right (title of the blog and the title of the article). Some problem with fonts, i think.

  4. swwwolf
    Member
    Posted 2 years ago #

    Hi again. I'm asking my good friend to check your plugin and he is found an error.

    Line 145 (wp-mpdf.php):

    This one

    $mpdf=new mPDFI('win-1252', 'A4', '', '', $pdf_margin_left, $pdf_margin_right, $pdf_margin_top, $pdf_margin_bottom, $pdf_margin_header, $pdf_margin_footer, $pdf_orientation);

    must be replaced by this one

    $mpdf=new mPDFI('UTF-8', 'A4', '', '', $pdf_margin_left, $pdf_margin_right, $pdf_margin_top, $pdf_margin_bottom, $pdf_margin_header, $pdf_margin_footer, $pdf_orientation);

    Could you update your plugin?

  5. fkrauthan
    Member
    Posted 2 years ago #

    Ok a new version is on the way. i think in 2 hours i'am finish. Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags