Page 1 of 1
generate a custom link to pdf
Posted: 29 Sep 2021, 13:55
by micker
Hello i search in documentation but you only explain how to add pdf button via print button modification (that cool)
i need to create a single link in my override to display a simple <a href .. to pdf
how i can acheive this ?
regards
Re: generate a custom link to pdf
Posted: 04 Oct 2021, 01:57
by Jan
Hi, here you can see the method which gets the button.
So there are two options:
a) changing directly the method to get only a link
b) or get the button and with PHP methods separate the link and make the a href
Jan
Re: generate a custom link to pdf
Posted: 04 Oct 2021, 08:23
by micker
ok can you send me an exemple for b solution ?
Re: generate a custom link to pdf
Posted: 04 Oct 2021, 13:23
by Jan
Hi, I didn't do such customization yes, so I don't have such example - for this you need to use some PHP function for replacing text, maybe some regex function
Jan
Re: generate a custom link to pdf
Posted: 04 Oct 2021, 15:10
by micker
ok thanks