Export many PDFs at once… plus security

A recent question on Reddit’s InDesign subreddit was whether two PDFs could be exported at the same time from the same document, but have two different properties – one with trims and one without. The answer is yes, but via a custom script written for the task.

I use such a script on a daily basis so that I can prepare a PDF for client proofing via email; and a separate PDF that has trim and crops that is sent directly to a hot-folder that prints it for me.

I’d submitted my script as a solution (that can be downloaded from the scripts page), but then realised that this concept was not a new idea. Ariel Walden over at ID-Extras had already written a similar script within a blog post of his own.

Similarly, Peter Kahrel’s Batch Convert script can perform the same task, with the added advantage that it can also do this for all open InDesign documents;

Or if no documents are open, a specified folder (and subfolders if desired) of InDesign files.

Can’t make these secure

One feature that all three scripts have in common is that the exports are based on the PDF presets available on the user’s machine. One feature that can’t be added to a PDF preset is security – this can only be done when a request to export the document is made, as security settings aren’t saved into PDF presets.

This is a problem if there are lots of documents that need to be exported with security settings as it requires the user to enter the security details each time a PDF is exported.

I’ve made an additional script

For this purpose, I thought I would make a script that not only makes several PDFs, but can also add password security to one version. The script can be downloaded from the scripts page.

When the script is run, it will generate two PDFs using different PDF export settings, but one will have the suffix “_secure” added to the filename, and a dialog box will appear once the export is finished:

Adjustability

The script can also be adjusted by opening the script in any text editing application and making the necessary changes, such as.

Use the same password for every document

Look for the line

    openDocumentPassword = myPassOpen; // requires a password to open the document

and change the myPassOpen to the desired password in quotations. For example:

    openDocumentPassword = "OpenSesame"; // requires a password to open the document

Similarly, do the same thing for the line underneath, making sure that the open password and edit password are not the same.

    changeSecurityPassword = myPassWrite; // requires a password to change the document

change to

    changeSecurityPassword = "EditSesame"; // requires a password to change the document

then search for the lines

dialog.show();
//alert("Done");

and swap the forward slashes in the lines around so that the lines now read like this.

//dialog.show();
alert("Done");

Only require a password to edit the document

Look for the following line:

    openDocumentPassword = myPassOpen; // requires a password to open the document

and add two forward slashes to the start of the line.

//    openDocumentPassword = myPassOpen; // requires a password to open the document

Adding two forward slashes to a line in a javascript tells the script to ignore the rest of the line and go to the next line of code.

Don’t show the “done” message

The default script has a dialog at the end for showing what the opening and editing passwords are, but if you want to edit the script so it makes a PDF that applies security to edit the document but does not provide the password (e.g. for the purpose of handing PDFs over to parties who may seek to deconstruct them in other applications) then make the adjustment mentioned a moment ago to restrict passwording to editing only, and then search for the lines

dialog.show();
//alert("Done");

and swap the forward slashes in the lines around so that the lines now read like this.

//dialog.show();
alert("Done");

Add more PDF exports

Look for the line

app.activeDocument.exportFile(ExportFormat.pdfType, File(resultsFolder + "/" + app.activeDocument.name.split(".indd")[0] + ".pdf"), false, "[High Quality Print]");

make a copy of the line and make the appropriate changes:

  • Replace the “[High Quality Print]” to the desired PDF preset exactly as it is written in the PDF export dialog box and put it in quotes. For example, if your PDF preset is called My Export then type “My Export”
  • Replace the “.pdf” with a suffix that denotes that this is an additional PDF. For example, if the pdf is a high res print, perhaps replace this with “_hi-res.pdf” so that the resulting file has _hi-res.pdf at the end of its filename.

Otherwise if you are after specific changes to the script to suit your needs, contact me via the contact page.

Things to know about the script

Opening and editing passwords must be different

One condition of preparing a secure PDF from Adobe InDesign is that the password required to open the PDF must be different to the password to edit the PDF, so if editing the script to replace the randomly generated password to a known one, the opening and editing passwords must be different. If the passwords are the same, the PDF will be made without security.

PDF Standard in the preset must be set to “None”

PDFs that use a PDFX standards can’t have security applied to them as the security panel of the PDF export box is greyed out, preventing security to be applied. The standards dropdown box in the desired PDF preset must be set to None.

Only password security is applied

When exporting a PDF from InDesign, only password security can be applied, unlike Adobe Acrobat’s choices of security that it can offer (as shown below).

While password security may deter or prevent a layperson from editing the PDF, the security can be broken through some effort. Several websites offer services where users can drag and drop a PDF to the site, and within moments the PDF will have the PDF password removed.

Similarly, there are desktop applications that can also be purchased to remove the security (as one of their many features), such as PDFsam Visual.

Outlining the problem… text outlining

From time to time, I will prepare PDF artwork for third party providers and then note that their specifications indicate “Convert all text to outlines” (also known as converting to curves or paths). But why do some third parties recommend this practice?

The PDF is opened in software other than Acrobat

For commercial printers, PDFs are usually imported into Raster Image Processing (RIP) software that will impose and trap the artwork for their printing methods. However, not all providers work this way and may need to open the PDF in applications other than Adobe Acrobat. For example, a third party that prepares cutting formes may open the file in Corel Draw or a CAD application that supports its CNC software.

This means that as the file opens, the application may ask for fonts not available to the third party.

This can be exacerbated if the PDF is opened not only in a different application than Adobe Acrobat, but also a different alphabet and writing system. Converting the type to outlines maintains the appearance of the type without requiring the font to be present.

Other reasons that text is converted to outlines

So special effects can be applied

InDesign, Illustrator and Photoshop can apply interesting special effects to vector objects, but not all of those effects can be applied to live type. The solution is to convert the type to outlines, thus converting the type to vector shapes that can have the desired effect applied.

To prevent editing by third parties

Limited editing is possible within PDFs using either Acrobat’s own editing tools or using plugins such as Enfocus Pitstop Professional. These tools can allow last minute alterations to text so long as the text is type and not converted to outlines.

Locking the PDF with password protection isn’t an option as this can prevent the file from being placed into layout software or RIP software for output, so the password is then required to unlock the file. PDF password protection is also somewhat breakable, with many websites offering services where PDFs can be uploaded, and then unlocked and then downloaded without the password protection. There are also PDF editing and viewing applications such as PDF Sam that allow for decryption of PDFs.

Even without the Enfocus Pitstop plug-in, it is possible to open PDFs in Adobe Illustrator or Affinity Publisher and then – if the fonts are available – make the necessary alterations… though converting type to outlines will prevent this.

To circumvent the font EULA

A client may have acquired a font that has allowed for screen use only and prohibits embedding in a PDF, preventing the font from appearing correctly in the PDF. A way around this is to convert the type to outlines in the native application prior to PDF export, though it is worth noting that the End User Licence Agreement (EULA) of the font may forbid this workaround, so it is worth reading the font EULA.

That doesn’t mean it should be done!

There are issues that arise from converting type to outlines. Dov Isaacs – Principal Scientist for Adobe Systems – has a brilliant PDF that details this (and much more) but the basic takeaways concerning type to outlines are:

  • Increased filesize that takes forever to download or view onscreen
  • Smaller typefaces do not render as well
  • May potentially breach the font’s EULA

In addition, there are other issues such as:

  • Potential issues with fonts where type overlaps itself (it can knock out holes in the joins)
  • If the conversion from type to outlines has been done in the native application and then accidentally saved and closed, this means the type will no longer be live in the native application.
  • It can prevent or hinder minor type alterations being made in a PDF submitted for print.
  • Text (as outlines) that has special effects applied (as described earlier) may not always be able to have the same effect applied to live type. This can create issues with variable data campaigns where the effect needs to be applied to a text variable.
  • It can make it difficult to identify the font used, as the font’s information is no longer in the PDF and the only other way to identify the font is visually or with apps such as what the font, adobe capture, or identifont.
  • The conversion is usually a one-way conversion. There is a fantastic Adobe Illustrator plug-in from Astute Graphics called Vector First Aid 2 that – in some circumstances – can convert outlines back to type, but it isn’t a magic bullet (though definitely worth a look).

If your hand is forced…

In a perfect world, I’d only deal with providers that fully supported PDF/X-4 files. Unfortunately, not all providers do, and occasionally our hands will be forced into providing PDFs specifically as the provider has requested, which may mean converting text to outlines. Rather than doing this in the native application (e.g. InDesign or Illustrator) there is a great way to quickly convert all type to outlines using an Adobe Acrobat Preflight that is detailed over at CreativePro.

Why are food labels hard to read?

During an overseas holiday, I was asked by a fellow traveller what I did for a living. Because the term “prepress operator” is esoteric, my response was to say that I make food labelling and other printing. However, I was caught quite off-guard by the traveller’s response, which was “why do you have to make labels so darn hard to read?”.

That moment has stuck with me for some time now, and in this article I’d like to answer that traveller’s question comprehensively in an Australian setting.

In short: Limited real-estate vs too much information

That’s it in a nutshell – labels tend to be small in size, usually because the product that they contain is small in volume. Despite the small size, there’s also a lot of information to include within that size.

Details that have to be displayed by law

As a disclaimer, I am not a lawyer and this is not constituting legal advice on all specifications for a label.

If retailing food, the code developed by Food Standards Australia New Zealand (FSANZ) details what should appear on food labelling. More information can be found on their site, but in short a food label should have:

  • A Nutritional Information Panel;
  • The ingredients and additives by ingoing weight, and in some circumstances the percentage of ingredients. For example, if the label is identified as strawberry jam in the branding, then the percentage of strawberries actually used in the product has to be given.
  • Allergen information
  • Directions for use or storage
  • What the food is (e.g. is it strawberry jam, cookies, kombucha, etc)
  • The contact address of the manufacturer
  • The measurement of the weight or volume of the product
  • Country of Origin label

Some information can be presented on the label but may be presented elsewhere on the container, such as:

  • Batch or run of the product being produced
  • Best before or Use-By dates

In addition, the position of where the measurement of the weight or volume of the product can appear on the label is rather rigid and structured.

Country of Origin

From 1 July 2018, food products sold in Australia must display a Country of Origin label. This label has a specific appearance that must be adhered to, along with guidelines of how the label must be phrased.

An example of the Country of Origin label

This is enforceable at law by the Australian Competition and Consumer Commission (ACCC) – the Federal Government’s consumer watchdog which can – and does – give hefty fines to corporations and individuals for breaches of the Australian Consumer Law (ACL).

There is an online generator to create such labels, so having to maintain an array of assets for this task isn’t required – simply generate a label as and when they are needed.

Details that may also be required

Barcodes

Note that in the above code, that a barcode isn’t required by law. However, if the product is to be stocked on a large scale through distributors in a logistics chain, then it will usually need a barcode. In Australia this will usually be an EAN-13 barcode but in North America a UPC barcode is more likely.

Barcodes also have limited scaling, and GS1 (a provider of barcodes and related logistic products and services) indicates that a barcode should be placed at no less than 80% of its recommended size.

Specifications from GS1 relating to EAN-13 barcodes at 100% size

In GS1’s more detailed instructions on their website, they also recommend specific locations and orientations for the barcode, so can’t just go anywhere at any size.

These recommendations sound strict, but are done with the best of intentions so that a barcode will scan first time, every time, regardless of where the product was purchased. Remember, it’s a retailer’s aim to get that product from their shelf to your pantry or refrigerator with the least amount of fuss.

The size of the barcode can also be influenced by the retail chain that is selling the product and may recommend not proportionally scaling the barcode at all but leaving it at 100% size. It is best to check with the retail chain’s specifications first.

Container Deposit Scheme

As at the time of writing, all states and territories in Australia (except for Victoria and Tasmania) have some form of container deposit scheme, usually for soft drink containers. These schemes encourage consumers to return the containers to a collection facility in exchange for a refund for each item returned.

There are no national guidelines as to how the deposit notification should appear, so check with the relevant authority in each state.

Three items commonly seen on flavoured milk cartons (from top clockwise): The Country of Origin label; The Australasian Recycling Label; and The Container Deposit Scheme.

Alcoholic drinks

While a Nutrition Information Panel is not required for alcoholic drinks, other information is required, such as:

  • Alcoholic content (ALC/VOL)
  • Standard drinks statement. This can either be a written statement i.e. CONTAINS APPROX. X.X STANDARD DRINKS or in the form of a graphic with its own requirements.
  • As of 31 July 2020 and to be phased in over three years – a pregnancy warning label.
Pregnancy warning label, phasing in began on 31 July 2020.

Additional voluntary icons or graphics for marketing purposes

Health star rating

This is a voluntary system to aid customers in making healthier choices.

Third party endorsements

Endorsements from third parties that require an audit trail to guarantee the claims made about the product or its packaging, such as:

  • Organic certification, such as NASAA or Australia Certified Organic to certify that a product is organic;
  • Forest Stewardship Council (FSC) to certify the product or its packaging is from a sustainable source;
  • Cultural preparation certifications such as Halal or Kosher.

These types of logos won’t use a generic logo, but will usually contain a unique identifier such as a number that can be tied to the particular supplier.

These logos usually have strict stylesheets that have to be adhered to such as size, color, position in relation to other elements etc, and these guidelines have to be taken into consideration when juxtaposing the artwork for the label. The third party (or its auditing agency) usually requests to see the artwork prior to approval for print to ensure that the logo is used appropriately and within its guidelines.

Australasian Recycling Label

This is a private initiative to reduce landfill by informing consumers how the packaging can be disposed of once the product is used. The logos aren’t in the public domain and permission must be sought for use of this artwork.

And of course, our own branding

With all of the other details now on the label as required, it’s time to add the branding and design to the label… if it will fit!

This is just for food!

The details listed in this article are only describing what goes on a food label in Australia and aren’t exhaustive – this article doesn’t even mention regulations that concern pharmaceuticals or industrial products that may contain harmful chemicals.

Don’t even try being creative for cigarettes

While cigarette cartons aren’t labels, it is worth mentioning this as it is currently unique to Australia. Since 1 December 2012, any tobacco product (including labels on loose tobacco such as roll your own cigarettes) in Australia must follow the plain packaging guide, which – on a regular pack of 25 cigarettes – features such marketing gems as:

  • The brand and variant must be in Lucida Sans font in PANTONE Cool Gray 2C;
  • The pack surface must be in PANTONE 448C (a greenish-brown color);
  • A warning statement and graphic that covers at least 75% of the front surface without spaces separating the statement or graphic; and 90% of the back surface.

And this is just for Australia!

This article has focused on Australian food labels as they are the ones I am most familiar with and see on a daily basis at work. However, after spending time living in Canada, I recall seeing products that were sold nationwide (with exceptions of course) having to be in both English and French – good luck with getting all that information to fit now!

Can’t the label be bigger?

That can certainly provide more real-estate for the information to be displayed, but the size is often determined by:

  • Price of label production. Larger labels usually cost more than smaller labels that have otherwise identical print specifications such as stock, inks and embellishments.
  • Size of the package itself. An A4 page simply won’t fit on a cylinder that holds 100ml of a product;
  • How the labels are applied. For example, if machine applied, there may be specifications that a larger label can’t fulfill that a smaller label can fulfill.
  • Marketing. It may be more desirable for a consumer to see more of the product in the glass jar as opposed to a label that would obscure the contents.

Your thoughts

I hope this article has explained why labels can be hard to read – put simply it is to cram all of the required information into a tiny space. I’ve tried to cover as much as I could without trying to encompass all labelling, but no doubt there are items that I’ve missed or aren’t applicable in your part of the world. Leave a comment below on anything I’ve missed or if there is anything specific to labels in your country.

Reacting to bad Redacting

In early January 2019, a high profile case of “Redaction Fail” made the headlines when it was revealed that the redacted material could still be read if copied and pasted into a word processor. My initial reaction was of concern, because my first thought was that the redaction feature in Adobe Acrobat had a serious drawback. However, this was soon put to rest once I viewed the actual document in question, and realised that Acrobat’s redaction feature had not been used, but another low-tech method was used instead.

Low-tech method 1: Highlight

In Microsoft Word, it’s easy to change the highlighter colour to black to act as a redaction. Similarly, Adobe InDesign has a similar feature where an underline can be created that is the same colour as the text and adjusting the height of the line to the top of the ascender to the bottom of the descender.

lazy001

Looks great on screen, and looks great on a PDF.

lazy002

Be assured though that this is NOT REDACTED. I know this because I can reveal what was written in several ways:

  • By highlighting the text and copying into any text editor;

lazy003

  • By using an accessibility feature that will allow the line (or page) to be read back

lazy004

  • In Acrobat Professional, using the Edit feature to change the colour of the type

lazy005

  • Editing the PDF with the Enfocus Pitstop plug-in in a similar fashion to the last method, or even remove the redaction itself or view the type under the redaction using the wireframe view.

lazy006

  • By highlighting the text, opening the tags panel and selecting Find Tag from Selection

lazy007

  • By highlighting the text, opening the content panel and looking up the content by its page location

lazy008

  • Via the print production tools in Acrobat Professional, go to the output preview and in the Show portion of the dialog box, select Text from the dropdown

lazy009

(The above method can be circumvented if the redaction character style has a type fill of [None] and the underline coloured [Black]).

To be fair, no security settings had been applied to this test file. If I apply password security so that copying, pasting and accessibility is off, the last three methods can still be employed to see this text, albeit with many options greyed out:

lazy010

 

Low-tech method 2: Redact Font

Fonts (such as the redacted font by David Walsh) give the type a redacted look without the need to create a highlighter-style effect.

lazy011

Again, rest assured that this document is NOT REDACTED.

Park the fact that the copy has now reflowed after the style has been applied, many of the previous methods can still be employed to read this text.

lazy012

Yes, there is also the drastic action of employing this technique, adding security AND converting all text to outlines using a method described over at InDesignSecrets, but doing so will make a PDF that is:

  • Unsearchable and unprintable;
  • Has no accessibility features;
  • Involves manipulating the original artwork, rather than a file that has to have redactions applied.

If you need to redact the file, use Adobe Acrobat’s Redact feature, and make sure to read the instructions to be sure that is being used properly.

lazy013

The instructions on the Adobe Acrobat help site for using this feature are quite useful.

A related redaction warning

If photographs also need to be redacted, note that if unredacted versions of the images exist online, chances are that Google’s Image search or Tineye may be able to find the unredacted originals.

Take the following image that was used on this site two articles ago. I’ve done a basic redaction our faces and run the redacted image through exifpurge to remove any metadata.

lazy014

If I drag and drop this image into Google’s image search, it is able to find the unredacted versions of this photo that are currently online:

lazy015

While this example was a light-hearted example, much more serious examples can be found via ABC Australia’s Media Watch programme.

 

%d bloggers like this: