ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Rolf <indiego@gmx.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Added licensing information to PDF
Date: Wed, 01 Aug 2012 13:12:13 +0200	[thread overview]
Message-ID: <50190F0D.2050506@gmx.net> (raw)
In-Reply-To: <20120801072133.GA9723@phlegethon>

Am 01.08.2012 09:21, schrieb Philipp Gesang:
> Hi Tobias,
> 
> ···<date: 2012-07-31, Tuesday>···<from: Tobias Mueller>···
> 
>> I am trying to switch from LaTeX to ConTeXt and I'd like to add
>> licensing information to the generated PDF, just like what the
>> "hyperxmp" package would do for LaTeX.
> 
> you can include XMP files with one line:
> 
>     \setupbackend[xmpfile=metadata.xmp]
>

You can also use some low level commands here (with the risk that names
change or they vanish some time). The risk in this case is very low.
Read the documentation about XMP from Adobe and you will exactly know
why. :-D

Add something like this after \setupinteraction|\setupbackend (they also
add info to the XMP blob).

\startluacode
-- keep the order

-- mark as copyrighted material
lpdf.injectxmpinfo("xml://rdf:RDF","<rdf:Description rdf:about=''
xmlns:xmpRights='http://ns.adobe.com/xap/1.0/rights/'><xmpRights:Marked>True</xmpRights:Marked></rdf:Description>",false)
-- url for copyright information
lpdf.insertxmpinfo("xml://rdf:Description/xmpRights:Marked","<xmpRights:WebStatement>http://www.yoururl.com</xmpRights:WebStatement>",false)
\stopluacode


The adding is also limited to a predefined list of values. See
lpdf-xmp.lua ('mapping') for the details.


Best wishes,  Peter


> Of course, the XMP needs to be generated beforehand. I was using
> the export functionality at http://wiki.creativecommons.org for
> this, but maybe Context can do the conversion for you already?
> 
> Hth
> Philipp
> 
> 
>>
>> Something like this:
>>
>> \setupinteraction[
>>     title={My Title},
>>     author={Tobias Mueller},
>>     keyword={foo bar baz},
>>     pdfcopyright={This work is licensed to the public under the Creative Commons Attribution-Non-Commercial-Share Alike 3.0 Germany License.},
>>     pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/}
>>     ]
>>
>> \starttext
>> Hello, World!
>> \stoptext
>>
>>
>> Thanks!
>>   Tobi
>> ___________________________________________________________________________________
>> 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
>> ___________________________________________________________________________________
> 
> 
> 
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
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	other threads:[~2012-08-01 11:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 11:26 Tobias Mueller
2012-08-01  7:21 ` Philipp Gesang
2012-08-01 11:12   ` Peter Rolf [this message]
2012-08-02 20:45   ` Kip Warner
2012-08-02 22:19     ` Philipp Gesang
2012-08-17  8:59     ` Tobias Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50190F0D.2050506@gmx.net \
    --to=indiego@gmx.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).