Advertisements

Document Presets vs New Page Sizes.xml: Adding page sizes

A recent forum post concerning adding page sizes to InDesign’s Document Setup highlighted two different ways to accomplish this task. This article will explain both methods, and the strengths and weaknesses of each method as while they both perform similar tasks, they are not the same and can complement each other.

First method: Saved Presets

Before beginning, it is worth noting that when making a new document in InDesign, users will be presented with one of two different interfaces. In the latest version of Creative Cloud, the default user interface looks like this:

There is also the Legacy interface that long-time InDesign users will be more familiar with:

To choose to use the Legacy user interface, go to the InDesign Preferences (Command+K for Mac, Control+K for Windows) and check the Use Legacy “New Document” Dialog checkbox on. Alternatively if the new default look is preferred, uncheck the dialog box.

Making a saved preset in the default “New Document” dialog

Go to the New Document dialog box (Command+N for Mac, Control+N for Windows) to show the user interface.

Once open, go to the right hand side of the dialog box and enter the measurements, orientation and other desired options.

To save the preset, click on the icon to the right of the Preset Details heading and a new prompt will appear to save the preset.

Once named and saved, the preset can now be accessed in the Saved portion of the user interface.

Be careful in this window as deleting a saved preset will remove it without prompting for a warning.

Making a saved preset in the Legacy dialog

Go to the New Document dialog box (Command+N for Mac, Control+N for Windows) to show the user interface.

Once open, enter the measurements, orientation and other desired options. To save the preset, click on the icon to the right of Document Preset dropdown and a prompt will appear to save the preset.

Once named and saved, the preset can now be accessed Document Preset dropdown of the user interface.

The preset can be deleted by clicking the trashcan in the top right corner of the dialog box, but unlike the default interface, a warning dialog is presented.

Managing saved presets

Regardless of the interface used to make the preset, they are managed by going to the File Menu, Document Presets, then Define. This will present a new dialog box:

From this dialog box, it is possible to save presets so that they can be shared with others as a .dcst file; load preset .dcst files that others have created, as well as make new presets, edit or delete existing presets. Again, a warning will be presented if a preset is to be deleted.

Note though that when making a new preset or editing an existing preset that the Legacy dialog box is used.

Second method: New Page Sizes.xml

This other method calls upon an XML file that InDesign references for custom-made sizes. On a Mac, it can be found here:

/Users/your_own_username/Library/Preferences/Adobe
InDesign/your_version_of_indesign/language_installed/Page Sizes/New Page Sizes.xml

e.g.
/Users/JohnCitizen/Library/Preferences/Adobe InDesign/Version 14.0/en_US/Page Sizes/New Page Sizes.xml

This file can be edited to add custom sizes. By default, the XML file looks like this:

The syntax to create a new page size looks like this:

The <Name> tags refer to the name of the page size that the user will see in the New Document dialogs. The <Width> and <Height> tags refer to the measurements and these measurements are in points. Each page name, width and height are wrapped in their own <PageSize> tag.

For this example, I’ve taken in all A, B, C, D paper sizes as well as some imperial sizes and saved the XML file.

Anyone interesting in having this file can do so by downloading it here.

When I now open the default New Document interface, the new options now appear in the Print portion:

And here is what it looks like in the Legacy user interface:

Distinctions between Document Presets and New Page Sizes.xml

  • The default user interface will allow users to add Document Titles to new documents and also allow users to see page sizes at a glance, as opposed to the Legacy interface where page size measurements are only visible once a preset or page size is selected from the dropdown.
  • Selecting Create Alternate Layout from the Pages panel will show a new dialog box that contains pages added via the New Page Sizes.xml file. These page sizes will be able to be selected from the dropdown, while page sizes made via the saved presets will be unavailable.
  • The New Page Sizes.xml will only add names of page sizes, widths and heights; while adding presets stores more information such as total number of pages, page orientation, page size (including pages that can be accessed from the New Page Sizes.xml), amount of columns, margin dimensions, bleed and slug settings, and whether to have facing pages or primary text frames.
Advertisements

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.

Using character styles for dot leaders

The topic of tabs and leaders has been covered on InDesignSecrets before in a 6-part series but it’s worth sharing this particular tip as it saves me plenty of heartache in my day-to-day role.

Usual technique

The usual practice of creating a dotted line (usually for either leading up to a page number in a table of contents OR preparing a space for users to add information to a handwritten form) is often accomplished by the tabs feature. For example:

This is achieved by making a paragraph style that has a tab stop that has been right-aligned to the end of the text frame, and in the leader text field of the tab dialog box, a period has been entered, and it is this period that repeats to generate the dotted line.

Issues with this technique

However, I find this is quite restrictive in terms of:

My preferred technique

Instead, I prefer to make a character style called “dotted line” giving it the dotted line appearance that I’m after in the underline panel of the character style dialog box.

If more control is required, I can also prepare a stroke style specifying the dot style and frequency that the dots appear.

I can then either apply the character style manually to the areas requiring the dotted lines, or I can make a paragraph style that calls the dotted line character style using a GREP style that looks for tab spaces.

Bonus tip

Note that my GREP style is looking for \t|~y rather than just \t – the ~y represents a right indent tab. For dot leaders that need to go to text at the end of a text-frame, I prefer to use a right indent tab instead of setting a right align tab, because if the text frame changes width and I want the right aligned item to remain right aligned to the text frame, I don’t have to adjust the tab stop of the right align tab.

To insert a right indent tab, press SHIFT+TAB. This will work anywhere in a text frame except within a table where it will highlight the previous cell. To apply a right indent tab inside a table, either insert one via right-clicking to call upon the contextual menu, then navigate to Insert Special Characters, Other, then Right Indent Tab.

Otherwise, it can be called upon by opening the quick-apply menu via COMMAND+RETURN on Mac (or CONTROL+RETURN on Windows) and type either Right Indent Tab (or, if you’re really lazy – nt tab as highlighted in pink in the figure below).

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.

%d bloggers like this: