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 via email to