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