From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75712 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Rendering differences between PDF viewers Date: Wed, 18 Apr 2012 09:38:13 +0200 Message-ID: <4F8E6F65.50002@wxs.nl> References: <1334469628.3748.29.camel@kip-laptop> <4F8AF085.6070208@wxs.nl> <1334619889.28437.1.camel@kip-laptop> <4F8D138B.3030605@wxs.nl> <1334645858.2011.5.camel@kip-laptop> <4F8D3D9B.1040406@gmx.net> <4F8D4216.4060809@wxs.nl> <4F8D4A74.8030404@gmx.net> <1334710198.2011.40.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334734727 7974 80.91.229.3 (18 Apr 2012 07:38:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2012 07:38:47 +0000 (UTC) Cc: Kip Warner To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 18 09:38:42 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKPTO-0000Va-50 for gctc-ntg-context-518@m.gmane.org; Wed, 18 Apr 2012 09:38:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 158E9101E7; Wed, 18 Apr 2012 09:38:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id H-aC8hBGy2cU; Wed, 18 Apr 2012 09:38:40 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1C6B4101E2; Wed, 18 Apr 2012 09:38:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB879101E2 for ; Wed, 18 Apr 2012 09:38:33 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24Tu9ePQGWz9 for ; Wed, 18 Apr 2012 09:38:29 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id F1082101E0 for ; Wed, 18 Apr 2012 09:38:28 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q3I7cRMH020754 for ; Wed, 18 Apr 2012 09:38:28 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 492-1713362 for multiple; Wed, 18 Apr 2012 09:38:20 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 In-Reply-To: <1334710198.2011.40.camel@kip-laptop> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aGXjCr1W - 35229fd71a2d - 20120418 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75712 Archived-At: On 18-4-2012 02:49, Kip Warner wrote: > On Tue, 2012-04-17 at 12:48 +0200, Peter Rolf wrote: >> 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). > > You know Peter, I must admit. ConTeXt has made me rather cynical at > times. I don't know how many times I've tried a snippet of this or that, > only to have it do exactly what I hadn't intended. Having said that, > every now and then I am blown away when something I never expected to > actually get working, gets working. Thank you so much, that worked > beautifully. Both Evince (poppler based) and AR look identical now. > > I stuck it in my environment file. I wonder if there is a safer way of > doing this than via "inline asm", so to speak. Also, maybe for my > benefit, and anybody else having the same problem, you might be able to > explain what was happening? At some point it can become an option (or semi automatic) but the problem is that we don't know in advance if we operate in rgb or cmyk. I can imagine that when we have enabled cmyk and disabled rgb or reverse, it can be added automatically but even then users must make sure that all images are in the right colorspace as well. And what with spotcolors? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________