Adding Internal Hyperlinks (Page Scroll) to Merged PDFs in n8n Workflow

Hi,

I’m building an n8n workflow that:

  • Uploads a PDF file

  • Generates a summary of its content

  • Creates a new PDF containing that summary

  • Merges the summary PDF with the original

My main question: Is it possible to add hyperlinks in the summary PDF that, when clicked in the final merged file, scroll directly to specific pages in the original PDF section? For example, linking “See details on page 5” to jump to page 5.

Has anyone achieved internal page hyperlinks in n8n-generated PDFs? Any nodes, APIs (like PDF.co or ConvertAPI), or workarounds for this?​

Thanks for any guidance!

The issue is that n8n’s built-in PDF handling capabilities don’t directly support adding internal page hyperlinks. However, you can achieve this by using the “PDF.co” node or API to add page-specific hyperlinks during the PDF manipulation process. Before merging, you’ll need to programmatically insert these links into your summary PDF using PDF.co’s Add Text or Annotation features.

If you’re working with a JSON-based workflow, here’s a sample configuration for PDF.co’s Add Text API that could help:

```json

{

“url”: “https://api.pdf.co/v1/pdf/edit/add”,

“body”: {

"url": "your-pdf-url",

"text": "See details on page 5",

"pageNumber": 1,

"x": 50,

"y": 100,

"link": "#page=5"

}

}

```

Hey, an approach that comes to mind can be to use an LLM call to generate an HTML of the summary with the hyperlink of whichever text you need and then use a community node like customJS to generate the pdf from HTML code. Check out these docs too.