<small id='4yO8k'></small><noframes id='4yO8k'>

      <i id='4yO8k'><tr id='4yO8k'><dt id='4yO8k'><q id='4yO8k'><span id='4yO8k'><b id='4yO8k'><form id='4yO8k'><ins id='4yO8k'></ins><ul id='4yO8k'></ul><sub id='4yO8k'></sub></form><legend id='4yO8k'></legend><bdo id='4yO8k'><pre id='4yO8k'><center id='4yO8k'></center></pre></bdo></b><th id='4yO8k'></th></span></q></dt></tr></i><div id='4yO8k'><tfoot id='4yO8k'></tfoot><dl id='4yO8k'><fieldset id='4yO8k'></fieldset></dl></div>

      1. <legend id='4yO8k'><style id='4yO8k'><dir id='4yO8k'><q id='4yO8k'></q></dir></style></legend>

        • <bdo id='4yO8k'></bdo><ul id='4yO8k'></ul>
        <tfoot id='4yO8k'></tfoot>
      2. 有没有办法让 FPDF/FPDI 或 Zend_Pdf 支持解析大于 1.4 的 PDF?

        Is there a way to make FPDF/FPDI or Zend_Pdf support the parsing of PDFs greater than 1.4?(有没有办法让 FPDF/FPDI 或 Zend_Pdf 支持解析大于 1.4 的 PDF?)
          <bdo id='tDb8t'></bdo><ul id='tDb8t'></ul>

            <small id='tDb8t'></small><noframes id='tDb8t'>

            • <i id='tDb8t'><tr id='tDb8t'><dt id='tDb8t'><q id='tDb8t'><span id='tDb8t'><b id='tDb8t'><form id='tDb8t'><ins id='tDb8t'></ins><ul id='tDb8t'></ul><sub id='tDb8t'></sub></form><legend id='tDb8t'></legend><bdo id='tDb8t'><pre id='tDb8t'><center id='tDb8t'></center></pre></bdo></b><th id='tDb8t'></th></span></q></dt></tr></i><div id='tDb8t'><tfoot id='tDb8t'></tfoot><dl id='tDb8t'><fieldset id='tDb8t'></fieldset></dl></div>

                <legend id='tDb8t'><style id='tDb8t'><dir id='tDb8t'><q id='tDb8t'></q></dir></style></legend>
                • <tfoot id='tDb8t'></tfoot>
                    <tbody id='tDb8t'></tbody>
                • 本文介绍了有没有办法让 FPDF/FPDI 或 Zend_Pdf 支持解析大于 1.4 的 PDF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试将现有的 PDF(以其他方式创建)添加到使用 FPDI 使用 FPDF 创建的 PDF.它似乎适用于大多数 PDF,但我收到以下错误:

                  I am trying to add an existing PDF (created otherwise) to a PDF created with FPDF using FPDI. It seems to work find for most PDFs, but I get the following error:

                  FPDF error: Unable to find xref table.
                  

                  经过一些测试,我发现如果我使用 1.4 或更低版本(Acrobat v5 或更低版本)的 PDF 版本,它似乎可以工作.查看文件似乎是因为 PDF 格式不同.

                  After some testing, I figured out that if I use a PDF version of 1.4 or lower (Acrobat v5 or lower) it seems to work. Looking at the file it seems to be because of a different PDF format.

                  是否有解决方法或解决方案?我可能有 10 000 多个用户上传的 PDF,其中一些是新工作的,其中一些不是.FPDI 只是死掉而不是导致某种错误甚至返回 false 也很烦人

                  Is there a work around or solution to this? I have probably 10 000+ PDFs uploaded by users, some of the new working, some of them not. It's also annoying that FPDI just dies instead of causing some kind of error or even returning false

                  我现在能想到的唯一解决方案是解析 PDF 文件的第一行以确定版本,然后只添加那些超过可用版本的版本.

                  The only solution I can think of right now is to parse the first line of the PDF file to determine the version and only add the ones that over versions that will work.

                  我也在 Zend_Pdf 中尝试过,使用 Zend Framework 附带的演示文件,结果如下:

                  I also tried this in Zend_Pdf and it had the following result, using the demo file that comes with the Zend Framework:

                  Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'Cross-reference streams are not supported yet.' in /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php:331
                  Stack trace:
                  #0 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php(455): Zend_Pdf_Parser->_loadXRefTable('116')
                  #1 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf.php(297): Zend_Pdf_Parser->__construct('/Volumes/Docume...', Object(Zend_Pdf_ElementFactory_Proxy), true)
                  #2 /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf.php(250): Zend_Pdf->__construct('/Volumes/Docume...', NULL, true)
                  #3 /Volumes/Documents/temp/ZendFramework-1.7.7/demos/Zend/Pdf/demo.php(37): Zend_Pdf::load('/Volumes/Docume...')
                  #4 {main}
                    thrown in /Volumes/Documents/temp/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php on line 331
                  

                  是否无法解析大于 1.4 的 PDF?

                  Is it impossible to parse PDFs greater than 1.4?

                  推荐答案

                  我发现使用商业版的 FPDI PDF-Parser 解决了我的问题.我已经使用它一年了,还没有任何无法解析的 PDF(除非 PDF 损坏或发生了其他奇怪的事情).

                  I found that using commerical version of FPDI PDF-Parser solved my problem. I've been using it for a year now and haven't had any PDFs it couln't parse (unless the PDF was corrupt or had something else weird going on).

                  这篇关于有没有办法让 FPDF/FPDI 或 Zend_Pdf 支持解析大于 1.4 的 PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <tfoot id='20UYP'></tfoot>
                      <tbody id='20UYP'></tbody>

                      <i id='20UYP'><tr id='20UYP'><dt id='20UYP'><q id='20UYP'><span id='20UYP'><b id='20UYP'><form id='20UYP'><ins id='20UYP'></ins><ul id='20UYP'></ul><sub id='20UYP'></sub></form><legend id='20UYP'></legend><bdo id='20UYP'><pre id='20UYP'><center id='20UYP'></center></pre></bdo></b><th id='20UYP'></th></span></q></dt></tr></i><div id='20UYP'><tfoot id='20UYP'></tfoot><dl id='20UYP'><fieldset id='20UYP'></fieldset></dl></div>

                      1. <small id='20UYP'></small><noframes id='20UYP'>

                        <legend id='20UYP'><style id='20UYP'><dir id='20UYP'><q id='20UYP'></q></dir></style></legend>
                          • <bdo id='20UYP'></bdo><ul id='20UYP'></ul>