Overview
Import Highlights from CSV reads a CSV file and applies each row to this PDF: when a matching markup annotation already exists on the named page it is updated (comment, author and colour), and when none matches a new annotation is created from the row's geometry. It is the other half of Export Highlights to CSV: highlights can be exported from one document, edited or reviewed in a spreadsheet, and applied back — or applied to another copy of the document.
How to use
- Open the PDF the highlights should be applied to.
- Go to Plug-Ins > Highlights > Import Highlights from CSV.
- Choose the CSV file and click Open. If the document restricts editing you are asked for its permissions password first.
- A message reports how many annotations were updated and created, with a breakdown of any skipped rows.
What the CSV must contain
The first line is a header row naming the columns. Only Page and Text are required — a file produced by Export Highlights to CSV can be imported unchanged, and the other columns are applied when present.
| Column | Description |
|---|---|
| Page | Required. The 1-based page number. Rows naming a page this document does not have are skipped. |
| Text | Required. The highlighted text. Used to find the matching annotation on the page when the row has no Rect. |
| Rect | Optional. The annotation rectangle as four numbers — left, bottom, right, top in PDF points — separated by semicolons, tabs or spaces. When present it is the match key (within half a point), and it provides the geometry for a newly created annotation. |
| QuadPoints | Optional. The exact quadrilaterals to mark (eight numbers per quad, semicolon separated), used when creating a new annotation. Without it, a created annotation marks the whole Rect. |
| Comment, Author, Color, Opacity | Optional. Applied to the matched or created annotation: the popup note text, the
author shown in the comments pane, the colour as #RRGGBB, and the
opacity as 0.5 or 50%. A blank cell keeps the value the
annotation already has. A matched row that changes nothing is counted as
Unchanged, not Updated. |
| Created | Optional. The creation date, kept on annotations the import creates. |
| Type | Optional. The markup kind — Highlight, Underline,
StrikeOut or Squiggly. Restricts matching and sets the kind
of a created annotation (default Highlight). |
Column names are matched without regard to case. Comma-separated and tab-separated files are both accepted, and a UTF-8 byte order mark at the start of the file is ignored. Cells may be quoted; quoted comments may span several lines.
Note
The finishing message accounts for every row: updated, created, not found (no match and no geometry to create from), and skipped — with a per-reason breakdown and the first skipped row quoted so a malformed file is easy to diagnose. Remember to save the document to keep the imported highlights.