Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在cellmap中找不到帧的解决方案_Php_Laravel_Dompdf - Fatal编程技术网

Php 在cellmap中找不到帧的解决方案

Php 在cellmap中找不到帧的解决方案,php,laravel,dompdf,Php,Laravel,Dompdf,以下是: 在cellmap中找不到框架 这是互联网上一个众所周知的问题。但我找不到解决办法 对于这个问题。我正在尝试将html模板转换为pdf。当我移除时,它正在工作。否则它将抛出一个异常 <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example 2</title> <link rel="st

以下是:

在cellmap中找不到框架

这是互联网上一个众所周知的问题。但我找不到解决办法 对于这个问题。我正在尝试将html模板转换为pdf。当我移除
时,它正在工作。否则它将抛出一个异常

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Example 2</title>
    <link rel="stylesheet" href="/administration/style.css" media="all" />
  </head>
  <body>
    <header class="clearfix">
      <div id="logo">
        <img src="/administration/logo.png">
      </div>
      <div id="company">
        <h2 class="name">Company Name</h2>
        <div>455 Foggy Heights, AZ 85004, US</div>
        <div>(602) 519-0450</div>
        <div><a href="mailto:company@example.com">company@example.com</a></div>
      </div>
      </div>
    </header>
    <main>
      <div id="details" class="clearfix">
        <div id="client">
          <div class="to">INVOICE TO:</div>
          <h2 class="name">John Doe</h2>
          <div class="address">796 Silver Harbour, TX 79273, US</div>
          <div class="email"><a href="mailto:john@example.com">john@example.com</a></div>
        </div>
        <div id="invoice">
          <h1>INVOICE 3-2-1</h1>
          <div class="date">Date of Invoice: 01/06/2014</div>
          <div class="date">Due Date: 30/06/2014</div>
        </div>
      </div>
      <table border="0" cellspacing="0" cellpadding="0">
        <thead>
          <tr>
            <th class="no">#</th>
            <th class="desc">DESCRIPTION</th>
            <th class="unit">UNIT PRICE</th>
            <th class="qty">QUANTITY</th>
            <th class="total">TOTAL</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td class="no">01</td>
            <td class="desc"><h3>Website Design</h3>Creating a recognizable design solution based on the company's existing visual identity</td>
            <td class="unit">$40.00</td>
            <td class="qty">30</td>
            <td class="total">$1,200.00</td>
          </tr>
          <tr>
            <td class="no">02</td>
            <td class="desc"><h3>Website Development</h3>Developing a Content Management System-based Website</td>
            <td class="unit">$40.00</td>
            <td class="qty">80</td>
            <td class="total">$3,200.00</td>
          </tr>
          <tr>
            <td class="no">03</td>
            <td class="desc"><h3>Search Engines Optimization</h3>Optimize the site for search engines (SEO)</td>
            <td class="unit">$40.00</td>
            <td class="qty">20</td>
            <td class="total">$800.00</td>
          </tr>
        </tbody>
        <tfoot>
          <tr>
            <td colspan="1"></td>
            <td colspan="1">SUBTOTAL</td>
            <td>$5,200.00</td>
          </tr>
          <tr>
            <td colspan="1"></td>
            <td colspan="1">TAX 25%</td>
            <td>$1,300.00</td>
          </tr>
          <tr>
            <td colspan="1"></td>
            <td colspan="1">GRAND TOTAL</td>
            <td>$6,500.00</td>
          </tr>
        </tfoot>
      </table>
      <div id="thanks">Thank you!</div>
      <div id="notices">
        <div>NOTICE:</div>
        <div class="notice">A finance charge of 1.5% will be made on unpaid balances after 30 days.</div>
      </div>
    </main>
    <footer>
      Invoice was created on a computer and is valid without the signature and seal.
    </footer>
  </body>
</html>

例2
公司名称
美国亚利桑那州雾岭455号,邮编85004
(602) 519-0450
发票收件人:
无名氏
美国德克萨斯州银港796号,邮编79273
发票3-2-1
发票日期:2014年6月1日
截止日期:2014年6月30日
#
描述
单价
量
全部的
01
网站设计基于公司现有的视觉标识创建可识别的设计解决方案
$40.00
30
$1,200.00
02
网站开发基于网站的内容管理系统的开发
$40.00
80
$3,200.00
03
搜索引擎优化为搜索引擎优化网站(SEO)
$40.00
20
$800.00
小计
$5,200.00
税25%
$1,300.00
总计
$6,500.00
非常感谢。
注意:
30天后,未付余额将收取1.5%的财务费用。
发票是在计算机上创建的,无需签名和盖章即可生效。
解决方案:

使用以下命令:

$orientation = 'landscape';
$customPaper = array(0,0,950,950);
$this->setPaper($customPaper, $orientation);

我有一个类似的问题,但能够发现我有一个额外的
,我知道这很晚了,但我也有同样的问题,您是否设法解决了它?之所以来到这里,是因为我缺少一个
,例如