Batch processing

The Batch menu runs one job over many PDFs at once: stamp a folder of drawings, secure a submittal, slip-sheet a new issue into your working set. Every batch dialog shares the same file list, so once you know it, you know them all.

Expert·11 minute read

You'll learn
How batch file lists work, what each Batch job does, and how to run batches from a script.
Where it lives
The Batch menu, and markupright batch in a terminal.
Before you start
Closed files are changed and saved in place: keep a copy of the originals.

How every batch dialog works

Every Batch dialog starts with a file list, with the document in front already on it:

Page selectors

Each file's page selector says which pages the job touches. The last one you choose becomes the default for new files.

SelectorPages
All PagesEvery page.
Current Page, Current ViewThe page on screen, or the pages in the window. For a closed file, its first page.
Even Pages, Odd PagesEvery second page.
Landscape Pages, Portrait PagesPages wider than they are tall, or the rest.
CustomThe pages you type, such as 1-3, 5, 8- (8- runs to the last page).

Open files and closed files

A batch treats the two kinds of file differently:

Closed files are overwritten

There is no undo for a closed file. Copy the originals, or the whole folder, before you run a batch on them. Headers & Footers asks first (“3 closed files will be overwritten…”, with Overwrite and Back); the other jobs don't.

Skipped files

A file is skipped, with the reason, when it is signed or certified, PDF/A, read-only or missing, or when none of its pages match its selector. So is a closed file that is also open in MarkupRight (“it is open: add it as an open document”), which protects your unsaved changes: add it with Open Files instead. Open a password-protected file first and add it the same way.

Progress and the summary

A progress notice names each file in turn; Cancel stops after the file at hand. The summary then reads, for example, “Flatten Markups: 4 of 5 files done”, followed by each file that was skipped or failed and why. One batch runs at a time.

The Batch menu

The Batch menu: Crop & Page Setup, Rotate Pages and Split Documents; Headers & Footers, Security, Sign & Seal and Apply Stamp; Link; Compare Documents, Overlay Pages and Slip Sheet; OCR; Reduce File Size, Repair PDF and Flatten Markups; Summary and Print.
The Batch menu. Each job opens a dialog with a file list. Grayed items are planned for a later version.
JobWhat it does
Crop & Page Setup…Page Setup changes media size, scale, offset, rotation and alignment; Crop Pages trims each edge.
Rotate Pages…Turns the chosen pages 90° either way, or 180°.
Split Documents…Splits each file by page count, file size or top-level bookmarks into new files, beside it or in one output folder.
Headers & Footers…Adds headers and footers set up in the Header and Footer dialog, or deletes them all.
Security…Applies passwords and permissions. Leaving out every password removes the files' security.
Sign & Seal…Dates, seals and digitally signs each file. See Sign & Seal.
Apply Stamp…Places one stamp on the chosen pages. See Apply a stamp.
LinkAdds hyperlinks wherever chosen terms appear in the page text. See Batch Link.
Compare Documents…Marks the differences between paired pages, in new files. See Pairs of files.
Overlay Pages…Overlays paired pages in two colors, one new file per pair.
Slip Sheet…Puts a new issue's pages into your current files and carries your markups across. See Slip-sheet a new issue.
OCRRecognizes the text of scanned pages so that it can be searched.
Reduce File Size…Makes files smaller. A closed file is rewritten only when the result is smaller.
Repair PDF…Repairs damaged files.
Flatten Markups…Turns the chosen kinds of markup into page content. Keep Allow Markup Recovery on to be able to unflatten them later.
Summary…One Markup Summary report for many files. See Markups List and reports.
Print…Batch Print: many files in one go, with First Page and Last Page to limit each.

Apply a stamp to many files

Batch ▸ Apply Stamp… places one stamp, such as Approved or For Construction, on the chosen pages of every file. The stamps come from your stamp folder; to make your own, see Tool Chest and stamps.

The Apply Stamp dialog: layered.pdf (open) with All Pages in the file list; Add, Remove, Up, Down, Load and Save buttons; the stamp folder's location with Browse; the stamps Approved, Draft, For Construction, Rejected, Reviewed and Revised with a preview of Approved and its date and time; Subject, Size and Modified; Blend Mode Darken, Opacity 100%, Lock, Rotation, Scale, the Anchor grid and X and Y offsets; Edit, OK and Cancel. 1 2 3 4 5 6
Apply Stamp with one open document listed and the Approved stamp chosen.
  1. File list. Each file with its page selector.
  2. List buttons. Build the list, or reuse a saved .bcx.
  3. Stamps. The stamps in the Location folder; Browse... picks another folder.
  4. Preview. The chosen stamp with its Subject, Size and Modified date. Fields such as &[Date] fill in when the stamp is placed.
  5. Look. Blend Mode, Opacity, Lock, Rotation (in 15° steps) and Scale (in 10% steps).
  6. Position. The Anchor grid picks the spot on the page (the center at first); X and Y move the stamp from there, in points: X to the right, Y up.

To batch-stamp a folder

  1. Choose Batch ▸ Apply Stamp….
  2. Choose Add ▸ Folder... and pick the folder. To stamp only the first page of each file, set each file's selector to Current Page.
  3. Pick the stamp and choose a spot in the Anchor grid, such as top right. If it needs to clear a border, move it with X and Y.
  4. Choose OK.

    Each file is stamped. Closed files are saved in place, and the summary lists any that were skipped.

Edit... opens the chosen stamp in the stamp editor, but closes this dialog and loses the batch, after a warning.

Pairs of files: compare, overlay and slip sheet

Compare Documents…, Overlay Pages… and Slip Sheet… pair each page of your current files with the page that replaces it in the revised files. Each is a short wizard:

The first page of Batch Slip Sheet: Current Documents with layered.pdf (open) and All Pages, Revised Documents with no files yet, each with Add, Remove, Up, Down, Load and Save; Match Pages By File Name and Page Index; Save Batch and Load Batch; Match and Cancel. 1 2 3 4 5
Two file lists, then how to pair their pages.
  1. Current Documents. The files you have now.
  2. Revised Documents. The new issue. Images and text files are converted to PDF.
  3. Match Pages By. How pages are paired (below).
  4. Save Batch... and Load Batch... Keep both lists and the matching in one .bcx.
  5. Match. Pairs the pages and goes on to check them.
Match Pages ByPairs a current page with the revised page that has…
File Name and Page IndexThe same file name and the same position: page 1 of M-101.pdf with page 1 of the new M-101.pdf.
File Name and Page LabelThe same page label, such as M-101, whatever the files are called. Best when the new issue arrives as one combined PDF.
Manual CorrelationNothing: you pair the pages yourself.

The next page lists the Matched Pages. A red Conflict means a page matches more than one: choose one under Use:, or Leave Out. Remove drops a pair; drag a revised file onto another row to re-pair it. On Unmatched Pages, click a current page, then a revised one, to pair them. OK stays grayed until every conflict is settled.

Slip-sheet a new issue

Slip sheeting puts each revised page into your current files, in front of or in place of the page it supersedes, and carries your markups across. Your current files change; the revised files don't. The options are on the pairs page:

To slip-sheet a new issue

  1. Choose Batch ▸ Slip Sheet…. Under Current Documents, add your working files; under Revised Documents, add the new issue.
  2. Set Match Pages By to File Name and Page Label, then choose Match.
  3. Check the pairs and settle any conflicts. Choose Replace Current Pages with Revised Pages, keep Copy Markups from Current Pages to Revised Pages ticked, and choose OK.
  4. If the new issue has sheets that match nothing, choose Extract Pages to save them as new drawings, or Skip.

    The summary counts Slip Sheeted Pages and Markups Copied. Unmatched Pages (Current) counts the sheets the new issue dropped.

  5. Save the documents that were open; closed files are already saved.

Pages Not Recovered counts pages whose flattened markups couldn't be unflattened for copying.

Batch Link adds invisible hyperlinks wherever a search term appears in the page text, across many files at once. The classic use: make every sheet callout such as “M-101” open that sheet.

  1. Choose Batch ▸ Link ▸ New…. On Paths, add the documents and folders (Add Open Files, Add..., Add Folder...) and choose Next.
  2. Choose Page Label (each sheet label links to its page) or Filename (each file name links to its file), then Generate. Settings trims the terms: with First from start and a space as the Filter Character, “M-101 HVAC Plan.pdf” gives the term M-101.
  3. Check the grid: tick the terms to link and edit their Destination, which can be B.pdf, page 3 in B.pdf, place "Lobby" in B.pdf or web https://…. Import... and Export... exchange the list as CSV.
  4. Choose Run.

    “Batch Link Complete” shows the counts; Details lists each file.

Link Options include Whole Words Only and Use relative paths (both on), Overlap behavior for links already there, and Include Appearance Properties to make the links visible. Pages without text are skipped and counted, so run OCR on scans first. Each document takes 10,000 links at first; Create Them makes the rest. Save Config keeps the setup for Link ▸ Open…; Save to Set keeps it in the open Set.

Sign & Seal

Batch ▸ Sign & Seal… dates, seals and digitally signs a batch of files in one run, for example to issue a set for construction. You need a digital ID first: see Security and signatures.

  1. Add the files and choose Next. “Each file is dated, sealed and signed, then saved in place.”
  2. Under Digital Signatures, choose the Type (Digital Signature or Document Certification) and the Digital ID, type its password and choose Log In. Add a Reason if you like.
  3. Choose the Placement: Manual Placement (drag the box on the preview; it goes in the same place on every chosen page) or Signature Field (the files' empty signature fields).
  4. Optional: tick Date to add the date in a date field or a box, and Seal to place a stamp.
  5. Choose Run.

    The summary lists each file as Done, Skipped or Failed.

Close the files first

Sign & Seal skips open documents (“close it first”), because it writes each file as it signs it.

Run batches from the command line

Every Batch job can run without the window, from a terminal, a scheduled task or a build script:

markupright batch <feature> --bcx <list> [options]

Make the list in any batch dialog with Save...; relative paths in a .bcx are read from its folder. On Windows, type markupright-cli instead of markupright: it is installed beside markupright.exe, shows the output in the terminal and waits for the job to finish. If your terminal can't find the program, give its full path; see Command line and AI agents.

# Rotate the listed pages 90°
markupright batch rotate --bcx issue.bcx --degrees 90

# Stamp each file's top right corner with a stamp from your stamp folder
markupright batch stamp --bcx issue.bcx --stamp ~/Documents/MarkupRight/Stamps/Approved.pdf --anchor top_right

# Secure each file with a saved security preset; set MR_PW first,
# because passwords never go on the command line
markupright batch security --bcx issue.bcx --preset Issue --master-password-env MR_PW

# Slip-sheet a paired list, replacing pages and copying markups
markupright batch slip-sheet --bcx slip.bcx --replace --copy-markups

# Compare a paired list into a folder
markupright batch compare --bcx slip.bcx --out compare-results

The features are rotate, split, headers, remove-headers, security, remove-security, sign-seal, ocr, reduce, flatten, repair, link, slip-sheet, compare, overlay, stamp, page-setup, summary and print. A missing or wrong option prints the usage. Passwords come only from environment variables (the -env options), so they never land in your shell history.

Each file gets one line of output: done, skipped with the reason, or failed with the reason. The exit code tells a script how it went:

Exit codeMeaning
0The run finished and no file failed. Skipped files are listed but don't count as failures.
1At least one file failed.
2The command was wrong; the usage is printed.
3MarkupRight is in viewer mode, so batch work is turned off.

For power users Expert

<markupright-batch version="1" pairing="label">
  <file path="issue1/M-101.pdf" pages="all"/>
  <file path="issue2/M-101.pdf" pages="all" list="revised"/>
</markupright-batch>