• Resolved evil

    (@p47ri0t)


    hi

    when i active plugin button not show on single and page template

    i added it manually but when i click it

    i got this error
    mPDF error: You cannot use core fonts in a document which contains RTL text.

    is this correct for button?

    <a class="dkpdf-button" href="<?php echo esc_url( add_query_arg( 'pdf', $post->ID ) );?>" target="_blank"><span class="dkpdf-button-icon"><i class="fa fa-file-pdf-o"></i></span> <?php echo $pdfbutton_text;?></a>

    https://www.ads-software.com/plugins/dk-pdf/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi p47ri0t,

    1. can you tell me exactly what are you trying to do?
    2. can you give me a link to see it?

    thanks.

    Plugin Author dinamiko

    (@dinamiko)

    Hi p47ri0t,

    about this:

    when i active plugin button not show on single and page template

    are you selecting post types in plugin settings?
    https://wp.dinamiko.com/demos/dkpdf/doc/pdf-button-settings/

    another question, which language are you using in your website?

    thanks.

    Thread Starter evil

    (@p47ri0t)

    hi thanks for replay

    i use two single.php tamplate
    this is my single tamplate source

    <?php
      $post = $wp_query->post;
      if (in_category('cookery')) {
          include(TEMPLATEPATH.'/single_cookery.php');
    
      else{
          include(TEMPLATEPATH.'/single_default.php');
      }
    ?>

    but showing button not problem i will add it manually

    i use Persian (fa)

    Plugin Author dinamiko

    (@dinamiko)

    Hi p47ri0t,

    I think that the error is related to Persian characters/fonts in the pdf library (mPDF),
    I can create an install in Persian in my local development and test the plugin.

    can you send me the XML with your site content?
    these are the steps to create de XML:
    1. in wp-admin, click Tools / Export
    2. In ‘Choose what to export’ select ‘All Content’ and click ‘Download Export File’

    send me the xml file to [email protected]

    then I will import your Persian site content and I’m going to try to reproduce the error in my local development.

    thanks.

    Plugin Author dinamiko

    (@dinamiko)

    Hi p47ri0t,

    I’m going to mark this ticket as resolved, feel free to reopen it if you have any doubt.

    Best.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘mPDF error: You cannot use core fonts in a document which contains RTL text.’ is closed to new replies.