如何转换a'pdf''到“ odg”使用OpenOffice CMD归档
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.
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.
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.
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.
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.
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