Add a “Night” mode to InDesign

In the same way that different political or religious views can polarise a group of people, so can one specific InDesign feature: Light or Dark interface.

Introduced into InDesign CC in 2013, this change brought InDesign in line with other Creative Cloud products that had a dark interface. That said, I was not a fan and chose to remain a user of the light interface.

Many years later and Apple released the macOS Mojave with its Dynamic Desktop and Dark mode. The Dynamic Desktop feature shows a bright desktop during daylight hours and a dark desktop during the dark hours. In addition, popular apps also followed suit allowing users to switch from the usual view to a “night mode”.

In addition, I have found myself working late into the night on projects, and have found that a darker interface during these hours is easier on my eyes. That said, I still like to use a light interface when working in daylight hours.

With this in mind, I wondered if it was possible to create an InDesign startup script that – upon performing a common task such as opening a file – would check the time of day and if it was beyond a certain time of the day, would invoke the dark interface… and it was.

I’ve now added this script to the site and it can be downloaded from here or the scripts/download pages. As this is a startup script, it has to be added to the Startup Scripts folder (see Ole Kvern’s excellent instructions for doing so here).

The script can also be modified to suit by going into any text editor such as textedit or notepad and editing the following lines of the script:

if (hours <= 7 || hours >= 18)

This indicates the hours of the day. In the script, 7 = 7:00 am, and 18 = 6:00 pm.

app.generalPreferences.uiBrightnessPreference = 0.0;

This refers to how dark the interface should be. 0.0 is totally dark, 1.0 is bright, but values from 0.1-0.9 can be used as well.

app.generalPreferences.pasteboardColorPreference = 1; 

This refers to the color of the pasteboard. The number 1 will match the pasteboard color to the interface, whereas 0 will leave the pasteboard white.

So technically it’s not a night-mode per se, but for those who like the light interface until the night-time hours, this script may be something to consider.

Advertisements

Add date selectors to date fields in interactive PDF

A feature of Acrobat DC that can be quite handy is the prepare form feature. It allows a scan (or a document with no form-field elements) to have form-field elements applied to it, so long as the formatting of the artwork follows the practices listed in this document.

However, there is an improvement that I feel could be made to this feature, but may have been missed by the Acrobat team, and that is date fields. Take the following example:

Now run the Prepare Form feature of Adobe Acrobat DC Professional:

The signature is picked up OK, but the date field is just a text field.

After doing a little digging online, I found that changing the name of the Date field to something like Date_af_date (the importance being the _af_date text) and this will change it to a date field;

But it doesn’t truly act like a date field. If I close out of preview mode and tab to the text field, it behaves like a regular text field.

It isn’t until the format category is changed to date that the field behaves like a date field with a date picker.

So that’s fine to edit one field, but if there are lots of date fields to edit, or this is a regular task, it can be time consuming. Ultimately, I’d like Acrobat’s prepare form feature to detect the date fields just like other fields like text inputs and signature fields are auto detected.

Until that happens, I’ve created an Acrobat action that will run not just the prepare form feature, but also a javascript that will find any of the resulting fields that have the word Date (case-sensitive) in them and make them selectable date fields. That action can be downloaded here.

To change the date format, open up the Acrobat action and change the following line in the script:

The number in brackets can be changed from 5 to a value between 0-13 that represents a format as shown below:

0: m/d
1: m/d/yy
2: mm/dd/yy
3: mm/yy
4: d-mmm
5: d-mmm-yy
6: dd-mmm-yy
7: yy-mm-dd
8: mmm-yy
9: mmmm-yy
10: mmm d, yyyy
11: mmmm d, yyyy
12: m/d/yy h:MM tt
13: m/d/yy HH:MM

In the meantime, if you would like the Acrobat team to update the prepare form feature so that date fields are automatically detected, I’ve added it to the Acrobat Uservoice wishlist.

Preparing artwork for a Tête-Bêche book

On rare occasions, my employer will be tasked with printing a book that is really two titles in one, but both titles are bound together so that the first title will read correctly until the end of its content, and then the content of the second title is upside-down and in the wrong page order. This doesn’t make sense until the book is turned upside-down, and then the second title reads correctly. This style of binding two titles into one is known as Tête-Bêche (French for Head to Tail).

titlepic

If this still isn’t quite clear, have a look at some of the titles from the publisher Abe Books

While this isn’t a question that’s asked often, a post on the Adobe InDesign forums asked how to create such a book, so I thought I would write up an article of how I tend to prepare the text component of these publications.

Make two separate titles first

It is certainly possible to layout both titles in the same InDesign file using the rotate spread view, but I’d advise against doing this as not only is it generally confusing, the second title won’t be able to take advantage of automatic features such as page numbering, table of contents, indexes, etc

Instead, create the titles as either two separate InDesign files, or two separate InDesign Book files.

PDF only method

Create print-ready PDFs of both titles, and then decide what will become the first title and what will become the second title. Leave the PDF of the first title alone, but to the second title, do the following:

  • Rotate all pages 180°;

01 rotatepages

  • Reverse the page order*.

02 reversepgorder

*Rotating the pages is easy enough in Acrobat, but reversing the page order will call for a technique that has been outlined in an earlier article.

This will result in the first title right-reading in the correct page order, and the second title upside-down in reverse order. From here:

  • Use the Combine Files into a Single PDF… option and join the two files together;

03 combinefiles

or

  • With the first title open, open the pages panel and drag the second title from Finder (Mac) or Explorer (Windows) to the end of the last page.

04 dragdrop

InDesign method

The advantage with this method is that it will work with either a PDF of each title, or an InDesign file of each title, provided that each title is its own InDesign file. If InDesign book files were used, then PDFs need to be made for this method.

Another advantage is that if late changes need to be made, the alterations can be made to the original InDesign title, and then updated in the “conjoined” title automatically.

This method requires the multipageplace script. Make a new non-facing pages document that will be the same trim size as the titles – the document is only being used as a “conjoined” title to put the pages in the correct orientation and order, so facing pages isn’t required. Run the script and import the first title. When the script’s dialog box appears, enter the following options then click OK:

05 importone

Once the script has run, add a blank page to the end of the document.

06 add a page

Run the script again, selecting the second title. This time, enter the following options into the dialog box that appears:

07 importtwo

In this example, the script is starting at page 13 as the previously placed file finished at page 12. Obviously this needs to be changed depending how long the original title is.

Note that this dialog instructs the pages to rotate 180° and to reverse the page order.

08 tada

This will now place the pages in the correct order for Tête-Bêche binding.

Confirmation of page sequence

To confirm that the pages in the conjoined file will now read correctly, make a PDF of the conjoined file and repeat the first two steps used in the PDF method (rotate 180° and reverse page order) – this will show the PDF of the second title’s reading order, and that the first title is now upside-down and in reverse.

The cover

This file will be prepared like any other book, with the exception that the Outside Back Cover (OBC) will now become the Outside Front Cover (OFC) of the second title. Rule to remembering the head directions of the outside covers is that – for a western audience with binding to the left – the head directions should be anticlockwise to the page.

09 headirections

 

 

Change the background highlight of PDF form fields in a document

During the CreativePro conference in New Orleans, a question was raised during Chad Chelius’ session about Designing forms in InDesign and Acrobat: how to change the background highlight colour of the fill-in forms within Adobe Acrobat. It is possible to change the value of that colour via the Highlight Colour from the preferences panel, but this is an application-wide change, and changing the colour in one form will change the colour for all documents that are opened thereafter.

fig1

This will also only change the colour on the viewer’s PDF, not the PDF itself.

Luckily, it is possible to change the colour via scripting that will affect the current form but leave others alone. Take the following example – in this form, I would like the background to be grey, rather than the default blue:

fig2

Open the PDF that needs the background to change and open the page thumbnails panel. Right click on the page and select the page properties item.

fig3

In the new dialog, go to the Actions tab at the top right, and then add two actions: on Page Open, run a javascript, and on page close, run a javascript.

fig4

Click on the Page Open Run a Javascript selection and click edit, and in the new window, type the following and click OK.

fig4A

Click on the Page Close Run a Javascript selection and click edit, and in the new window, type the following and click OK.

fig4B

Repeat adding the page level scripts for each page in the PDF. This example has one page, but for a four page PDF, this would need to be done on each page of the PDF.

Save and close the PDF. Open the PDF again and the background has now changed to gray.

fig5

The two javascripts work by saving the current application preferences into memory, and then changing the preferences until the document is closed, and then reloads the original preferences.

The background of any PDF form opened will now be gray until the PDF is closed, so close the PDF and open another PDF to confirm that the background returns to normal.

fig6

If you would like colours other than gray, the javascript syntax for the colour can be found here:

A similar technique is shown in this article in the Acrobat Users forums.

 

 

%d bloggers like this: