Am 17.04.2012 12:12, schrieb Hans Hagen:
> On 17-4-2012 11:53, Peter Rolf wrote:
>> Am 17.04.2012 08:57, schrieb Kip Warner:
>>> On Tue, 2012-04-17 at 08:54 +0200, Hans Hagen wrote:
>>>> (AR might have flaws but so do all other viewers I've seen.)
>>>
>>> I don't doubt it, but something that salient is pretty bad though. The
>>> whole document looks just awful.
>>>
>>>> Is there a small example file?
>>>
>>> Sure.<https://www.avaneya.com/temp/Viking_Lander_Remastered.pdf>
>>>
>>>
>> I might be wrong, but is this color shift not just a 'page group'
>> problem, caused by the transparent PNG?
> 
> I think so.
> 
> Hans
> 

Hi Kip,

give it a try and add this to you document...


\startluacode

backends                = backends                or { }
backends.codeinjections = backends.codeinjections or { }

function backends.codeinjections.rgbtransparencygroup()
    local d = lpdf.dictionary {
        S  = lpdf.constant("Transparency"),
        CS = lpdf.constant("DeviceRGB"),
        I  = true }
    lpdf.registerpagefinalizer(function()
lpdf.addtopageattributes("Group",d) end)
end

backends.codeinjections.rgbtransparencygroup()

\stopluacode


This does not work, if you also use CMYK based graphics/pictures in your
document (as this is done document wide).


Peter
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to