如何转换a'pdf''到“ odg”使用OpenOffice CMD归档

发布于 2025-01-19 23:21:25 字数 8 浏览 2 评论 0原文

continue

I can easily convert a pdf to an odt file using:

soffice --infilter="writer_pdf_import" --convert-to odt a.pdf

But when I try to do:

soffice --infilter="writer_pdf_import" --convert-to odg a.pdf

I get an error:

no export filter

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

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

发布评论

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

评论(1

冬天的雪花 2025-01-26 23:21:27

tl; dr的答案在底部,但请阅读以下内容,说明为什么可能存在问题

ODG是一个多部分的图形文件,通常是一个空白模板,通常类似于ORA,但是有很多方法可以构造和转换为一组PDF页面打印输出,因为它们包含缩略图,以及一个或多个高分辨率图像或可扩展的向量图形。常见变体可以与Inkscape,Krita可能使用Scribus / Oodraw和其他更多图形应用程序一起使用。

PDF是页面文档输出格式,因此不是使用标量图形转换为专业图像的合适候选者。 *除了请参见最后一个评论

ODG或ORA在图像转换中可以做得很好,但是相反通常不是正确的。

Open Office Graphic就像DOCX一样,围绕核心对象的ZIP包装器,这里是JPEG,但可以是png svg等。

“在此处输入映像”

但是,zip的内容并不是简单地运行到数千个编码行。因此,您需要使用更合适的方法来构建Cruder PDF的ODG而不是简单的命令行转换。

draw导出的真正强度是pdf是嵌入odfg内容的混合使用,因此可以打开这样的pdf,您可以在draw中进行编辑。

,在任何PDF查看器中看起来都一样。但是,它太专心了,无法在没有应用程序设置的情况下简单地翻译。实际上,PDF是嵌合体/polyglot ODG。

但是,如果您想尝试使用简单文件,则命令行是为a.pdf到a.odg

soffice -soffice-infilter =“ draw_pdf_import” ---convert to odg a.pdf < /code>

“在此处输入图像描述”

TL;DR the answer is at the bottom but do read the following as to why there can be issues

ODG is a multi-part graphics file usually a blank template, often similar to an ORA, however there are many ways they can be structured and converted TO a set of PDF page printouts, as they contain thumbnails, plus one or more high resolution images or scalable vector graphics. Common variants can be used with Inkscape, Krita possibly Scribus / OODraw and other more GRAPHIC apps.

enter image description here

PDF is a page document output format thus not a suitable candidate for converting to professional images with scalar graphics. *Except see the last comment

ODG or ORA may be done well in image conversion but the reverse is not usually true.

Open Office Graphic is like a DocX, a zip wrapper around a core object, here it is a Jpeg but could be PNG SVG etc.

enter image description here

However the contents of the zip are not simple potentially running to thousands of lines of coding. Thus you need to use a more appropriate method to hand build an ODG not simple command line conversion from cruder PDF.

enter image description here

The real strength of a EXPORT from draw as PDF is the hybrid use of embedding ODFG content thus opening such a PDF you can edit it in Draw.

enter image description here

And it will look just as good in any PDF viewer. However it is too specialist to be simply translated without the app settings. In reality the PDF is the chimera/polyglot ODG.

enter image description here

But if you wish to try with simple files the command line is for a.pdf to a.odg

soffice --infilter="draw_pdf_import" --convert-to odg a.pdf

enter image description here

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