ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] externalfigure crashed
@ 2023-11-22 19:55 Hans van der Meer via ntg-context
  2023-11-22 20:12 ` [NTG-context] " Wolfgang Schuster
  0 siblings, 1 reply; 13+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-22 19:55 UTC (permalink / raw)
  To: context NTG; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 565 bytes --]

When \externalfigure could not find the file it used to graciously place a rectangle kindly telling the user that the file has not been found.
But now, however, it seems the default in this case is a crash. Very annoying in comparison with the earlier behaviour.
I might make a mistake, but the MWE is as simple as can be.

The filename is test.jpeg, then this runs ok:
\starttext
\externalfigure[test.jpeg][]
\stoptext

But this crashes, see the log:
\starttext
\externalfigure[test.jpg][]
\stoptext


yours sincerely
dr. Hans van der Meer



[-- Attachment #1.2.1: Type: text/html, Size: 1260 bytes --]

[-- Attachment #1.2.2: showlayout.log --]
[-- Type: application/octet-stream, Size: 2391 bytes --]

system          > 
system          > ConTeXt  ver: 2023.09.18 21:13 LMTX  fmt: 2023.11.17  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/Users/hansm/Documents/TeX/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/Users/hansm/Documents/TeX/ConTeXt/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './showlayout', input './showlayout.tex', result './showlayout'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './showlayout.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern rm 12pt' is loaded
tex error       > tex error on line 3 in file ./showlayout.tex: Control sequence expected instead of undefined

<macro> \grph_include_replacement 
    ...rameter \c!background \v!color \setexternalfigureparameter \c!backgroundcolor {missingfigurecolor}\setexternalfigureparameter \c!align {\v!middle ,\v!lohi }\inheritedexternalfigureframed {\ttxx \nohyphens name: \expandeddetokenize 
    {#1}\crlf fil ...
<macro> 
    ...lude_replacement \figurelabel \figurefileoriginal {unknown}\else \grph_include_replacement \figurelabel \figurefullname {skipped}\fi \orelse \ifcase \figurestatus \grph_include_replacement \figurelabel \figurefileoriginal {unknown}
    \else \expand ...
<macro> \grph_include_place 
    ...igure_done \fi \grph_include_set_mode \else \ifcase \figurestatus \clf_figure_dummy \clf_figure_scale \else \clf_figure_check \clf_figure_include \clf_figure_scale \fi \clf_figure_done \grph_include_set_mode \grph_include_finalize 
    \fi \clf_figu ...
<macro> \externalfigure 
    [#1]#,[#2]#,[#S#3]->\ifhastok ={#2}\grph_include_place [#1][][#2]\else \grph_include_place [#1][#2][#3]
    \fi 
<to be read again> 
    
     \stoptext 
<line 3.3> 
    \stoptext

1     \starttext
2     \externalfigure[test.jpg][]
3 >>  \stoptext
4     
5     %\setuplayout[leftmargin=40mm,rightmargin=60mm,textwidth=110mm]
6     \showframe
7     \starttext
8     %setuplayout: leftmargin=40mm, rightmargin=60mm, textwidth=110mm\crlf
9     
You injected something that confused the parser, maybe by using some Lua call.

[-- Attachment #1.2.3: Type: text/html, Size: 231 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-22 19:55 [NTG-context] externalfigure crashed Hans van der Meer via ntg-context
@ 2023-11-22 20:12 ` Wolfgang Schuster
       [not found]   ` <C2A7935A-F190-49FE-8356-D1C992DB3F8D@ziggo.nl>
  2023-11-22 20:45   ` Aditya Mahajan
  0 siblings, 2 replies; 13+ messages in thread
From: Wolfgang Schuster @ 2023-11-22 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Hans van der Meer via ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 582 bytes --]

Hans van der Meer via ntg-context schrieb am 22.11.2023 um 20:55:
> When \externalfigure could not find the file it used to graciously 
> place a rectangle kindly telling the user that the file has not been 
> found.
> But now, however, it seems the default in this case is a crash. Very 
> annoying in comparison with the earlier behaviour.
> I might make a mistake, but the MWE is as simple as can be.

Can you update your ConTeXt installation and check if the error remains,
I tries to your example on my machine (Windows 11) and wasn't able
to reproduce the problem.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1080 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
       [not found]   ` <C2A7935A-F190-49FE-8356-D1C992DB3F8D@ziggo.nl>
@ 2023-11-22 20:44     ` Wolfgang Schuster
  2023-11-22 20:55       ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Wolfgang Schuster @ 2023-11-22 20:44 UTC (permalink / raw)
  To: Hans van der Meer; +Cc: context NTG


[-- Attachment #1.1: Type: text/plain, Size: 458 bytes --]

Hans van der Meer schrieb am 22.11.2023 um 21:22:
> The problem persists. Here the new logfile.

1. What is the version of your Luametatex binary?

     luametatex --version
     This is LuaMetaTeX, Version 2.10.11


2. What do you get in your log-file with the following example!

     \starttext
     \show\expandeddetokenize
     \stoptext

On my system I can find the following line:

     > \expandeddetokenize=primitive \expandeddetokenize


Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 994 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-22 20:12 ` [NTG-context] " Wolfgang Schuster
       [not found]   ` <C2A7935A-F190-49FE-8356-D1C992DB3F8D@ziggo.nl>
@ 2023-11-22 20:45   ` Aditya Mahajan
  1 sibling, 0 replies; 13+ messages in thread
From: Aditya Mahajan @ 2023-11-22 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 22 Nov 2023, Wolfgang Schuster wrote:

> Hans van der Meer via ntg-context schrieb am 22.11.2023 um 20:55:
> > When \externalfigure could not find the file it used to graciously place a
> > rectangle kindly telling the user that the file has not been found.
> > But now, however, it seems the default in this case is a crash. Very
> > annoying in comparison with the earlier behaviour.
> > I might make a mistake, but the MWE is as simple as can be.
> 
> Can you update your ConTeXt installation and check if the error remains,
> I tries to your example on my machine (Windows 11) and wasn't able
> to reproduce the problem.

I get the same error on linux. I am using 2023.09.26 which appears to be the latest version available for linux.

The issue is that \expandeddetokenize used in the definition of grph_include_replacement is not defined.

A simple \def\expandeddetokenize{\relax} fixes the error, but clearly that is not a proper solution.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-22 20:44     ` Wolfgang Schuster
@ 2023-11-22 20:55       ` Aditya Mahajan
  2023-11-22 21:02         ` Hans van der Meer via ntg-context
  0 siblings, 1 reply; 13+ messages in thread
From: Aditya Mahajan @ 2023-11-22 20:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

On Wed, 22 Nov 2023, Wolfgang Schuster wrote:

> Hans van der Meer schrieb am 22.11.2023 um 21:22:
> > The problem persists. Here the new logfile.
> 
> 1. What is the version of your Luametatex binary?
> 
>     luametatex --version
>     This is LuaMetaTeX, Version 2.10.11

For me, it is the same:

This is LuaMetaTeX, Version 2.10.11

> 
> 2. What do you get in your log-file with the following example!
> 
>     \starttext
>     \show\expandeddetokenize
>     \stoptext
> 
> On my system I can find the following line:
> 
>     > \expandeddetokenize=primitive \expandeddetokenize

\expandeddetokenize=undefined

Not sure why this is the case!

Aditya

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-22 20:55       ` Aditya Mahajan
@ 2023-11-22 21:02         ` Hans van der Meer via ntg-context
  2023-11-24 17:16           ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 13+ messages in thread
From: Hans van der Meer via ntg-context @ 2023-11-22 21:02 UTC (permalink / raw)
  To: NTG ConTeXt; +Cc: Hans van der Meer


[-- Attachment #1.1: Type: text/plain, Size: 1445 bytes --]

Here too, I find 'undefined' from \meaning\expandeddetokenize

yours sincerely
dr. Hans van der Meer



> On 22 Nov 2023, at 21:55, Aditya Mahajan <adityam@umich.edu> wrote:
> 
> On Wed, 22 Nov 2023, Wolfgang Schuster wrote:
> 
>> Hans van der Meer schrieb am 22.11.2023 um 21:22:
>>> The problem persists. Here the new logfile.
>> 
>> 1. What is the version of your Luametatex binary?
>> 
>>     luametatex --version
>>     This is LuaMetaTeX, Version 2.10.11
> 
> For me, it is the same:
> 
> This is LuaMetaTeX, Version 2.10.11
> 
>> 
>> 2. What do you get in your log-file with the following example!
>> 
>>     \starttext
>>     \show\expandeddetokenize
>>     \stoptext
>> 
>> On my system I can find the following line:
>> 
>>     > \expandeddetokenize=primitive \expandeddetokenize
> 
> \expandeddetokenize=undefined
> 
> Not sure why this is the case!
> 
> Aditya___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 2365 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-22 21:02         ` Hans van der Meer via ntg-context
@ 2023-11-24 17:16           ` Hans Hagen via ntg-context
  2023-12-02 15:57             ` Fabrice Couvreur
  2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
  0 siblings, 2 replies; 13+ messages in thread
From: Hans Hagen via ntg-context @ 2023-11-24 17:16 UTC (permalink / raw)
  To: Hans van der Meer via ntg-context; +Cc: Hans Hagen

On 11/22/2023 10:02 PM, Hans van der Meer via ntg-context wrote:
> Here too, I find 'undefined' from \meaning\expandeddetokenize
\ifdefined\expandeddetokenize\else
\let\expandeddetokenize\detokenize
\fi

will do for now ... i can't upload a new installer .. pending the built; 
the advantage is that i can do some experiments that would otherwise 
break the current version (making compact font mode very close to 
normal, pdf signing, adapting to the latest validation, math magick, 
etc); so fixes have to wait (but are done anyway)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-24 17:16           ` Hans Hagen via ntg-context
@ 2023-12-02 15:57             ` Fabrice Couvreur
  2023-12-02 16:21               ` Hans Hagen
  2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
  1 sibling, 1 reply; 13+ messages in thread
From: Fabrice Couvreur @ 2023-12-02 15:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1729 bytes --]

Hi Hans,
I have the same problem and definitely need to use \externalfigure[] this
weekend. In which file should this patch be added ?
Thanks.
Fabrice

Le ven. 24 nov. 2023 à 17:16, Hans Hagen via ntg-context <ntg-context@ntg.nl>
a écrit :

> On 11/22/2023 10:02 PM, Hans van der Meer via ntg-context wrote:
> > Here too, I find 'undefined' from \meaning\expandeddetokenize
> \ifdefined\expandeddetokenize\else
> \let\expandeddetokenize\detokenize
> \fi
>
> will do for now ... i can't upload a new installer .. pending the built;
> the advantage is that i can do some experiments that would otherwise
> break the current version (making compact font mode very close to
> normal, pdf signing, adapting to the latest validation, math magick,
> etc); so fixes have to wait (but are done anyway)
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2943 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-12-02 15:57             ` Fabrice Couvreur
@ 2023-12-02 16:21               ` Hans Hagen
  2023-12-03 12:47                 ` Fabrice Couvreur
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen @ 2023-12-02 16:21 UTC (permalink / raw)
  To: ntg-context

On 12/2/2023 4:57 PM, Fabrice Couvreur wrote:
> Hi Hans,
> I have the same problem and definitely need to use \externalfigure[] 
> this weekend. In which file should this patch be added ?
> Thanks.
cont-new.mkxl

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-12-02 16:21               ` Hans Hagen
@ 2023-12-03 12:47                 ` Fabrice Couvreur
  0 siblings, 0 replies; 13+ messages in thread
From: Fabrice Couvreur @ 2023-12-03 12:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1252 bytes --]

Hi Hans,
It works, thank you very much.

Le sam. 2 déc. 2023 à 16:24, Hans Hagen <j.hagen@xs4all.nl> a écrit :

> On 12/2/2023 4:57 PM, Fabrice Couvreur wrote:
> > Hi Hans,
> > I have the same problem and definitely need to use \externalfigure[]
> > this weekend. In which file should this patch be added ?
> > Thanks.
> cont-new.mkxl
>
> -----------------------------------------------------------------
>                                            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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2375 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-11-24 17:16           ` Hans Hagen via ntg-context
  2023-12-02 15:57             ` Fabrice Couvreur
@ 2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
  2023-12-04 19:44               ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 13+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-12-04 16:38 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 11/24/23 18:16, Hans Hagen via ntg-context wrote:
> […]
> will do for now ... i can't upload a new installer .. pending the built;
> the advantage is that i can do some experiments that would otherwise
> break the current version (making compact font mode very close to
> normal, pdf signing […]

Sorry, Hans, if I am missing the point.

Does the above mean that ConTeXt will be able to sign PDF documents with
digital certificates?

Many thanks for your help,

Pablo
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
@ 2023-12-04 19:44               ` Hans Hagen via ntg-context
  2023-12-06 19:05                 ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 13+ messages in thread
From: Hans Hagen via ntg-context @ 2023-12-04 19:44 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote:
> On 11/24/23 18:16, Hans Hagen via ntg-context wrote:
>> […]
>> will do for now ... i can't upload a new installer .. pending the built;
>> the advantage is that i can do some experiments that would otherwise
>> break the current version (making compact font mode very close to
>> normal, pdf signing […]
> 
> Sorry, Hans, if I am missing the point.
> 
> Does the above mean that ConTeXt will be able to sign PDF documents with
> digital certificates?
Well, that's what singing is, right? The problem is actually less in the 
signing than in the certificates themselves.

Basically one can sign (with some certificate) and then validate.


% sign-001.tex

\setupinteraction[state=start]

\definefield[signature][signed]

\defineoverlay[signature][my signature]

\starttext
     \startTEXpage[offset=1ts,frame=on,framecolor=darkblue]
         sign: \inframed
           [background=signature,framecolor=darkred]
           {\fieldbody[signature][width=3cm,option=hidden]}
     \stopTEXpage
\stoptext

after neing processed:

mtxrun --script pdf --sign --certificate=sign-001.pem --password=test 
sign-001 (--library)

and:

mtxrun --script pdf --validate --certificate=sign-001.pem 
--password=test sign-001 (--library)

etc. works here.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [NTG-context] Re: externalfigure crashed
  2023-12-04 19:44               ` Hans Hagen via ntg-context
@ 2023-12-06 19:05                 ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 13+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2023-12-06 19:05 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 12/4/23 20:44, Hans Hagen via ntg-context wrote:
> On 12/4/2023 5:38 PM, Pablo Rodriguez via ntg-context wrote:
>>> […]
>> Does the above mean that ConTeXt will be able to sign PDF documents with
>> digital certificates?
> Well, that's what singing is, right? The problem is actually less in the
> signing than in the certificates themselves.
>
> Basically one can sign (with some certificate) and then validate.

Many thanks for your explanation, Hans.

These are great news. I wonder whehter it would be feasible to extend
this to use smart cards (through Firefox).

Many thanks the new implementations,

Pablo

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-12-06 19:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 19:55 [NTG-context] externalfigure crashed Hans van der Meer via ntg-context
2023-11-22 20:12 ` [NTG-context] " Wolfgang Schuster
     [not found]   ` <C2A7935A-F190-49FE-8356-D1C992DB3F8D@ziggo.nl>
2023-11-22 20:44     ` Wolfgang Schuster
2023-11-22 20:55       ` Aditya Mahajan
2023-11-22 21:02         ` Hans van der Meer via ntg-context
2023-11-24 17:16           ` Hans Hagen via ntg-context
2023-12-02 15:57             ` Fabrice Couvreur
2023-12-02 16:21               ` Hans Hagen
2023-12-03 12:47                 ` Fabrice Couvreur
2023-12-04 16:38             ` Pablo Rodriguez via ntg-context
2023-12-04 19:44               ` Hans Hagen via ntg-context
2023-12-06 19:05                 ` Pablo Rodriguez via ntg-context
2023-11-22 20:45   ` Aditya Mahajan

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).