From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102945 Path: news.gmane.org!.POSTED!not-for-mail From: User 19087 Newsgroups: gmane.comp.tex.context Subject: Fwd: issue: "printable" viewer layers lack compatibility Date: Mon, 7 Jan 2019 09:36:44 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5693265735009892647==" X-Trace: blaine.gmane.org 1546871709 32669 195.159.176.226 (7 Jan 2019 14:35:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2019 14:35:09 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 15:35:05 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggVzb-0008KR-In for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2019 15:35:03 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A74BCB4D09; Mon, 7 Jan 2019 15:37:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2KxdC2xiUogu; Mon, 7 Jan 2019 15:37:00 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFABCB4335; Mon, 7 Jan 2019 15:37:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CD072B4335 for ; Mon, 7 Jan 2019 15:36:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0a65k4jlrXq5 for ; Mon, 7 Jan 2019 15:36:59 +0100 (CET) Original-Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id C52CFAC036 for ; Mon, 7 Jan 2019 15:36:58 +0100 (CET) Original-Received: by mail-pg1-f179.google.com with SMTP id g189so224967pgc.5 for ; Mon, 07 Jan 2019 06:36:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0E6XAaOTSpE27F6podtXi2+WPnsqw0VeykO9dZ8RmIY=; b=o8wls1NvJaUKlxYq1f82strwjpm8aFag9fZOmd+zIRkQRGDWEKobk0XNZFPIi9lk84 pLT0KEa1MqWF5tHeVNbtlhh36sop5ijENmg9wD1klCpcTs/6p9xsKvPq2C1Fdokah3to NCi8huskJIidCgbKIAk3ZLYuJka7vbMBgr9y+yRQGTDotEQlI5WsqKVFYXz/UVRQ5qat qVTGcAwwBGr4olwS8LbKkex+ITGeXujx2mrX9r7B5kff2hBz3uoARe1B58gugsqoQKJu ozrcWIiSSFBngBHtAhXGxacEvstQJTc2oD7Hk3DwBkZLp9TVpg1uz5fBlMoQmYnNofti wZ1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0E6XAaOTSpE27F6podtXi2+WPnsqw0VeykO9dZ8RmIY=; b=DklCZbOPjjNk1JF1QrngRvMJROFa2aWIYwsPQh8AtH4oiq7vuYan26wGo1de886QPg xLGWDRRuswHNbGb2XoBg2KebvsoDDVhUnG6mm4KwGztBLP2AluqC8VP9eAOjS0c8j1zC bt0KjUjMkNRGF8c2Z7yvrbFdp7InivxKk2Gubw3IHjSyH6W+KAJImvuHckrKvmIm1etY 0sVA7NLUqLIBzUvTL7lZilgFZEFXgqhMy+x0wy0tRU3+JRsB/1m9Ell2S7OEGpfc03CK YXFIUsrOFJS/ZuoKZ/10SLDl7bpQiEvXw98S8hkEQl9OYQ9ilYjFvRNj/TBZhSGtdsXq KNfA== X-Gm-Message-State: AJcUukeIcJofB429SRvoIC/qg96lu86quy/ix0mxZfI9NQd0dEjE4tUe tcv+Rv3rHWs2Pyz/4rTASv+fx4xeKDlsMxvrCAHcFuFZ X-Google-Smtp-Source: ALg8bN5FiKo5eqTX2h4w5ytUtJV6gHKszdCzGUe2dlyRUmcVQVFVAyei2FoXFws2LybhySKaWi/b7768nLIZWp8niRk= X-Received: by 2002:a63:cb4a:: with SMTP id m10mr56099826pgi.105.1546871816903; Mon, 07 Jan 2019 06:36:56 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:102945 Archived-At: --===============5693265735009892647== Content-Type: multipart/alternative; boundary="00000000000028e15c057edf2916" --00000000000028e15c057edf2916 Content-Type: text/plain; charset="UTF-8" In 2017 ghostscript added support for the /Print and /View keys of the Optional Content /Usage dictionary[1]. The use of '-dPrinted' should display the print-only layer, per the documentation[2]: gs -o output.pdf -sDEVICE=pdfwrite -dPrinted input.pdf >From their repository you can see that poppler (i.e. evince) also checks the /Print and /View keys[3]. I'm reporting this here since neither render ConTeXt's "printable" viewer layers - not while viewing, and not after printing. [1] http://git.ghostscript.com/?p=ghostpdl.git;h=9e621d6ffb0e29c5de8331bf2c95003c8cf85941 [2] https://ghostscript.com/doc/current/Use.htm#PDF_switches [3] https://gitlab.freedesktop.org/poppler/poppler/blob/master/poppler/OptionalContent.cc#L328 --00000000000028e15c057edf2916 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In 2017 ghostscript added support for the /Print and /View keys of the O= ptional Content /Usage dictionary[1]. The use of '-dPrinted' should= display the print-only layer, per the documentation[2]:

gs -o outpu= t.pdf -sDEVICE=3Dpdfwrite -dPrinted input.pdf

From their repository = you can see that poppler (i.e. evince) also checks the /Print and /View key= s[3].

--00000000000028e15c057edf2916-- --===============5693265735009892647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============5693265735009892647==--