有谁知道有一个免费工具或如何将 rtf 转换为 jpg

发布于 2024-07-15 11:04:35 字数 1543 浏览 5 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦醒灬来后我 2024-07-22 11:04:35

也许您可以将 RTF 转换为 PDF,然后再转换为 JPG。 当然,这比直接从 RTF 转换为 JPG 需要更多工作,但对于今天来说,这可能是一个可以接受的短期解决方法。

Perhaps you could convert the RTF to PDF then to JPG. Sure thats more work than going straight from RTF to JPG but it might be an acceptable short term workaround for today.

勿忘初心 2024-07-22 11:04:35

您可能需要考虑将 RTF 转换为 HTML,而不是将其转换为图像。

看起来很有希望。

You might want to consider converting your RTFs to HTML, instead of turning them into images.

This looks promising.

你げ笑在眉眼 2024-07-22 11:04:35

这可能需要多个工具......

将 rtf 转换为 pdf

检查这个

至于PDF转JPG

你可以尝试转换(linux)...ImageMagick

This might require more that one tool.....

for the rtf to pdf

check this

As for the PDF to JPG

you can try convert(linux)...ImageMagick

自由范儿 2024-07-22 11:04:35

由于它是 Windows 盒子,因此在 2009 (XP) 中转换 RTF 的最简单本机方式与现在的 Windows 10 中的转换方式非常相似。RTF

是本机写字板输入格式,JPG 是本机 MS Paint 输出。

因此,无需编程的最简单方法是打开 RTF 和 screengrab 粘贴到 Paint 中并像这样另存为 JPEG。

输入图片此处的描述

无论是当时还是现在,对自动化进行编程的最简单方法都是使用本机 WSH。

个人过去曾编写过 100-200 行 CMD 将 DocX 和 RTF、TXT 等转换为 PDF 和/或图像。 但由于这是一个古老的问题,并且有更简单的方法可以在 Windows 10/11 中编写一行运行 EXE,我认为这种旧方法不具有现代价值。

对于通过 PDF 接受的路线。 第一个古老而现代的步骤可能是使用写字板(写入虚拟 PS 或 PDF 打印机和驱动程序)转换为 PDF。 PDF 到 JPG 可以直接使用 GhostScript,因为 ImageMagick 就是这么做的。

现代 Windows 10/11 路线无需为写字板安装 GS 打印驱动程序的旧 XP 方法,而是使用内置的 MS 打印到 PDF。 我会使用 300dpi 或 200dpi PNG 以获得更好的质量/轮廓保真度。

Write /pt File.RTF "Microsoft Print to PDF"  "Microsoft Print to PDF" INput.PDF
GSWIN##c -sDEVICE=png16m -r200 blah blah -o Out.jpg -f INput.PDF

现代答案

只是使用 GhostScript(便携式命令行)将 RTF 写入 PDF(或通过安装了 GhostScript 打印机的 Postscript)。

输入图片此处描述

As it is a Windows box the simplest native way to convert RTF in 2009 (XP) is much the same as today in Windows 10.

RTF is native WordPad input format and JPG is a native MS Paint output.

thus the simplest way without programming was to Open RTF and screengrab to paste in Paint and save as JPEG like this.

enter image description here

Both then and now the easiest way to program that automation is to use native WSH.

Personally have in the past written 100-200 lines of CMD to convert DocX and RTF, TXT etc to PDF and or Images. But as this is such an old question and there are far simpler ways to write one line running an EXE in windows 10/11 I dont think such old methods are of modern value.

For the accepted route via PDF. The first old and modern step could be using WordPad (write to virtual PS or PDF printer & driver) to PDF. The PDF to JPG could be GhostScript direct since that is all that ImageMagick does.

Modern Windows 10/11 route without older XP method of installing GS print driver for WordPad, is use inbuilt MS Print to PDF. and I would use 300dpi or 200 dpi PNG for better quality / outline fidelity.

Write /pt File.RTF "Microsoft Print to PDF"  "Microsoft Print to PDF" INput.PDF
GSWIN##c -sDEVICE=png16m -r200 blah blah -o Out.jpg -f INput.PDF

Modern Answer

Is just use GhostScript (Portable Command Line) with Write RTF to PDF (or via Postscript with GhostScript printer installed).

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文