Overview
Import Links from Text reads a CSV file written by Export Links to Text and creates the links it describes on the active PDF. Use it to copy a set of links onto another document, or to apply changes made in a spreadsheet.
A row whose page and rectangle match a link already on that page (to within half a point) updates that link instead of adding a second one on top, so importing an edited export back into the same PDF does not duplicate its links. The completion message reports how many links were new and how many were updated.
How to use
- Open the PDF the links should be added to.
- Go to Plug-Ins > Links > Import Links from Text.
- Choose the CSV file and click Open.
- A message reports how many links were imported, how many were new and how many updated an existing link, and why any rows were skipped.
What the file must contain
The columns are the ones Export Links to Text writes, in the same order and with no header row. The safest way to build a file is to export from one document and edit that.
A line is skipped, rather than guessed at, when:
- it has fewer than the eleven columns every line needs;
- its page number is not a page this document has;
- its border width, flags or colour is not a whole number;
- its rectangle cannot be read as four numbers;
- it names no action, or an action that cannot be built.
The closing message lists skipped rows by reason: too few fields, a page outside this document, unreadable appearance values or rectangle, no action, or an action that cannot be built. A file with no link rows at all is reported as such, and nothing is imported.
Warning
Each row adds a link, except where a link already sits on the same page with the same rectangle (to within half a point): that link’s action and appearance are replaced by the row’s. Importing the same file twice therefore does not stack duplicates. To replace a document’s links completely, use Delete Links first.