我已经尝试了文档中的每个命令,我怎么能只得到文本部分作为输出,而不是所有的图像?
https://github.com/coolwanglu/pdf2htmlEX/wiki/Command-Line-Options。
我已经尝试了文档中的每个命令,我怎么能只得到文本部分作为输出,而不是所有的图像?
https://github.com/coolwanglu/pdf2htmlEX/wiki/Command-Line-Options。
我不确定您要达到什么目标,因为问题主题和细节似乎相互矛盾,但是可以选择将图形和文本拆分为单独的文件:
--embed <string>
--embed-css <0|1> (Default: 1)
--embed-font <0|1> (Default: 1)
--embed-image <0|1> (Default: 1)
--embed-javascript <0|1> (Default: 1)
--embed-outline <0|1> (Default: 1)
Specify which elements should be embedded into the output HTML
file.
If switched off, separated files will be generated along with
the HTML file for the corresponding elements.
--embed accepts a string as argument. Each letter of the string
must be one of `cCfFiIjJoO`, which corresponds to one of the
--embed-*** switches. Lower case letters for 0 and upper case
letters for 1. For example, `--embed cFIJo` means to embed
everything but CSS files and outlines.
--split-pages <0|1> (Default: 0)
If turned on, the content of each page is stored in a separated
file.
This switch is useful if you want pages to be loaded separately
& dynamically -- a supporting server might be necessary.
Also see --page-filename.
因此,如果您使用--split-pages 1
and--embed-image 0
选项,那么每个 PDF 页面都有一个 HTML 页面,其中不包括嵌入的图像。
如果这不是您想要的,请在您的问题中包含其他信息。