メインコンテンツへスキップ

ハイパーリンクの更新 - リンクマネージャー Zapier

PDF4me ハイパーリンク注釈の更新 は Zapier 既存のものを検索するアクション PDF テキストによるハイパーリンクまたは URL そして、ドキュメントの残りの部分には手を加えずに、それらを一括で置き換えます。壊れたリンクを修正したり、移行したりするのに使用します。 URLウェブサイトの再構築後、または一連のブランディングを更新した後 PDFs.

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

このアクションが何をするか

PDF4me ハイパーリンク注釈の更新 検索 PDF既存のハイパーリンクを、その表示テキストまたは URL、その後、一致するものを一括で置き換えます。各更新では、テキストまたは URL部分的な値または完全な値を置換し、オプションで検索値を正規表現として扱い、複数のリンクにわたってパターンベースのマッチングを一度に実行します。

Zapの認証方法を教えてください。​

アクセスするには PDF4me ウェブ APIすべてのリクエストには適切な認証情報を含める必要があります。 PDF4me アクション Zapier 有効な接続が必要です PDF4me API キーにより、Zapはハイパーリンクの更新要求を安全に認証できます。

見逃してはならない重要な事実​

検索対象としてテキストまたはURLを選択
各ハイパーリンクの更新では、表示されているリンクテキストまたは基となるテキストのいずれかが検索されます。 URL 値のみを更新し、両方を同時に更新してはいけません。更新が必要なディメンションごとに、個別の手順を追加してください。
空白の現在の値は一致全体を置き換えます
現在の値フィールドを空のままにすると、一致したテキスト全体が置き換えられます。 URL 新しい値で、その一部だけを置き換えるのではなく、全体を置き換える。
式は正規表現マッチングを有効にします
検索値を正規表現として扱うには、[Is Expression] を「はい」に設定します。これは、一連の URL(例えば、パスが異なる古いドメインなど)を、それぞれをリストアップするのではなく、1つのステップで処理します。

パラメータ​

必須: ファイル、検索対象、検索値は必須項目です。ファイル名、現在の値/新しい値フィールド、および式かどうかはオプションです。

パラメータ必須その機能例
FileRequiredThe PDF file containing hyperlinks to update. Map a file, base64 string, or public file URL from a previous step.[PDF File]
File NameOptionalOutput filename for the updated PDF. If not provided, the name is picked from the File field.updated_links.pdf
Search OnRequiredWhether this step searches the hyperlink text or the URL value. Defaults to Text.Text
Search ValueRequiredThe hyperlink text or URL value to search for in the document.http://oldsite.com
Text/URL Current ValueOptionalThe current substring to replace. Leave blank to replace the entire matched value.oldsite.com
Text/URL New ValueOptionalThe new text or URL value to set in place of the match.newsite.com
Is ExpressionOptionalYes evaluates Search Value as a regular expression instead of a literal match. Defaults to No.No
File NameOptionalName of the PDF, including its extension (for example `report.pdf`). If empty, the name is taken from the file.
Number of Input BoxesRequiredNumber of hyperlink updates to define. For each one, Search On, Search Value and Is Expression fields appear. Defaults to 1.1

出力フィールド​

分野タイプ内容物
documentIdTextID PDF4me gives the resulting document.
Error MessageTextError message when PDF4me could not process the file; empty otherwise.
fileAlternateUrlTextAlternative download link of the resulting file, with the file name at the end of the URL.
fileExtensionTextExtension of the resulting file, for example `.pdf`.
fileNameTextName of the resulting file, without extension.
fileUrlTextDownload link of the resulting file. Map it into any later step that needs the file, for example an upload to Google Drive, Dropbox or OneDrive.
fullFileNameTextName of the resulting file, with extension.
jobIdTextID of the PDF4me job that processed the request.
TraceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.

JSON 回答形式

生 JSON アクションからの反応:

{
"File Url": "https://...",
"File Name": "updated_document",
"Full File Name": "updated_document.pdf",
"File Extension": ".pdf",
"documentId": "07386627-184a-44b2-a040-5ea2712a4bc5",
"jobId": "9f1c2e7a-4b7d-4f2a-8c31-0d5b6e9a1f44"
}

ハイパーリンク注釈の更新を設定する方法 Zapier?​

  1. 追加する PDF4me アプリを選択して ハイパーリンク注釈の更新 Zap のアクション イベントとして。
  2. 接続を選択するか、 PDF4me API 鍵)。
  3. 地図 ファイル Zap の前のステップから、ファイル、base64 文字列、またはパブリックな形式で取得します。 URL。
  4. セット 検索対象 に Text または URL記入する 検索値 何を見つけるべきか。
  5. 現在の値を設定するか(または空白のままにして一致する部分全体を置き換える)、新しい値を置換後の値に設定します。
  6. セット 式 に Yes 検索値が正規表現の場合は、ステップをテストします。更新された PDF ファイルとして返されます リンクが更新されました 数える。

典型的な構成​

ワークフローの例Common Zap patterns using Update Hyperlinks Annotation.
予定されているリンク切れのクリーンアップ
  1. スケジュール Zapier トリガーは毎月発行されたものをレビューするために発火する PDFs.
  2. ストレージステップでは、各 PDF GoogleドライブまたはDropboxから。
  3. ハイパーリンクの注釈を更新して、既知の壊れたリンクまたはリダイレクトされたリンクを置き換えます。 URL既知の不良リンクごとに1ステップずつ。
  4. 修正された PDF 以前のバージョンを上書きして、ストレージにアップロードされます。
ウェブサイトの再構築後のドメイン移行
  1. マーケティングチームが新しいサイト構造の稼働開始を確認すると、Zapが起動します。
  2. ループまたはフォーマッタ ステップは、 PDF それは古いドメインを参照しています。
  3. ハイパーリンク注釈の更新検索オン URL式を「はい」にし、古いドメインパターンを新しいドメインパターンに1つのステップで一致させます。
  4. 更新済み PDFはドキュメントライブラリに保存され、検索インデックスが更新されます。
リブランディングに関するマーケティング資料
  1. リブランディングプロジェクトは、すべてのマーケティング活動に対する一括処理をトリガーします。 PDFs.
  2. 複数のハイパーリンク更新注釈の手順は、ドメイン変更、ソーシャルハンドル、連絡先メールリンクテキストの順に実行されます。
  3. それぞれ PDF 同じ一連の手順を経て処理されます。
  4. ブランド名を変更 PDFファイルは更新された資料フォルダにアップロードされ、配布準備が整いました。

実践的なヒント​

Search On decides text vs URL, not both
One step cannot search text and URL simultaneously. Add a separate step for each dimension if you need to update both.
Blank current value replaces everything
If the current value field is left empty, the entire matched hyperlink text or URL is replaced with the new value, not just a substring.
Regex needs Is Expression set to Yes
Search Value is treated as a literal string unless Is Expression is Yes. Forgetting this toggle is the most common reason a regex-style Search Value fails to match.
One step per link pattern, not per link instance
A single Update Hyperlinks Annotation step updates every matching link in the document, you do not need one step per occurrence, only per distinct search pattern.
This action edits links, it does not add them
Update Hyperlinks Annotation only modifies hyperlinks that already exist in the PDF. To insert brand-new links, use the PDF4me Create Hyperlinks in PDF action.
Test with one step before batching many PDFs
Run the Zap against a single sample PDF first to confirm Search On and Search Value match as expected before applying it to a large batch.

チートシート​

分野価値
ActionUpdate Hyperlinks Annotation
App connectionPDF4me API key
Search On optionsText or URL
Blank current valueReplaces the entire matched value
Is ExpressionYes = regex match, No = literal match (default)
Multiple updatesChain one step per link pattern
OutputFile + File Name + Links Updated count

よくある質問​

Can I search by link text or by URL?+
Yes. Set Search On to target either the visible hyperlink text or the underlying URL value. Each step searches on one dimension at a time, add a separate step if you need to match both.
How do I replace only part of a link’s text?+
Set the current value field to the substring you want to find and the new value field to its replacement. Leave the current value blank to replace the entire matched value instead of a partial substitution.
What does the Is Expression option do?+
When Is Expression is set to Yes, Search Value is evaluated as a regular expression instead of a literal string match. This is useful for matching a whole family of similar URLs (for example an old domain with varying paths) in a single step. See <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions" target="_blank" rel="noopener noreferrer">MDN's regular expressions guide</a> for pattern syntax.
Can I update multiple different links in one Zap run?+
Yes. Chain one Update Hyperlinks Annotation step per distinct link pattern you want to update. Each step runs independently against the same document, so a single Zap run can fix several unrelated links at once.
Does it insert new hyperlinks or only modify existing ones?+
Update Hyperlinks Annotation only modifies links that already exist in the PDF. To add brand-new hyperlinks to a document, use the PDF4me Create Hyperlinks in PDF action instead, which is documented under the <a href="https://www.iso.org/standard/75839.html" target="_blank" rel="noopener noreferrer">PDF 32000-2:2020 link annotation specification</a>.

業界におけるユースケースとアプリケーション​

  • サイト移行ウェブサイトの再構築後にリンクを更新します
  • ドメイン変更ドメイン移行中にリンクを更新する
  • リンク切れの修復: 破損した外部参照を修正する
  • バージョンアップデート: 最新のリソースバージョンへのリンクを更新します

関連アクション​

他のプラットフォームでの同じタスク​

ヘルプが必要な場合​