python-pdfkit
python-pdfkit copied to clipboard
Converting from HTML to PDF With mailTo links Issue
I have an issue where my HTML works fine with MailTo links that have return-delimited text lines for the body section. That HTML has "%0A" to designate that the body portion of the MailTo should be on separate lines in the email. My email body should display, in my case, four separate return-delimited lines of text.
The HTML works as expected.
However, after conversion to PDF by pdfkit, the "%0A"s are not interpreted and appear in the email body when the mailto link is clicked (in the converted PDF). So, rather than several separate lines, the email body has a single line with "%0As" in the text itself (not interpreted by pdfkit).
I do not see the option to have pdfkit to interpret these URLEncoded return characters.
Again, the HTML works as expected with the "%0A"s in the body portion of the email when the mailto link is clicked.
Thanks.