How to make a clickable link in pdf footer using wkhtmltopdf? - html

We want to use links in the pdf footer. We utilize wkhtmltopdf tool to generate our pdfs.
wkhtmltopdf wrongly places the clickable area few millimeters above the link itself
When we use absolute links in the footer like https://google.com pdf viewers recognize the links and allow to click on it
But we would like to show custom text for our links like Terms and conditions and so on. As a possible workaround, we were trying to overlay our link text over a transparent link using absolute positioning (codepen). It works well for html but doesn't work for pdfs.
Do we have some other possible options to get around the issue?

We implemented a JS workaround where we duplicate footer content and move it down by 135px. So the footer replica is invisible to the end users but it provides clickable areas for the original footer. We could do it because we have constant top and bottom margins.

Related

White Space coming in my website between header and main body in the Mobile View - Wordpress Website using Elementor

I have tried eliminating the header after space using the wordpress. Also i have tried codes for that but still the white region exists.
problem screenshot
Can you inspect the elements on PC? I want to look at the elements that is being shown in the DOM.
On further views, I can see that there is a red button saying "LOGOUT OF TEMS". Maybe you should check the CSS on that, see if it's creating any spacings.

Element not located at bottom of viewport

So I am trying to do an menu for the viewer to easily access specific chapters of a long webpage.
I use anchor tags that links to different sections using ID's. But when I click the links from my menu the sections are located at the bottom of the viewport. On the other hand - if I try to access the section using the full URL the view port goes (as intended) to the top of the viewport.
What is up with the links from my menu - why are they not working?
https://learningbank.io/employee-journey/#cap03
Please paste the original code.
In any case, you may have set the anchors to high so when you click the link it sends you somewhere higher then where you intended.
Otherwise. You could always add more pages and have them as <link href=""> links. Thats if you have no other solution though.
Solved it. Or rather the Wordpress builder (Elementor) I use for making the website actually comes with an widget that handles anchor links. It seems the builder itself interferes with the regular practice of adding links.

HtmlRenderer & PDFsharp add footer to each page

I am trying to put a copyright symbol at the bottom of each page when the PDF is generated but I cant seem to get it to work. How would I go about doing such a thing? I am using HtmlRenderer and PDFsharp, take my HTML body and convert it to a PDF file that the user can download.
I don't want to put a watermark over the top as it is a legal document for paying customers, I just wanted the little copyright symbol company name and date at the bottom.
Is there a way of saying to PDFsharp to use a say template PDF file that has a footer with the info at the bottom or is there a way of setting it in the physical code?
I Worked it out if you add styling position:fixed and then a top position because it doesnt understand bottom it will add a text to every page wherever you align it to.
If anyone would like more information on this I've linked a pull request which details the use of position: fixed to create header/footers.
There is also a class in the generator itself PdfGenerateConfig which will allow you to create corresponding margins in the document.
https://github.com/ArthurHub/HTML-Renderer/pull/41
I don't know if HtmlRenderer allows to add headers and footers that will be repeated on every page. HtmlRenderer is not part of PDFsharp.
With PDFsharp it is simple to open a document, loop through the pages and draw a string at the bottom of each page.
The Watermark sample can be used to get started - just remove the Transformation part and draw the text at the bottom of the page.
Similarly you can draw a PDF page (template) over each page of an existing PDF document.
A third option: Draw the text on an XForm and draw that XForm on each page. Overkill for a simple text string, but could reduce file size for a complex footer.
Watermark sample:
http://pdfsharp.net/wiki/Watermark-sample.ashx
XForms sample:
http://pdfsharp.net/wiki/XForms-sample.ashx

How do I add a link back to my main webpage from a page written with mkdocs?

I am building a general website that also has a documentation page. For the docs page I'm using mkdocs. I would like a link in the docs page, ideally in the top right corner, that goes back to my main webpage. I know how to put links inside the docs, but I'd like this to appear like a header. Is there a way to do this?
No, this is not possible at this time. However, this is the subject of issue #989 and may be added in the future.

embedded logos in menu bars

I want to know how some sites embedded their logos. I was looking at some source of popular sites expecting to see a .svg or image that would display the logo. However I found an <a>elements like:
LOGO NAME logo
How does that above code get transformed into a logo? Is data-gtm-action a custom attribute? Trying to work out what's going on here and I'm new to UI design.
As you can see in this link, you have a class:"logo ... the logo class contains probably some background-image css information.
Edit: and regarding the data attribut, you have a description here: http://www.w3schools.com/tags/att_global_data.asp
This attribute is very convenient to pass values without using input type="hidden".