Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The first version always gets thrown away.


devel / comp.lang.postscript / Re: MessageBoxPopUp in PDF made by PostScript’s pdfmark

SubjectAuthor
* MessageBoxPopUp in PDF made by PostScript’s pdfmarjdaw1
`- Re: MessageBoxPopUp in PDF made by PostScript’s pdluser droog

1
MessageBoxPopUp in PDF made by PostScript’s pdfmark

<81554be3-2290-438f-9878-9fa5eaeeddc6n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=64&group=comp.lang.postscript#64

  copy link   Newsgroups: comp.lang.postscript
X-Received: by 2002:a05:620a:2155:: with SMTP id m21mr23799868qkm.499.1629758660314;
Mon, 23 Aug 2021 15:44:20 -0700 (PDT)
X-Received: by 2002:aca:f145:: with SMTP id p66mr675443oih.30.1629758660162;
Mon, 23 Aug 2021 15:44:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.postscript
Date: Mon, 23 Aug 2021 15:44:19 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=95.150.109.148; posting-account=Cp97SgoAAAC0t1Gya5PaPqyoafMoOtAn
NNTP-Posting-Host: 95.150.109.148
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <81554be3-2290-438f-9878-9fa5eaeeddc6n@googlegroups.com>
Subject: MessageBoxPopUp_in_PDF_made_by_PostScript’s_pdfmar
k
From: jdawiseman@gmail.com (jdaw1)
Injection-Date: Mon, 23 Aug 2021 22:44:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: jdaw1 - Mon, 23 Aug 2021 22:44 UTC

I’m generating a PDF from PostScript. I might generate one, upload it, and have others check it. It might be updated. And re-updated. Then somebody is to print it, and, sometimes, what is printed is a cached old version. Ouch!

One solution — rejected for this problem — would be to have many separate file names. Not good: there should be a single canonical-seeming file name; and the drafts should not have a permanent life.

A different technique is something I don’t know how to do. In the PDF, presumably added via `pdfmark`, could there be something like the following pseudocode?

```
On Open
{ If Today ≤ HardWiredDateConstantBeingDateOfTasting
{
MessageBoxPopUp
string="This version HardWiredStringConstant: check that is latest with a force-reload."
Buttons={"OK, checked"}
}
} ```

If any readers of comp.lang.postscript know how to pdfmark that, pls do say.. Thank you.

Relevant links:
http://github.com/jdaw1/placemat/issues/152
http://www.theportforum.com/viewtopic.php?t=175&p=112066#p112066

Re: MessageBoxPopUp in PDF made by PostScript’s pdfmark

<e2d89cb1-45f0-4d31-9c1a-2f20c136210en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=65&group=comp.lang.postscript#65

  copy link   Newsgroups: comp.lang.postscript
X-Received: by 2002:a37:6458:: with SMTP id y85mr6253324qkb.418.1630020082839;
Thu, 26 Aug 2021 16:21:22 -0700 (PDT)
X-Received: by 2002:aca:6041:: with SMTP id u62mr12491569oib.178.1630020082521;
Thu, 26 Aug 2021 16:21:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.postscript
Date: Thu, 26 Aug 2021 16:21:22 -0700 (PDT)
In-Reply-To: <81554be3-2290-438f-9878-9fa5eaeeddc6n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=24.207.183.245; posting-account=G1KGwgkAAAAyw4z0LxHH0fja6wAbo7Cz
NNTP-Posting-Host: 24.207.183.245
References: <81554be3-2290-438f-9878-9fa5eaeeddc6n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e2d89cb1-45f0-4d31-9c1a-2f20c136210en@googlegroups.com>
Subject: Re:_MessageBoxPopUp_in_PDF_made_by_PostScript’s_pd
fmark
From: luser.droog@gmail.com (luser droog)
Injection-Date: Thu, 26 Aug 2021 23:21:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: luser droog - Thu, 26 Aug 2021 23:21 UTC

On Monday, August 23, 2021 at 5:44:20 PM UTC-5, jdaw1 wrote:
> I’m generating a PDF from PostScript. I might generate one, upload it, and have others check it. It might be updated. And re-updated. Then somebody is to print it, and, sometimes, what is printed is a cached old version. Ouch!
>
> One solution — rejected for this problem — would be to have many separate file names. Not good: there should be a single canonical-seeming file name; and the drafts should not have a permanent life.
>
> A different technique is something I don’t know how to do. In the PDF, presumably added via `pdfmark`, could there be something like the following pseudocode?
>
> ```
> On Open
> {
> If Today ≤ HardWiredDateConstantBeingDateOfTasting
> {
> MessageBoxPopUp
> string="This version HardWiredStringConstant: check that is latest with a force-reload."
> Buttons={"OK, checked"}
> }
> }
> ```
>
> If any readers of comp.lang.postscript know how to pdfmark that, pls do say. Thank you.
>
> Relevant links:
> http://github.com/jdaw1/placemat/issues/152
> http://www.theportforum.com/viewtopic.php?t=175&p=112066#p112066

This might not be very portable, but IIRC with acrobat you can embed JavaScript.
I'm not sure what flavor of JS it uses nor what functions are available.

But, using that you could have a file called maybe "last-revision.txt" with just the
timestamp of the latest version. Then your JS code could fetch the file and compare
to the hard wired constant.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor