汉字不会出现在codeigniter dompdf中

时间:2018-11-07 09:29:05

标签: php codeigniter dompdf

当xampp可以出现时,我在ignigner上用pdf制作了pdf,但是当上传到服务器时却没有出现,并且复选框也没有出现

为什么? 你能帮我吗?

CSS:

@font-face {
        font-family: 'Firefly';
        font-style: normal;
        font-weight: normal;
        src: url('<?php echo base_url() ?>/vendor/dompdf/dompdf/lib/fonts/fireflysung.ttf') format('truetype');
      }

      body{
        font-family: 'Firefly';
      }

我的html复选框:

<?php $br=0; foreach ($purchase as $a): $br++;?>
           <?php $wik=$br%2; if ( $wik == 1): ?>
              <tr>
            <?php endif; ?>
                    <td>
                      <label><input type="checkbox" <?php if ($data->id_purchase==$a->id_purchase): ?>
                        checked
                        <?php else: ?>
                          disabled
                      <?php endif; ?>> <?php echo $a->nama ?> </label>
                    </td>
          <?php $wik2=$br%2; if ($wik2 == 0): ?>
             </tr>
          <?php endif; ?>
      <?php endforeach; ?>
XAMPP中的

pdf pdf in xampp

服务器中的

pdf pdf in server

0 个答案:

没有答案