lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I am attaching a very simple example which illustrates the idea (two
files: eps.lua and epstest.lua). The source is the documentation. Just
run

lua epstest.lua
ps2pdf14 out.eps

and then look at the out.pdf (should have transparent circles inside).
The transparency support depends on internal operators of ghostscript
(.setshapealpha, .setopacityalpha)used for pdf support. The resulting
eps is not directly viewable (not valid postscript) but can be
distilled to a pdf without any problems. The exact order of operator
usage is quite important - took me a while to reverse engineer the way
.setopacityalpha and .setshapealpha should be used.

Varol Kaptan

On 10/20/06, Adrian Perez <moebius.lists@gmail.com> wrote:
Am I reading right? PDFs with transparency using GS? Never managed to
get that working... Are you using some patch or special version of GS?
I am very interested in making transparency work, especially if then I
can manage to get InkScape output PostScript or PDF with transparency
(it uses GS for exporting).

Thanks in advance,

Attachment: eps.lua
Description: Binary data

Attachment: epstest.lua
Description: Binary data