Re: [NTG-context] Added licensing information to PDF

2012-08-17 Thread Tobias Mueller
Hey folks :)

Thanks for the replies. Just reading up on the archives.

On Wed, 2012-08-01 at 09:21 +0200, Philipp Gesang wrote:
> you can include XMP files with one line:
> 
> \setupbackend[xmpfile=metadata.xmp]

uh. Well. As the other mail said, I could also inject my XMP data 
directly. I could also probably use tools like cat, sed and grep to 
inject my XMP data into the PDF. But all that seems way more complicated 
and error prone than just telling the document processor what license I 
want to use and it taking care about the details.

So for the record: Am I assuming correctly that I cannot do something 
easy to use (yet)? I.e. such as
pdfcopyright={This work is licensed to the public ...},
pdflicenseurl={http://creativecommons.org/licenses/by-nc-sa/3.0/de/} 

Cheers,
  Tobi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___


Re: [NTG-context] Added licensing information to PDF

2012-08-02 Thread Philipp Gesang
Hey Kip,

·

> On Wed, 2012-08-01 at 09:21 +0200, Philipp Gesang wrote:
> > you can include XMP files with one line:
> > 
> > \setupbackend[xmpfile=metadata.xmp]
> 
> Hey Philipp. I just tried this using an incorrect filename to the
> xmpfile parameter and my document still compiled without error, so I'm
> wondering if this setup actually does anything at all or if its simply
> ignored?

in my case it does as I can see the XMP information embedded in
the PDF. Watch out for a blob that looks like this:

  >>
  stream
  http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
  ...

This should contain your metadata if used correctly, else some
generic stuff. Context is just habitually a bit terse wrt error
messages.

Hth
Philipp






pgp7qiOLq9BoY.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___

Re: [NTG-context] Added licensing information to PDF

2012-08-02 Thread Kip Warner
On Wed, 2012-08-01 at 09:21 +0200, Philipp Gesang wrote:
> you can include XMP files with one line:
> 
> \setupbackend[xmpfile=metadata.xmp]

Hey Philipp. I just tried this using an incorrect filename to the
xmpfile parameter and my document still compiled without error, so I'm
wondering if this setup actually does anything at all or if its simply
ignored?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___

Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Peter Rolf
Am 01.08.2012 09:21, schrieb Philipp Gesang:
> Hi Tobias,
> 
> ·
> 
>> 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","True",false)
-- url for copyright information
lpdf.insertxmpinfo("xml://rdf:Description/xmpRights:Marked","http://www.yoururl.com",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 : [email protected] / 
>> 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 : [email protected] / 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 : [email protected] / 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
___

Re: [NTG-context] Added licensing information to PDF

2012-08-01 Thread Philipp Gesang
Hi Tobias,

·

> 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]

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 : [email protected] / 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
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpKEBiuTKAox.pgp
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___