Self-destructing Stamp

  • Self-destructing Stamp

    Posted by Paul Going on April 18, 2025 at 9:27 am

    I have a javascript stamp that opens a message box with a list of all the page sizes in the document. The only purpose of the stamp is to show the message box, so it works like a pseudo toolbar button. The stamp itself is blank except for a calc text field.

    I’d like the stamp to delete itself after it displays the message box, so I don’t have to delete it myself and don’t end up with numerous blank stamps in documents. Does anyone know if that’s even possible?

    Thanks!

    Isaac Harned replied 13 hours, 16 minutes ago 3 Members · 7 Replies
  • 7 Replies
  • David Cutler

    Member
    April 23, 2025 at 7:05 am
    Points: 28,471
    Rank: UC2 Brainery Advanced Brown Belt I UC2 Brainery Advanced Brown Belt I

    Welcome to the Brainery @notoriouspbgcomcast-net !

    Interesting use of a stamp. Curious as to how you use the information that it generates in your workflow.

    I’m not a Javascript user, but my suggestion would be to work a simple “Ctrl-Z” into your process. Basically apply the stamp, make use of the data as needed and then hit “Ctrl-Z” to undo the application of the stamp. Is is possible to work a “delayed” undo into the script?

    Perhaps @lizlarsen or @isaac-harned have some ideas on this.

    Dave

  • Paul Going

    Member
    April 23, 2025 at 4:48 pm
    Points: 343
    Rank: UC2 Brainery Newbie UC2 Brainery Newbie Belt Rank

    Thanks! The purpose of the tool is so we don’t get caught with non-standard paper sizes in a report.

    These are engineering reports, and it usually isn’t appropriate to print to fit. So when the copier gets to a paper size it can’t print, it stops until someone presses a button to choose the paper for that sheet. Checking the sizes of all the sheets ahead of time can save a lot of time when printing many copies of a voluminous report.

    For me, personally, I can delete the empty stamp after placing it. But I’m not actually the person who prints and binds reports. I’d like others in our company to be able to use it … but with as little training as possible.

    • David Cutler

      Member
      April 24, 2025 at 6:46 am
      Points: 28,471
      Rank: UC2 Brainery Advanced Brown Belt I UC2 Brainery Advanced Brown Belt I

      Something you might consider @notoriouspbgcomcast-net is creating a “job sheet” or “cover sheet” that could be applied as part of your workflow. The printing process could then be set to start with page 2 – or simply recycle that 1st sheet before binding.

  • Isaac Harned

    Member
    May 2, 2025 at 8:39 am
    Points: 8,282
    Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

    Unfortunately, the stamp shows as an Markup once its dropped. Normally with Adobe we could use removeannot to ‘possibly’ get it done, but Revu unfortuately does not have any annot methods available yet. We are pushing and hoping for this functionality soon, but no timeline heard yet.

    Would it be possible just to make the stamp invisible? Clear fill, white text? Best I have I think.

  • Paul Going

    Member
    May 4, 2025 at 3:00 pm
    Points: 343
    Rank: UC2 Brainery Newbie UC2 Brainery Newbie Belt Rank

    I started with the stamp blank, but I’ve opted to have it display a text message that says “delete me!” I don’t know if there would be any harm in leaving blank annotations on a production pdf, but I’d rather not field (pun intended) questions about it.

    In acrobat I used to have a tool that did this same thing, and was able to create a toolbar button that would run the javascript, without having a stamp associated with it.

    • Isaac Harned

      Member
      May 9, 2025 at 10:17 am
      Points: 8,282
      Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

      Hmmm…. Weird work around, but if you were to create the stamp with properties that were, as mentioned in the previous, invisible to the eye, or even placing the stamp off page, then set the stamp to come in on a specific layer, you COULD create a toolbar button using the other type of “Script” (Document/Script) that could flatten that particular layer with the ‘unrecoverable’ setting.

      • Isaac Harned

        Member
        May 9, 2025 at 10:21 am
        Points: 8,282
        Rank: UC2 Brainery Purple Belt III UC2 Brainery Purple Belt III

        See snapshot, Scripting is easy since they give you the tool tips as you write it, but very limited functionality. Flattening just happens to have all the arguments you would need

Log in to reply.