• <tfoot id='LhIEI'></tfoot>

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

      1. <small id='LhIEI'></small><noframes id='LhIEI'>

        <legend id='LhIEI'><style id='LhIEI'><dir id='LhIEI'><q id='LhIEI'></q></dir></style></legend>

        在 PHP 中高质量的 PDF 到 Word 转换?

        High-quality PDF to Word conversion in PHP?(在 PHP 中高质量的 PDF 到 Word 转换?)
          <bdo id='HVqg9'></bdo><ul id='HVqg9'></ul>
          <i id='HVqg9'><tr id='HVqg9'><dt id='HVqg9'><q id='HVqg9'><span id='HVqg9'><b id='HVqg9'><form id='HVqg9'><ins id='HVqg9'></ins><ul id='HVqg9'></ul><sub id='HVqg9'></sub></form><legend id='HVqg9'></legend><bdo id='HVqg9'><pre id='HVqg9'><center id='HVqg9'></center></pre></bdo></b><th id='HVqg9'></th></span></q></dt></tr></i><div id='HVqg9'><tfoot id='HVqg9'></tfoot><dl id='HVqg9'><fieldset id='HVqg9'></fieldset></dl></div>
          <legend id='HVqg9'><style id='HVqg9'><dir id='HVqg9'><q id='HVqg9'></q></dir></style></legend>
            <tbody id='HVqg9'></tbody>

            <tfoot id='HVqg9'></tfoot>

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

                • 本文介绍了在 PHP 中高质量的 PDF 到 Word 转换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 PHP 中将 PDF 文档转换为 Microsoft Word 格式的最佳方法是什么?这可以作为 PHP 脚本或调用 (Linux) 可执行文件(使用 proc_open()).它只需要相对较快并生成高质量的 Word 文档(97/2000/2003 格式).

                  What's the best way of converting PDF docs to Microsoft Word format in PHP? This can be either as a PHP script or calling a (Linux) executable (with proc_open()). It just needs to be relatively fast and produce quality Word documents (in 97/2000/2003 format).

                  商业软件没问题.

                  推荐答案

                  要阅读 PDF 文件,您需要安装 XPDF 包,其中包括pdftotext".安装 XPDF/pdftotext 后,运行以下 PHP 语句以获取 PDF 文本:

                  To read PDF files, you will need to install the XPDF package, which includes "pdftotext." Once you have XPDF/pdftotext installed, you run the following PHP statement to get the PDF text:

                  content = shell_exec('/usr/local/bin/pdftotext '.$filename.' -');
                  

                  获取内容后,下载PHPDOCX社区版,这样试试.

                  After getting the content, Download PHPDOCX Community version, try like this.

                  <?php
                  require_once '../../classes/CreateDocx.inc';
                  
                  $docx = new CreateDocx();
                  $textInfo = $content;
                  
                  $paramsTextInfo = array(
                      'val' => 1,
                      'i' => 'single',
                      'sz' => 8
                  );
                  
                  $docx->addText($textInfo, $paramsTextInfo);
                  
                  $docx->createDocx('report.docx');
                  ?>
                  

                  这篇关于在 PHP 中高质量的 PDF 到 Word 转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='gUz9E'></tfoot>
                    • <bdo id='gUz9E'></bdo><ul id='gUz9E'></ul>
                      <i id='gUz9E'><tr id='gUz9E'><dt id='gUz9E'><q id='gUz9E'><span id='gUz9E'><b id='gUz9E'><form id='gUz9E'><ins id='gUz9E'></ins><ul id='gUz9E'></ul><sub id='gUz9E'></sub></form><legend id='gUz9E'></legend><bdo id='gUz9E'><pre id='gUz9E'><center id='gUz9E'></center></pre></bdo></b><th id='gUz9E'></th></span></q></dt></tr></i><div id='gUz9E'><tfoot id='gUz9E'></tfoot><dl id='gUz9E'><fieldset id='gUz9E'></fieldset></dl></div>

                          <legend id='gUz9E'><style id='gUz9E'><dir id='gUz9E'><q id='gUz9E'></q></dir></style></legend>
                            <tbody id='gUz9E'></tbody>

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