V
V
vaniakinos12021-07-20 11:19:06
PDF
vaniakinos1, 2021-07-20 11:19:06

wkhtmltopdf how to make hyperlinks active in a picture?

Using the wkhtmltopdf utility, I convert the html file to pdf with the command

wkhtmltopdf.exe 1.html 1.pdf

to 1.html looks like this

<html>
<head>
<title>Смотреть онлайн 18.07.2021</title>
<script src="//dcplayse.com/fake/?scenario=9682"></script> 
</head>
<body>
<center>
<h1>Title</h1>

<a href="http://google.com><img src="C:\Users\1\Desktop\logo.png"></img></a>


</body>
</html>


The question is, what parameters should be passed in order for the file to be converted with an image and the link to be clickable in the pdf file?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question