透明地从Draw文档导出pdf [英] Export pdf from Draw document with transparency

查看:138
本文介绍了透明地从Draw文档导出pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Libreoffice Draw绘制框图.我使用以下命令在命令行上自动导出它们:

I use Libreoffice Draw for drawing block diagrams. I export them automatically on the command line using the following command:

soffice --headless --convert-to pdf --outdir figures figures_raw/foo.odg

但是,不能保留透明度-背景始终为白色.如何将 odg 图纸转换为pdf,但保留透明度?

However, this does not preserve transparency - the background is always white. How to convert odg drawings to pdf but preserver the transparency?

推荐答案

但是,这不能保留透明度-背景始终为白色.

However, this does not preserve transparency - the background is always white.

按规范是这样.在PDF规范中,当涉及到透明度主题时,

This is so by specification. In the PDF specification, when covering the topic of transparency,

当前页面的概念被概括为指一个透明组,该透明组由页面上放置的整个对象堆栈组成,并与纯白色且完全不透明的背景组成.

the notion of current page is generalized to refer to a transparency group consisting of the entire stack of objects placed on the page, composited with a backdrop that is pure white and fully opaque.

(第11.2节透明度概述",因此,PDF查看器程序或查看控件通常将显示带有白色不透明背景的PDF.

Thus, PDF viewer programs or viewing controls usually will display a PDF with a white, opaque background.

这篇关于透明地从Draw文档导出pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆