20 October, 2020
Follow Us

Scripting in Bluebeam Revu Extreme: Spend less time doing mundane tasks.

20 October, 2020

What is Scripting in Revu?

Scripting is a powerful tool that offers the ability to automate what might be otherwise time consuming and repetitive tasks. Whilst Scripting is nowhere near as powerful as programming, the advantages is that it doesn’t require learning programming languages and their associated complexities.

Once you’ve learnt the general commands and the correct syntax (the way to write out the script commands) you’re ready to go.

Revu PDF Compatibility.

Bluebeam Revu Extreme supports Scripting in line with other PDF creation software (as defined in ISO 32000).  This means that scripting actions can generally be applied to PDF documents that are sourced from other compliant software and vice versa.

An overview of Scripting:

The quickest way to get up to speed with the Scripting commands in Revu is to have a look at this document: Bluebeam-Script-Reference But before you sink your teeth into that, let’s have an overview of the process of making Scripts and look at some examples.

The Bluebeam Script Editor: Making things a lot easier:

Each version of Bluebeam Revu ships with a very powerful application that makes creating Scripts a lot easier.

Go to the Windows Start Menu > Bluebeam Software > Bluebeam Script Editor XX (where XX is version of Revu). The interface in this program is pretty simple.

The application is ostensibly a text editor that allows you to type in, copy and paste text. It goes beyond this simple functionality as it also allows you to run and test Scripts to make sure they are working as required.

A really nice feature is that you can start to type into the text window and then the program offers up commands based on your text.

Once you’ve selected the command, the software gives you a preview of the Script command options.

You enter each value for the options or hit the Tab key to get the program to fill in the current option with the default. You can then come back and enter in the specific options if you don’t want the default option.

Another trick is that if you hover over a Script that you’ll already made, the program shows you a tooltip with all the options explained again to remind you of what they mean:

A simple Example:

In our first example below, we’ll add a Stamp into a PDF at a preset place. Before I do that though, I’ll make a simple Stamp and save it into the default Revu Stamp folder on my local hard drive (although we can set a custom location for these sorts of things in Revu and point it towards a network location if we want). I called the Stamp “Hello World.pdf”.

The script calls up the Command “Stamp”, then the name of the Stamp (which is case sensitive) and then the placement options. You also have blending options (the way that Revu blends the Stamp graphics and the PDF graphics below it) and the very last option determines whether the Stamp is automatically locked.

This is what it looks like in the Bluebeam Script Editor:

Now open an existing PDF or make a new one in Revu. For this exercise, I’ll select the text in the editing Window and hit CTRL-C to copy it. Back in Revu Extreme, we go to the Menu > Document > Script and in this case, click on the + symbol to make a new blank Script:

I then type in a name, in my case I’ve called it “Hello World”. If you want to get really fancy you can import a Jpg or other image to customise the icon.

Then I’ve simply pasted the text into the Window.

Now press OK and you’ll see the new Script at the bottom of the list of available Scripts:

We can select the Script and hit the Run button and we get this:

Another example:

Let’s look at another example of a Script that allows us to, reduce the file size, then prompt us to Save the file under a new name then open an Email ready for us to send it to someone:

Here’s the Script:

Here’s a breakdown the text:

ReduceFileSize(medium,150,true,true, true) 
SetPDFSecurity( “testpassword”, 1, “”, “AES128”)
SaveAs( “pdf”)
Email ()

In simple terms, in the 1st line we’ve elected to reduce the file size to the Medium setting, reduce image DPI to 150, drop embedded fonts and other embedded objects and compress a range of objects in the PDF (again, refer to the Scripting Reference linked to above for more detail).

In the 2nd line we’ve set PDF Security so that it requires a Password to Edit or Copy the PDF but we’ve allows Printing. We’ve set the password as “testpassword”.

In the 3rd line, we’ve created a Command to prompt the user to Save the file under a new name.

Lastly, in the 4th line we’ve used the Email command that, once you’ve saved the PDF, makes Revu open your default Email program and automatically attached your new PDF ready to send

When we execute the Script, we are asked what name and location we want to save the edited file to and we end up with a new PDF ready to email out which is reduced in size, password protected:

Summary:

This is really just a taster but I hope it’s provided  you with some inspiration to have a look the ways that Scripts might make your life a lot simpler inside Revu Extreme. Have fun 😉

© Cadgroup. Cadgroup Australia Pty Ltd - ABN: 21 003 874 084 / Privacy /
Built By Getmilk