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

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

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

このモジュールの機能

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

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

認証方法 Make シナリオ?​

毎 PDF4me モジュール Make 有効な 繋がり. 作成または選択して、 PDF4me API シナリオがハイパーリンク更新要求を安全に認証できるようにするためのキー。

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

検索対象としてテキストまたはURLを選択
各ハイパーリンク項目は、表示されているリンクテキストまたは基となるURL値のいずれかを検索し、両方を同時に検索することはありません。更新が必要なディメンションごとに、個別の項目を追加してください。
空白テキスト現在の値は一致全体を置き換えます
「現在のテキスト値」を空欄にすると、一致したテキストまたはURL全体が「新しいテキスト値」に置き換えられ、一部のみが置き換えられることはありません。
式は正規表現マッチングを有効にします
検索値を正規表現として扱うには、「式である」を「はい」に設定します。これは、URLのファミリー(例えば、パスが異なる古いドメイン)を、それぞれをリストアップする代わりに1つの項目で照合する場合に便利です。
PDF4me PDFを作成する - 接続、ファイル名とドキュメント/公開ファイルURLがマッピングされたマップに設定されたファイル、および検索オン、テキスト現在の値プリンス、テキスト新しい値クイーン、検索値ドライラボ、および式がいいえに設定されているハイパーリンク項目で構成されたハイパーリンクモジュールを更新します。

ファイルをマップに設定し、ファイル名とドキュメント/公開ファイルのURLを接続し、更新するリンクパターンごとにハイパーリンク項目を1つ追加します。

パラメータ​

必須: 接続、ファイル名、ドキュメント/公開ファイルのURL、および検索対象と検索値が設定されたハイパーリンク項目が少なくとも1つ必要です。各項目につき、「現在のテキスト値」、「新しいテキスト値」、「式」はオプションです。

パラメータ必須その機能例
ConnectionRequiredPDF4me API connection. Click Add and paste your API key if connecting for the first time.My PDF4me connection
FileRequiredHow the source PDF reaches the module. The radio lists your connected storage actions (for example Dropbox - Download a File) and Map. Choose Map to wire the fields below from earlier modules: File Name and Document / public file URL only appear once Map is selected.Map
File NameRequiredFilename of the source PDF including extension, used for output file identification.brochure.pdf
Document / public file URLRequiredBinary PDF content mapped from a preceding module, or a public URL to the file.[Buffer from Get File]
HyperlinksOptionalThe link changes to apply. Add one item per link pattern you want to update.
Hyperlinks > Search OnConditionalWhether this item searches the hyperlink text or the URL value. Defaults to URL.Text
Hyperlinks > URL Current ValueConditionalShown when Search On is URL. The URL substring to replace. Leave blank to replace the entire matched value.http://old.example.com
Hyperlinks > URL New ValueConditionalShown when Search On is URL. The new URL to set in place of the match.https://new.example.com
Hyperlinks > Text Current ValueConditionalShown when Search On is Text. The text substring to replace. Leave blank to replace the entire matched value.Prince
Hyperlinks > Text New ValueConditionalShown when Search On is Text. The new text to set in place of the match.Queen
Hyperlinks > Search ValueConditionalThe hyperlink text or URL value to search for in the document.Drylab
Hyperlinks > Is ExpressionConditionalYes evaluates Search Value as a regular expression instead of a literal match. Defaults to No.No

出力フィールド​

分野タイプ内容物
NameFile nameOutput PDF filename with updated hyperlinks.
DocumentFile (binary data)The PDF document with modified links, ready to upload or attach.
Document UrlTextLink to the resulting PDF. Returned when PDF4me processes the request as a background job.

ハイパーリンクの更新を設定するにはどうすればいいですか Make?​

  1. 追加 PDF4me → PDF - ハイパーリンクを更新 あなたの Make シナリオ。
  2. 選択 繋がり (またはクリック) 追加 あなたと一緒に作成する PDF4me API 鍵)。
  3. 下 ファイル、 選ぶ 地図 ワイヤー ファイル名 そして ドキュメント/公開ファイルのURL 前のモジュールから。
  4. クリック アイテムを追加 下 ハイパーリンク 更新したいリンクパターンごとに設定してください。
  5. セット 検索対象 に Text または URL記入する 検索値 何を見つけるべきか。
  6. セット テキスト 現在の値 (または空欄のままにして試合全体を置き換える) テキスト 新しい価値 交換品と共に。
  7. セット 式 に Yes 検索値が正規表現の場合は、シナリオを実行します。更新された PDF バッファとして返します。

典型的な構成​

ワークフローの例Common Make scenario patterns using Update Hyperlinks.
予定されているリンク切れのクリーンアップ
  1. 定期的にトリガーが作動し、公開されたコンテンツをレビューします PDFs。
  2. Get File は各ファイルを取得します PDF から Dropbox または Google Drive イテレータループ内で。
  3. ハイパーリンクの更新により、既知の破損またはリダイレクトされたリンクが置き換えられます。 URLs 既知の悪質なリンクごとに、ハイパーリンク項目を1つ使用します。
  4. 修正された PDF 以前のバージョンを上書きして、ストレージにアップロードされます。
ウェブサイトの再構築後のドメイン移行
  1. マーケティングチームが新しいサイト構造の稼働開始を確認した後、シナリオがトリガーされます。
  2. イテレータはすべての PDF それは古いドメインを参照しています。
  3. ハイパーリンクの更新で検索をオンに設定します URL、式を「はい」とし、古いドメインパターンを新しいドメインパターンに単一の項目で一致させます。
  4. 更新済み PDFs ドキュメントライブラリに保存され、検索インデックスが更新されます。
リブランディングに関するマーケティング資料
  1. リブランディングプロジェクトは、すべてのマーケティング活動に対する一括処理をトリガーします。 PDFs。
  2. ハイパーリンクの更新は、ドメイン変更用、ソーシャルメディアのハンドル名用、連絡先メールアドレスのリンクテキスト用など、複数の項目を実行します。
  3. それぞれ PDF イテレータ内の同じハイパーリンク構成を通して処理されます。
  4. ブランド名を変更 PDFs 更新された資料フォルダにアップロードされ、配布準備が整いました。

実践的なヒント​

Search On decides text vs URL, not both
One Hyperlinks item cannot search text and URL simultaneously. Add a separate item for each dimension if you need to update both.
Blank Text Current Value replaces everything
If Text Current Value is left empty, the entire matched hyperlink text or URL is replaced with Text 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 item per link pattern, not per link instance
A single Hyperlinks item updates every matching link in the document, you do not need one item per occurrence, only per distinct search pattern.
This module edits links, it does not add them
Update Hyperlinks only modifies hyperlinks that already exist in the PDF. To insert brand-new links, use the PDF4me Create Hyperlinks module.
Test with one item before batching many PDFs
Run the scenario against a single sample PDF first to confirm Search On and Search Value match as expected before applying it to a large batch.

チートシート​

分野価値
ModulePDF - Update Hyperlinks
ConnectionPDF4me API key
Search On optionsText or URL
Blank Text Current ValueReplaces the entire matched value
Is ExpressionYes = regex match, No = literal match (default)
Multiple updatesAdd one Hyperlinks item per link pattern
OutputName, Document, Document Url

よくある質問​

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 Hyperlinks item searches on one dimension at a time, add a separate item if you need to match both.
How do I replace only part of a link’s text?+
Set Text Current Value to the substring you want to find and Text New Value to its replacement. Leave Text 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 item. 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 run?+
Yes. Add one Hyperlinks item per distinct link pattern you want to update. Each item runs independently against the same document, so a single module call can fix several unrelated links at once.
Does it insert new hyperlinks or only modify existing ones?+
Update Hyperlinks only modifies links that already exist in the PDF. To add brand-new hyperlinks to a document, use the PDF4me Create Hyperlinks module 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>.

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

  • リンク切れの修正:壊れたハイパーリンクを更新します PDFs
  • URL 移住: 変化 URLs ウェブサイトの再構築後
  • ドメイン変更ドメイン移行後にリンクを更新
  • リダイレクトの更新: リダイレクトされた URLs 期末試験付き

関連アクション​

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

ヘルプが必要な場合​