【问题标题】:Get mutool to output "structured text (as xml)"获取 mutool 以输出“结构化文本(作为 xml)”
【发布时间】:2018-08-22 14:52:31
【问题描述】:

按照 mutool 的draw 命令说明
https://mupdf.com/docs/manual-mutool-draw.html

当输出“向量格式”之一是“调试跟踪(作为 xml)”并且“输出格式是从输出文件名推断”时,如何输出“结构化文本(作为 xml)”?

如果我跑了

mutool draw -o "testfile.xml" "testfile.pdf"

似乎我得到了“调试跟踪(作为 xml)”文件格式。

我应该使用什么文件扩展名来确保输出“结构化文本(as xml)”格式?

【问题讨论】:

    标签: pdf mupdf structured-text


    【解决方案1】:

    如果您运行不带参数的“mutool draw”,使用消息会告诉您支持哪些格式,以及它们的文件扩展名是什么。

    在您的情况下,您需要“stext”输出。

    mutool draw -o out.stext input.pdf
    mutool draw -F stext -o out.xml input.pdf
    

    或者,如果您更喜欢“mutool convert”命令,该命令使用 -O 参数支持高级输出选项。

    mutool convert -o out.stext input.pdf
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-04
      相关资源
      最近更新 更多