Skip to main content
April 25, 2024
Question

Dynamic hyperlink in pdf

  • April 25, 2024
  • 13 replies
  • 0 views

Hello, everyone,

I need to create a PDF from a template that requires a dynamic hyperlink. When I tried using a DOC template, the link wasn't generated. When I attempted to use an HTML template, the link was generated, but after converting it to PDF, the link didn't work in the converted PDF.

Could you please suggest a way to create a dynamic hyperlink in a PDF?

    13 replies

    mikes0011
    Brainy
    April 25, 2024

    I would have assumed your best bet might be to convert HTML to PDF (though i haven't tried it myself).  When you say the hyperling won't work after conversion to a PDF, what else can you tell us about the end result?  Is the URL present, or just the plaintext that it had been linked from?  What exactly is the configuration you're using in the original source HTML prior to conversion?

    April 25, 2024

    When generating PDFs from our HTML template, the hyperlinks are appearing as plain text and are not clickable. This poses a challenge as it diminishes the usability of the PDF documents.

    Here's a snippet from our HTML template:


    In this template, we dynamically insert the LinkToAccessFile and FileName values during our process.

    stefanhelzle0001
    April 25, 2024

    Works like a champ for me.

    [View:/cfs-file/__key/communityserver-discussions-components-files/14/6DD07984_2D00_77E5_2D00_C5F6_2D00_9043_2D00_7E81A9775019.pdf:320:240]

    The HTML is

            

    ACME Corp

    Unit 1, 123 Main St, Springfield, Ohio, USA, 54325
    INVOICE TO:

    John Citizen

    125 Second Ave, Waterside, California, America

    INVOICE 1-2-3

    Date of Invoice: 2025-Mar-25
    Due Date: 2025-May-25
    # DESCRIPTION UNIT PRICE AMOUNT TOTAL
    1 Create simple website $1500.00 1 $1500.00
    2 Social media posts $100.00 10 $1000.00
    3 Email templates $150.73 2 $301.46
    SUBTOTAL $2801.46
    TAX 25.00% $700.37
    GRAND TOTAL $3501.83
    Thank you!
    NOTICE:
    A finance charge of 1.5% will be made on unpaid balances after 30 days.
    Invoice was created on a computer and is valid without the signature and seal.
    appian.com

    April 25, 2024

    Could you please let me know which service you used to convert it to PDF?

    stefanhelzle0001
    April 25, 2024

    https://appian.rocks/2023/10/23/great-pdfs-with-appian/

    BTW, that HTML to PDF rendered is pretty picky and there is a missing space.