Lewati ke konten utama

Perbarui Hyperlink - Pengelola Tautan untuk Make

PDF4me Perbarui Tautan Hyperlink adalah sebuah Make modul yang mencari yang sudah ada PDF tautan hiperteks atau teks URL dan menggantinya secara massal, tanpa menyentuh bagian dokumen lainnya. Gunakan untuk memperbaiki tautan yang rusak, melakukan migrasi. URLs setelah restrukturisasi situs web, atau memperbarui branding di sejumlah besar PDFs.

Fungsi modul ini

PDF4me Perbarui Tautan Hyperlink mencari PDFtautan hiperteks yang ada berdasarkan teks yang terlihat atau URL, lalu mengganti kecocokan secara massal. Setiap item Hyperlink dapat menargetkan teks atau URL, mengganti sebagian atau seluruh nilai, dan secara opsional memperlakukan nilai pencarian sebagai ekspresi reguler untuk pencocokan berbasis pola di banyak tautan sekaligus.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Bagaimana Cara Saya Mengautentikasi Saya? Make Skenario?

Setiap PDF4me modul di Make memerlukan validitas KoneksiBuat atau pilih salah satu yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar skenario tersebut dapat mengautentikasi permintaan pembaruan hyperlink secara aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Pencarian memilih teks atau URL
Setiap item Hyperlink mencari teks tautan yang terlihat atau nilai URL yang mendasarinya, tidak pernah keduanya sekaligus. Tambahkan item terpisah untuk setiap dimensi yang perlu Anda perbarui.
Teks Kosong Nilai Saat Ini menggantikan seluruh kecocokan
Biarkan kolom Nilai Teks Saat Ini kosong untuk mengganti seluruh teks atau URL yang cocok dengan Nilai Teks Baru, alih-alih hanya mengganti sebagiannya saja.
Is Expression memungkinkan pencocokan regex.
Atur Is Expression ke Yes untuk memperlakukan Search Value sebagai ekspresi reguler, berguna untuk mencocokkan sekumpulan URL (misalnya, domain lama dengan jalur yang berbeda-beda) dalam satu item alih-alih mencantumkan setiap URL satu per satu.
Buat PDF4me PDF - Perbarui modul Hyperlink yang dikonfigurasi dengan Koneksi, File diatur ke Peta dengan nama File dan URL Dokumen/file publik yang dipetakan, dan item Hyperlink yang menunjukkan Pencarian Aktif, Nilai Teks Saat Ini Prince, Nilai Teks Baru Queen, Nilai Pencarian Drylab, dan Ekspresi diatur ke Tidak

Atur File ke Peta, hubungkan nama File dan URL Dokumen/file publik, lalu tambahkan satu item Hyperlink per pola tautan untuk memperbarui.

Parameter

Diperlukan: Koneksi, Nama File, URL Dokumen/file publik, dan setidaknya satu item Hyperlink dengan Pencarian Aktif dan Nilai Pencarian harus disediakan. Nilai Teks Saat Ini, Nilai Teks Baru, dan Ekspresi Is bersifat opsional untuk setiap item.

ParameterDiperlukanApa fungsinya?Contoh
ConnectionRequiredPDF4me API connection. Click Add and paste your API key if connecting for the first time.My PDF4me connection
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]
Hyperlinks > Search OnRequiredWhether this item searches the hyperlink text or the URL value.Text
Hyperlinks > Text Current ValueOptionalThe text or URL substring to replace. Leave blank to replace the entire matched value.Prince
Hyperlinks > Text New ValueOptionalThe new text or URL value to set in place of the match.Queen
Hyperlinks > Search ValueRequiredThe hyperlink text or URL value to search for in the document.Drylab
Hyperlinks > Is ExpressionOptionalYes evaluates Search Value as a regular expression instead of a literal match. Defaults to No.No

Bidang Keluaran

BidangJenisIsi di dalamnya
NameStringOutput PDF filename with updated hyperlinks.
Doc DataBufferThe PDF document with modified links, in buffer format, ready to upload or attach.
  1. Menambahkan PDF4mePDF - Perbarui tautan untuk Anda Make skenario.
  2. Pilih Koneksi (atau klik) Menambahkan untuk membuat satu dengan milikmu PDF4me API kunci).
  3. Di bawah Mengajukan, memilih Peta dan kawat Nama File Dan URL dokumen/file publik dari modul sebelumnya.
  4. Klik Tambahkan item di bawah Tautan hiper untuk setiap pola tautan yang ingin Anda perbarui.
  5. Mengatur Cari di ke Text atau URL, lalu isi Nilai Pencarian dengan apa yang harus ditemukan.
  6. Mengatur Nilai Teks Saat Ini (atau biarkan kosong untuk mengganti seluruh kecocokan) dan Teks Nilai Baru dengan penggantian tersebut.
  7. Mengatur Apakah Ekspresi ke Yes Jika Nilai Pencarian adalah ekspresi reguler, maka jalankan skenario tersebut. Versi yang diperbarui PDF dikembalikan sebagai buffer.

Pengaturan Umum

Contoh Alur KerjaCommon Make scenario patterns using Update Hyperlinks.
Pembersihan tautan rusak terjadwal
  1. Pemicu terjadwal diaktifkan setiap bulan untuk meninjau publikasi. PDFs.
  2. Get File mengambil setiap PDF dari Dropbox atau Google Drive dalam sebuah loop Iterator.
  3. Pembaruan tautan hiperteks menggantikan tautan yang diketahui rusak atau dialihkan. URLs menggunakan satu item Hyperlink untuk setiap tautan yang diketahui bermasalah.
  4. Yang telah dikoreksi PDF diunggah kembali ke penyimpanan, menggantikan versi sebelumnya.
Migrasi domain setelah restrukturisasi situs web
  1. Sebuah skenario akan terpicu setelah tim pemasaran mengkonfirmasi bahwa struktur situs baru telah aktif.
  2. Iterator memproses setiap PDF yang merujuk pada domain lama.
  3. Pembaruan Hyperlink mengaktifkan Pencarian URL, Apakah Ekspresi tersebut bernilai Ya, dan mencocokkan pola domain lama dengan pola domain baru dalam satu item.
  4. Diperbarui PDFs Data disimpan ke pustaka dokumen dan indeks pencarian diperbarui.
Materi pemasaran yang diubah citranya.
  1. Proyek rebranding memicu peninjauan ulang secara menyeluruh terhadap semua pemasaran. PDFs.
  2. Update Hyperlinks menjalankan beberapa item: satu untuk perubahan domain, satu untuk pegangan media sosial, dan satu untuk teks tautan email kontak.
  3. Setiap PDF diproses melalui konfigurasi Hyperlink yang sama dalam sebuah Iterator.
  4. Diubah mereknya PDFs diunggah ke folder materi yang telah diperbarui dan siap untuk didistribusikan.

Tips Praktis

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.

Lembar Panduan Singkat

BidangNilai
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 + Doc Data buffer

Pertanyaan Umum

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>.

Studi Kasus & Aplikasi Industri

  • Perbaikan Tautan Rusak: Perbarui hyperlink yang rusak di PDFs
  • URL Migrasi: Mengubah URLs setelah restrukturisasi situs web
  • Perubahan DomainPerbarui tautan setelah migrasi domain
  • Pengalihan Pembaruan: Ganti pengalihan URLs dengan ujian akhir

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan