Sub topic 9
Transparency, flattening and why X-4 differs
This chapter assumes you can export a PDF from a layout application, that you know what an output intent is (covered earlier in this tutorial), and that you can read basic PDF properties in Acrobat or on the command line. It explains what transparency is inside a PDF, what flattening does to it, and how that decides whether you choose PDF/X-4 or an older PDF/X version.
What counts as transparency
Transparency is any effect where an object's appearance depends on what lies beneath it. Common sources in layout files:
- Drop shadows, inner and outer glows, and feathered edges.
- Opacity set below 100% on objects, strokes, fills or text.
- Blend modes such as Multiply, Screen or Overlay.
- Placed images with soft masks or alpha channels, such as a PNG or a Photoshop file with a cut-out background.
- Native Photoshop or Illustrator files placed with transparent areas.
Designers add transparency without noticing. A layout with one soft shadow under a headline contains transparency on every page that has that headline.
How a PDF stores transparency
PDF 1.4 added a transparency model. Objects can carry an opacity value, a blend mode and a soft mask. A viewer that understands PDF 1.4 or later composites the objects when it draws the page. The file keeps the original objects as separate, editable layers of drawing instructions.
Older printing systems, especially RIPs (raster image processors) built around PDF 1.3 or PostScript, cannot composite this way. They need every page described as opaque shapes, with the transparency already resolved.
What flattening does
Flattening converts live transparency into opaque artwork. The flattener finds the places where transparent objects overlap and replaces them with simpler objects that look the same without needing compositing.
For each overlap region it chooses between two methods:
- Vector. It splits shapes into smaller opaque pieces that carry the blended color. Text and line art stay sharp.
- Raster. It turns the region into a bitmap at a set resolution. Soft shadows and blends usually end up here.
A flattener preset controls the balance. The main settings are:
| Setting | Typical high-quality value | Effect |
|---|---|---|
| Raster/vector balance | 100 (favor vector) | Higher keeps more areas as vector. |
| Line art and text resolution | 1200 ppi | Resolution for rasterized sharp edges. |
| Gradient and mesh resolution | 300 ppi | Resolution for rasterized soft areas. |
| Convert all text to outlines | Off, unless needed | Avoids changed text weight. |
| Convert all strokes to outlines | Off, unless needed | Avoids changed line weight. |
In InDesign the built-in presets are High Resolution, Medium Resolution and Low Resolution. Use High Resolution for press work. Low Resolution is for desktop printers and will visibly soften text and line art that touch a transparent effect.
What goes wrong when you flatten
Flattening is a one-way operation, and it has known side effects.
- Stitching. When a shape is split into pieces that are partly vector and partly raster, a faint seam can appear where the two meet. This depends on the RIP and shows up mostly on screen-based proofs and some imagesetters.
- Weight changes. Text or thin strokes that overlap a rasterized region can look slightly heavier or lighter than neighboring text.
- Color shifts. Flattening happens in a blend color space. If your document blends in RGB but outputs to CMYK, results can differ from what you saw on screen.
- Spot colors. A spot color that takes part in a transparent blend can be converted to its CMYK equivalent. The plate for that spot may then come out empty or incomplete.
- Overprint. Overprint settings and transparency interact. A flattened area can lose the overprint behavior you set.
- File size. Large rasterized regions at 300 to 1200 ppi grow the PDF.
Once you save a flattened PDF, you cannot recover the live effects. Always keep the layered source file and export a fresh PDF after each edit.
Why PDF/X-4 differs
The PDF/X versions differ most on this point.
| Standard | Based on PDF | Transparency | Color |
|---|---|---|---|
| PDF/X-1a | 1.3 | Not allowed. Must be flattened before or during export. | CMYK and spot only. |
| PDF/X-3 | 1.3 (2002) or 1.4 (2003) | Not allowed. Must be flattened. | CMYK, spot, and ICC-based or Lab color. |
| PDF/X-4 | 1.6 | Allowed live. | CMYK, spot, ICC-based and RGB with an output intent. |
PDF/X-4 permits live transparency. The exporter writes the transparent objects into the file unchanged, and the printer's RIP does the compositing at output time. That brings three practical advantages.
- No export-time rasterization. Text and line art stay vector, and you avoid stitching and weight changes caused by your exporter.
- A smaller, cleaner file, because the file does not hold large rasterized replacements.
- The printer can see and edit the real objects if a late fix is needed.
PDF/X-4 also allows optional content (layers) and ICC-based color kept in its source space, with the output intent defining the target press condition. The variant PDF/X-4p references an external ICC profile instead of embedding it, which is only useful when printer and designer agree on the profile in advance.
X-4 shifts responsibility for the final flattening to the printer's RIP. If the RIP is old, it may flatten badly or fail. Ask the printer which versions they accept before choosing.
Setting the blend color space
Before flattening or exporting live transparency, set the blend color space. This is the color space in which the exporter or RIP computes the blended result.
- For a CMYK press job, use a CMYK blend space. Colors you see in the layout then match the colors that print.
- An RGB blend space can make a blend look brighter on screen, then change when it converts to CMYK at the end.
- In InDesign, set it under Edit > Transparency Blend Space. Choose Document CMYK for CMYK jobs.
Match the blend space to the output intent. If the intent is a CMYK press profile, a CMYK blend space avoids a second conversion.
Finding transparency in a file
Preflight tools report transparency under a name such as "Contains transparency" or "Transparency used". In a PDF/X-1a or X-3 profile this is an error. In a PDF/X-4 profile it is allowed.
You can also check on the command line. pdfinfo shows the PDF version, which tells you whether the file could contain live transparency at all. A file in PDF 1.3 cannot.
pdfinfo job.pdf | grep -i "PDF version"pdfimages -list shows soft masks as separate entries with the type smask. These are the alpha channels behind transparent images.
pdfimages -list job.pdfA PDF 1.6 file with smask entries holds live transparency. That is fine for X-4 and a reason to re-export if the printer asked for X-1a.
The command line cannot prove that a file is flattened, because opacity values are inside the page content. Use Acrobat's Preflight or Output Preview for the final check.
Fixing transparency problems
When a preflight run flags transparency or the printer rejects a file, work through these steps.
- Confirm the required version with the printer. If X-4 is accepted, export X-4 and stop flattening.
- If a flattened version is required, pick the High Resolution flattener preset and export from the source.
- Check the blend color space and set it to match the output intent.
- Look for placed Photoshop or Illustrator files with transparency or hidden layers, and flatten those in their own application only if you need to.
- Zoom to 400% and above in Acrobat around every shadow and glow. Look for seams, jagged edges or text that looks bolder than its neighbors.
- Use Output Preview in Acrobat to view each separation. Confirm that spot colors still print on their own plate and that black text did not turn into a four-color mix.
- Re-run the preflight profile.
If stitching shows up, you have three common remedies: raise the raster/vector balance, move the shadow to its own object that does not overlap text, or replace the live effect with a pre-rendered image saved from Photoshop at the right resolution and color mode.
Exercise
A printer's specification asks for PDF/X-1a:2001. Your InDesign layout has drop shadows under several headlines. What do you do on export, and which two things do you check afterwards?
Show answer
Export from the layered source as PDF/X-1a:2001 with the High Resolution flattener preset, and set the transparency blend space to CMYK to match the output intent. Afterwards, zoom in around each shadow to look for stitching and text weight changes, and use Output Preview to confirm that spot colors still sit on their own plates and black text has not become a four-color mix.
Exercise
Why does PDF/X-4 need less flattening work from you than PDF/X-3, and what risk does it add?
Show answer
PDF/X-4 is based on PDF 1.6 and allows live transparency, so the exporter does not rasterize or split objects and the RIP composites them at output. The risk is that an old RIP may handle live transparency badly, so you must confirm that the printer accepts X-4.