-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Internal links are not working in pdf generated from wkhtmltopdf #2153
Comments
Please post the version, platform and example HTML. |
Dear Ashish, Version: Regards, |
HTML? Also try using |
Here is another example of a page that doesn't have the internal links generated, any ideas why? The HTML looks acceptable. http://www.sec.gov/Archives/edgar/data/789019/000119312514289961/d722626d10k.htm#tx722626_2 |
Verified. Same issue here. |
Same issue here. |
@sriharichava @mcahornsirup I had this issue when using an empty link. When I inserted a nbsp, it worked. |
Same issue with |
Same issue, Ubuntu 14.04 as well |
Nice. I'll try to use a nbsp... |
I'm having the same issue with a software that uses wkhtmltopdf. http://forums.apricitysoftware.com/t/pdf-export-with-working-links/233/8 I added the latest comment in the thread, which seems like a interesting find, but I'm not a programmer so I don't know for sure. Thanks. |
same issue on Fedora release 24 with wkhtmltopdf 0.12.3 (with patched qt) I tried adding a space, linking a bunch of different ways. I also tried --enable-internal-links and --disable-external-links, no joy. CentOS Linux release 7.0.1406 (Core) wkhtmltopdf 0.12.2.1 (with patched qt) works just fine so this would seem to be a regression. I installed wkhtmltopdf 0.12.2.1 (with patched qt) on Fedora release 24 and it works so this is definitely a regression in 0.12.3: |
I write this code in php to replace all the empty links adding a space in large generated html.
|
I'm having the same problem, but only on my headless server and not when I run locally. No empty links. Local (links work)
Remote (links don't work)
|
Does this work in 0.12.5? |
Tested in version 0.12.5 (windows 64 bit) and internal links ARE MOST DEFINITELY NOT WORKING. Simple ID based links using href with hash ID's appear to be translated into external links (none are empty). Headless Chrome (as well as being slower) can't do links at all and now it would seem wkhtmltopdf has the same issue even though according to the conversation here it may have previously been fixed (and broken again). Hoping it may once again be correctly supported some day as when it comes to generating PDF's with bookmarks wkhtmltopdf seems to be the only hope. |
And Re-tested this time with the same version 0.12.5 but this time with a linux build |
The links in this HTML file work fine for me on Windows 10 64-bit Version 1809 (OS build 17763.292) using wkhtmltopdf 0.12.5-1.msvc2015-win64:
I opened the generated PDF in Adobe Acrobat Reader DC 2019.010.20098 and the links also work without issues. Is your HTML is valid? The link @ewartgh provided does not contain valid HTML. |
I think I'm still having the same issues.
Note, I am using Pandoc to do this so I can convert my Markdown to HTML then to PDF. The |
Disregard me. Worked after not using Pandoc to execute wkhtmltopdf. |
Dear Team,
i generated a pdf from html page by using the wkhtmltopdf.
I am using below command:
wkhtmltopdf --enable-internal-links test.html test.pdf
I pointed some internal links in pdf those are not working in the pdf, same working in html page.
I am using like below:
Target of the Link:
Content
Link to the Target:
Link Text
Please help me to resolve the Issue.
Thanks,
Srihari Chava
The text was updated successfully, but these errors were encountered: