![](https://secure.gravatar.com/avatar/dd9532a20642625dc7597113cd16544b.jpg?s=120&d=mm&r=g)
Hi, how can I set the pdf document properties with ConTeXt. For example, so that a document can be printed but not copied, etc. Thanks for any advice Thomas
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 8/29/2024 9:43 AM, Thomas Meyer wrote:
Hi,
how can I set the pdf document properties with ConTeXt. For example, so that a document can be printed but not copied, etc. context --help --expert
mtx-context | --ownerpassword encrypt the (pdf) file using this master password mtx-context | --userpassword use an additional password for opening the document mtx-context | --permissions list of: print, modify, extract, add, fillin, assemble, quality mtx-context | ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/dd9532a20642625dc7597113cd16544b.jpg?s=120&d=mm&r=g)
Thank you, Hans, I see it in the Terminal but I not really know to work with it. Sorry, I need more help. Thomas Am 29.08.24 um 09:43 schrieb Thomas Meyer:
Hi,
how can I set the pdf document properties with ConTeXt. For example, so that a document can be printed but not copied, etc.
Thanks for any advice
Thomas
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist :ntg-context@ntg.nl /https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage :https://www.pragma-ade.nl /https://context.aanhet.net (mirror) archive :https://github.com/contextgarden/context wiki :https://wiki.contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 8/29/2024 1:29 PM, Thomas Meyer wrote:
Thank you, Hans,
I see it in the Terminal but I not really know to work with it. Sorry, I need more help. well ...
context oeps --ownerpassword=hans --userpassword=hans --permissions=access,print
i've added reporting of permissions to
mtxrun --script pdf --info oeps.pdf --ownerpassword=hans --userpassword=hans
so one gets this: mtx-pdf | filename > oeps.pdf mtx-pdf | pdf version > 1.7 mtx-pdf | major version > 1 mtx-pdf | minor version > 7 mtx-pdf | number of pages > 1 mtx-pdf | title > Häns Hägen mtx-pdf | creator > LuaMetaTeX 2.11.05 20240828 + ConTeXt LMTX 2024.08.26 18:05 mtx-pdf | producer > LuaMetaTeX mtx-pdf | author > <unset> mtx-pdf | creation date > D:20240829164734+02'00 mtx-pdf | modification date > D:20240829164734+02'00 mtx-pdf | page mode > UseNone mtx-pdf | encrypted > yes mtx-pdf | permissions > access print mtx-pdf | cropbox > pages: 1-1, width: 17.791482016, height: 22.680846484 (in next upload, i had to take care of decrypting strings) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/dd9532a20642625dc7597113cd16544b.jpg?s=120&d=mm&r=g)
Thank you, Hans, that helps! Greetings Thomas Am 29.08.24 um 16:50 schrieb Hans Hagen:
On 8/29/2024 1:29 PM, Thomas Meyer wrote:
Thank you, Hans,
I see it in the Terminal but I not really know to work with it. Sorry, I need more help. well ...
context oeps --ownerpassword=hans --userpassword=hans --permissions=access,print
i've added reporting of permissions to
mtxrun --script pdf --info oeps.pdf --ownerpassword=hans --userpassword=hans
so one gets this:
mtx-pdf | filename > oeps.pdf mtx-pdf | pdf version > 1.7 mtx-pdf | major version > 1 mtx-pdf | minor version > 7 mtx-pdf | number of pages > 1 mtx-pdf | title > Häns Hägen mtx-pdf | creator > LuaMetaTeX 2.11.05 20240828 + ConTeXt LMTX 2024.08.26 18:05 mtx-pdf | producer > LuaMetaTeX mtx-pdf | author > <unset> mtx-pdf | creation date > D:20240829164734+02'00 mtx-pdf | modification date > D:20240829164734+02'00 mtx-pdf | page mode > UseNone mtx-pdf | encrypted > yes mtx-pdf | permissions > access print mtx-pdf | cropbox > pages: 1-1, width: 17.791482016, height: 22.680846484
(in next upload, i had to take care of decrypting strings)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
Thomas Meyer