Lewati ke konten utama

Buat tautan hiperteks di PDF dengan Make

PDF4me PDF - Membuat Hyperlink adalah sebuah Make modul yang mengubah string teks tertentu menjadi PDF menjadi tautan yang dapat diklik, tanpa koordinat atau PDF Gunakan editor ini untuk menautkan nama produk ke halaman toko, kutipan ke sumber, atau frasa kebijakan ke halaman FAQ, lalu gabungkan modul untuk menambahkan beberapa tautan berbeda ke satu dokumen.

Fungsi modul ini

PDF4me, PDF - Membuat Hyperlink mengubah string teks apa pun menjadi PDF menjadi tautan yang dapat diklik di dalam Make skenario. Anda memberi tahu teks mana yang harus dicari, ke mana harus menunjuk, dan halaman mana yang harus dicari, modul akan menangani sisanya. Tidak ada koordinat, tidak ada anotasi manual, tidak ada PDF Editor terbuka di desktop.

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

Mengautentikasi Permintaan API Anda

Setiap PDF4me modul di Make memerlukan validitas KoneksiBuat atau pilih salah satu yang sesuai dengan kebutuhan Anda. PDF4me API kunci agar skenario dapat memanggil layanan hyperlink dengan aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Pencarian teks terarah, tidak memerlukan koordinat.

Paling PDF tautan APIs Anda perlu menentukan koordinat x/y yang tepat. Modul ini akan menemukan teks untuk Anda; ketik kata atau frasa yang ingin Anda jadikan dapat diklik, dan modul akan menangani penempatannya secara otomatis.

New Text secara opsional mengganti label

Meninggalkan New Text Kosong dan teks pencarian asli tetap terlihat sebagai label tautan. Isi untuk mengganti apa yang dilihat pembaca, berguna untuk mengubah teks mentah menjadi teks biasa. URL atau mengubah kode produk menjadi teks tautan yang mudah dibaca.

Modul rantai untuk beberapa tautan

Satu modul menangani satu konversi teks ke...URL Untuk menambahkan beberapa tautan berbeda ke dokumen yang sama, hubungkan beberapa modul Buat Hyperlink secara berurutan, masing-masing menerima output dari modul sebelumnya.

Modul ini menulis sebuah standar. PDF anotasi tautan seperti yang didefinisikan dalam PDF Spesifikasi 32000-1:2008 (Bagian 12.5.6.5, Anotasi Tautan), jenis anotasi yang sama seperti yang didokumentasikan dalam PDF Indeks spesifikasi asosiasiItulah mengapa tautan yang dihasilkan terbuka dengan benar di Acrobat, browser, dan perangkat seluler. PDF penonton tanpa plugin khusus apa pun.

Buat PDF4me PDF - Modul Buat Hyperlink menunjukkan File diatur ke Dropbox - Unduh File, Teks yang Dicari sebagai Selamat Datang, Teks Baru kosong, URL Masukan sebagai https://tutorials.aspose.com/, dan Halaman diatur ke semua

Masukkan teks persis yang ingin dicari di Searched Text, tujuan di Input URL, dan halaman mana yang harus dicari Pages.

Parameter

Diperlukan: Connection, Searched Text, Dan Input URL. New Text Dan Pages bersifat opsional.

ParameterDiperlukanApa fungsinya?Contoh
ConnectionRequiredPDF4me API connection used to authenticate hyperlink creation requests.Your PDF4me connection
FileRequiredSource PDF. Choose Dropbox - Download a File for a direct Dropbox trigger, or Map to wire filename and binary data from a prior module.Dropbox - Download a File
Searched TextRequiredThe exact text string in the PDF that will become a clickable hyperlink. The module searches the specified pages for this text and wraps every occurrence in a link annotation.Welcome
New TextOptionalOptional label that replaces what the reader sees over the link. Leave empty to keep the original searched text as the visible link label.Visit our site
Input URLRequiredThe destination URL the hyperlink points to. Readers are taken to this address when they click the linked text.https://tutorials.aspose.com/
PagesOptionalPages to search for the text. Accepts a single number, a comma-separated list (1,3,5), a range (2-4), or the word all. Defaults to all if left empty.all
  1. Menambahkan PDF4mePDF - Membuat Hyperlink sesuai dengan skenario Anda.
  2. Pilih Connection (atau klik) Menambahkan untuk membuat satu dengan milikmu API kunci).
  3. Mengatur File ke Dropbox - Unduh File atau Peta dari modul sebelumnya.
  4. Di dalam Searched TextKetik teks persis yang ingin Anda jadikan dapat diklik (misalnya, Welcome atau nama produk).
  5. Masukkan secara opsional New Text Jika Anda ingin label yang terlihat terbaca berbeda dari teks yang dicari.
  6. Tempelkan alamat tujuan ke dalam Input URL.
  7. Mengatur Pages: jenis all untuk setiap halaman, atau menargetkan halaman tertentu seperti 1,3 atau 2-4.
  8. Menyimpan lalu klik Jalankan sekaliOutputnya berisi... Document Name Dan Document Data: itu PDF dengan tautan hiperteks yang diterapkan.

Keluaran

BidangJenisIsi di dalamnya
Document NameStringFilename of the output PDF with hyperlinks applied.
Document DataBufferBinary content of the PDF with link annotations added. Map this into an upload, email, or further processing module.
Pengaturan UmumCommon Make scenario patterns that use PDF - Create Hyperlinks to enrich documents automatically.
Tambahkan tautan produk ke katalog yang dihasilkan.
  1. Skenario terjadwal mengambil daftar produk terbaru dari basis data Anda dan menghasilkan katalog. PDF.
  2. Iterator tersebut melakukan perulangan pada setiap nama produk dari daftar.
  3. Buat tautan hiperteks hanya berlaku sekali untuk setiap produk, Searched Text = nama produk, Input URL = halaman produk URL.
  4. Setelah perulangan, setiap nama produk dalam katalog akan menjadi tautan langsung ke halaman toko produk tersebut.
  5. Katalog interaktif yang sudah jadi diunggah ke Google Drive dan dikirim melalui email ke tim penjualan.
Perkaya kutipan laporan dengan URL sumber.
  1. Laporan bulanan PDF Dihasilkan dari templat Google Docs.
  2. Sebuah penyimpanan data menyimpan daftar label kutipan dan pasangannya. URLs.
  3. Buat tautan hiperteks dijalankan sekali per kutipan, mengubah setiap label menjadi tautan sumber yang dapat diklik.
  4. Pembaca dapat mengklik kutipan apa pun di PDF untuk membuka sumber aslinya di peramban mereka.
  5. Laporan yang telah diperkaya disimpan di SharePoint dan didistribusikan kepada para pemangku kepentingan.
Tautkan bagian-bagian dokumen kebijakan ke halaman FAQ.
  1. Departemen SDM mengunggah kebijakan baru. PDF ke folder Dropbox yang dipantau.
  2. Buat tautan hiperteks Mencari frasa "Informasi selengkapnya" di semua halaman.
  3. Setiap kejadian menjadi penghubung ke departemen SDM. FAQ halaman di intranet perusahaan.
  4. Modul berantai kedua mengubah frasa "Kirim permintaan" menjadi tautan ke sistem tiket.
  5. Selesai PDF disimpan ke perpustakaan dokumen SDM dan dikirim melalui email ke seluruh staf.

Pertanyaan yang Sering Diajukan

Does the module require coordinates to place the hyperlink?+
No. You provide the exact text string in Searched Text and the module handles positioning automatically. The PDF4me engine scans each targeted page, finds every occurrence of that string, and wraps it in a URI annotation: no x/y coordinates, bounding boxes, or pixel offsets needed. This approach remains reliable even when the same document is generated from different templates with slightly shifted content, because positioning is always derived fresh from the live text location. It also works correctly after content shifts caused by font changes or added paragraphs.
What does New Text do?+
New Text replaces the visible label that readers see over the clickable link. If the searched text is a raw product code like SKU-4892 and you enter Shop this product in New Text, readers see the friendlier label instead of the code. This is especially useful when the text in your PDF is a reference number or raw URL that is technically correct but not reader-friendly as a link label. Leave New Text empty and the original searched text remains the visible anchor: nothing changes in appearance except that the text becomes clickable. The New Text value does not affect which text the module searches for; Searched Text always controls matching.
What if the same text appears multiple times on a page?+
Every occurrence of the searched text on the targeted pages becomes a clickable link pointing to the same Input URL. For example, if Welcome appears in the header, the body, and a sidebar, all three instances become links in one module run. If you need different occurrences to point to different URLs, replace the text in your source so each instance is unique, or use separate chained modules with slightly different search phrases. Matching is case-sensitive, so Welcome and welcome are treated as distinct strings.
Can I add multiple different hyperlinks to the same PDF?+
Yes, by chaining modules in the same Make scenario. Map the Document Data output of the first Create Hyperlinks module directly into the File input of a second module, each configured with its own Searched Text and Input URL. You can stack as many modules as needed: there is no Make-imposed limit on chaining. For a catalogue with many product names, use an iterator to loop over a data store and pass each name and URL through a single Create Hyperlinks module once per iteration. The result is a fully linked PDF built entirely within Make without opening a PDF editor.
Do the hyperlinks work in all PDF viewers?+
The module creates a standard PDF URI annotation as defined in the PDF specification, supported natively in Adobe Acrobat Reader, Adobe Acrobat, the built-in viewers on Windows (Microsoft Edge), macOS (Preview), iOS, and Android, and all major browsers including Chrome, Firefox, and Safari. When a reader clicks the annotated text, the default browser opens the destination URL. Very old proprietary viewers that pre-date the PDF 1.1 annotation standard may not recognise the annotation, but those are no longer in common use. The annotation is not affected by PDF compression or linearization applied by other modules in the same scenario.

Tips Praktis

Matching is case-sensitive
Welcome and welcome are treated as different strings. Check the exact capitalization in your source PDF before setting Searched Text.
Every occurrence gets linked, not just the first
If the searched text appears three times on a page, all three become clickable to the same URL in one run. Make each occurrence unique in your source if you need different destinations.
One module, one text-to-URL pair
To add several different links to one document, chain multiple Create Hyperlinks modules, feeding Document Data from one into the File input of the next.
Check page count first for long documents
Use Get Document Information before this module if you only want to target specific pages of a long PDF, so the Pages field lines up with the real page count.
New Text only changes the label, not the search
Searched Text always controls what gets matched. New Text is purely cosmetic, it never affects which occurrences become links.

Lembar Panduan Singkat

BidangNilai
Searched TextExact text to make clickable
New TextOptional replacement label
Input URLDestination address
Pagesall, a number, 1,3, or 2-4
OutputDocument Name + Document Data

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan