[NTG-context] Rendering differences between PDF viewers

Peter Rolf indiego at gmx.net
Tue Apr 17 12:48:20 CEST 2012


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


More information about the ntg-context mailing list