Hello Dan,
We run a separate conversion for the header and footer, so their style must be in the same HTML code.
Use this “Footer HTML” for example:
<style>
@media print {
.pdf-footer img {float:left; max-width:160px !important; }
}
</style>
<div class="pdf-footer">
<img src="https://vision-design.com/work/www.m2mfg.com/wp-content/uploads/2020/04/M2-Logo.png" />
</div>
Best Regards,
Pavel
Thanks Pavel, so should I include all css styles for the footer or header in that textarea?
And the “Created by PDFCrowd…” line will be removed after purchasing the license?
Yes, all css styles for the footer or header should be included in that textarea. That textarea can contain the complete HTML so you can use links to your stylesheets too, e.g. add to your footer HTML
<link rel='stylesheet' href='https://your.domain/your-header-footer.css' />
Yes, the “Created by PDFCrowd…” line will be removed for a valid Pdfcrowd license. You can activate the trial by the following link:
— https://pdfcrowd.com/user/sign_up/?pid=api-trial2
It’s caused by your style.min.css a[href]:after:
@media print {
...
a[href]:after {
content: " (" attr(href) ")"
}
It append href to each link element when print media is used.
You can remove it from your CSS.
Or use our helper library to remove it, e.g. set the following line to “On Load Javascript” option:
libPdfcrowd.insertStyle({style: '@media print { a[href]:after { content: none !important; }}'});
Thanks, removed via css.
For future reference, where in the plugin’s UI do I add this option:
libPdfcrowd.insertStyle({style: '@media print { a[href]:after { content: none !important; }}'});
You’re welcome.
The option can be added to the “On Load Javascript” option on our settings “General Options” tab.
Note: here is the link to our JS helper library documentation which defines insertStyle function.
https://pdfcrowd.com/doc/api/libpdfcrowd/
Thanks. Much appreciated.
A good sense of security purchasing the license when there is a good support team.
Dan
Dan, you’re welcome.
Our support is also available by email [email protected]
Best Regards,
Pavel