Pular para o conteúdo principal

Criar hiperlinks em PDF com Make

PDF4me PDF - Criar hiperlinks é um Make módulo que transforma uma string de texto específica em um PDF em um link clicável, sem coordenadas ou um PDF editor. Use-o para vincular nomes de produtos a páginas da loja, citações a fontes ou frases de políticas a uma página de perguntas frequentes e, em seguida, encadeie módulos para adicionar vários links diferentes a um único documento.

O que este módulo faz

PDF4me, PDF - Criar hiperlinks transforma qualquer sequência de texto em um PDF em um link clicável dentro de um Make cenário. Você informa qual texto encontrar, para onde apontar e quais páginas pesquisar, e o módulo cuida do resto. Sem coordenadas, sem anotações manuais, sem PDF editor aberto em uma área de trabalho.

Artigos relacionados no blogue
Ainda não há nenhuma publicação no blogue sobre esta funcionalidade — em breve.
Entretanto, explore o blogue da PDF4me para encontrar tutoriais e fluxos de trabalho para todas as plataformas.
Visite o blogue

Autenticando sua solicitação de API

Todo PDF4me módulo em Make requer um válido ConexãoCrie ou selecione um que contenha o seu PDF4me API chave para que o cenário possa chamar o serviço de hiperlink com segurança.

Fatos importantes que você não deve perder

Busca por texto, sem necessidade de coordenadas.

Maioria PDF link APIs É necessário especificar as coordenadas x/y exatas. Este módulo encontra o texto para você; digite a palavra ou frase que deseja tornar clicável e ele cuidará do posicionamento automaticamente.

New Text opcionalmente substitui o rótulo

Deixar New Text O texto original pesquisado permanece visível como o rótulo do link. Preencha-o para substituir o que o leitor vê, o que é útil para transformar um texto bruto em um texto bruto. URL ou um código de produto transformado em texto âncora legível.

Módulos de cadeia para múltiplos elos

Um módulo processa uma conversão de texto para texto.URL Para adicionar vários links diferentes ao mesmo documento, conecte vários módulos Criar Hiperlinks em sequência; cada um receberá a saída do anterior.

O módulo escreve um padrão PDF anotação de link conforme definida em PDF Especificação 32000-1:2008 (Seção 12.5.6.5, Anotações de Link), o mesmo tipo de anotação documentado em PDF Índice de especificações da associaçãoÉ por isso que os links resultantes abrem corretamente no Acrobat, em navegadores e em dispositivos móveis. PDF visualizadores sem nenhum plugin personalizado.

Criar PDF com PDF4me - Módulo Criar Hiperlinks mostrando Arquivo definido como Dropbox - Baixar um Arquivo, Texto pesquisado como "Bem-vindo", Novo texto vazio, URL de entrada como https://tutorials.aspose.com/ e Páginas definidas como todas

Digite o texto exato que deseja encontrar em Searched Text, o destino em Input URLe em quais páginas pesquisar Pages.

Parâmetros

Obrigatório: Connection, Searched Text, e Input URL. New Text e Pages são opcionais.

ParâmetroObrigatórioO que fazExemplo
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. Adicionar PDF4mePDF - Criar hiperlinks de acordo com o seu cenário.
  2. Selecione Connection (ou clique) Adicionar para criar um com o seu API chave).
  3. Definir File para Dropbox - Baixar um arquivo ou Mapa de um módulo anterior.
  4. Em Searched Text, digite o texto exato que você deseja tornar clicável (por exemplo, Welcome ou o nome de um produto).
  5. Opcionalmente, insira New Text Se você deseja que o rótulo visível seja diferente do texto pesquisado.
  6. Cole o endereço de destino em Input URL.
  7. Definir Pages: tipo all para todas as páginas, ou direcione páginas específicas como 1,3 ou 2-4.
  8. Salvar e clique Executar uma vezA saída contém Document Name e Document Data: o PDF Com hiperlinks aplicados.

Saída

CampoTipoO que contém
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.
Configurações típicasCommon Make scenario patterns that use PDF - Create Hyperlinks to enrich documents automatically.
Adicione links de produtos a um catálogo gerado.
  1. Um cenário agendado busca a lista de produtos mais recente do seu banco de dados e gera um catálogo. PDF.
  2. Um iterador percorre cada nome de produto da lista.
  3. Criar hiperlinks Executa uma vez por produto. Searched Text = nome do produto, Input URL = página do produto URL.
  4. Após o loop, cada nome de produto no catálogo se torna um link ativo para a página do produto na loja.
  5. O catálogo interativo finalizado é carregado no Google Drive e enviado por e-mail para a equipe de vendas.
Enriquecer citações de relatórios com URLs de origem.
  1. Um relatório mensal PDF é gerado a partir de um modelo do Google Docs.
  2. Um repositório de dados armazena uma lista de rótulos de citação e suas respectivas correspondências. URLs.
  3. Criar hiperlinks Executa uma vez por citação, transformando cada rótulo em um link clicável para a fonte.
  4. Os leitores podem clicar em qualquer citação no PDF para abrir a fonte original em seu navegador.
  5. O relatório enriquecido é armazenado em SharePoint e distribuído às partes interessadas.
Vincule as seções do documento de política a uma página de perguntas frequentes.
  1. O departamento de RH publica uma nova política. PDF para uma pasta do Dropbox monitorada.
  2. Criar hiperlinks A pesquisa pela frase "Mais informações" ocorre em todas as páginas.
  3. Cada ocorrência se torna um elo com o RH. FAQ página na intranet da empresa.
  4. Um segundo módulo encadeado converte a frase "Enviar uma solicitação" em um link para o sistema de emissão de tickets.
  5. O acabado PDF O documento é salvo na biblioteca de documentos de RH e enviado por e-mail a todos os funcionários.

Perguntas frequentes

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.

Dicas práticas

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.

Folha de dicas

CampoValor
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

Ações relacionadas

Mesma tarefa em outras plataformas

Obtenha ajuda