I’m generating client invoices and considering html2pdf, but I worry it’s not safe for documents with payment details. Is that a bad idea for a small freelance business?
I wouldn’t treat html2pdf as unsafe by itself, but it depends on where the invoice data and generated PDF are handled. Keep client details and payment information on a trusted device, avoid public/shared computers, and protect the PDF with a password if it contains sensitive data. I use a proper PDF program for saved invoices and only use html2pdf for quick copies. Are you running it on your own computer or a website?
Depends what you mean by “payment details” and which html2pdf you’re using. If it’s a client-side library, the invoice data stays on your machine, but don’t put full card numbers or bank credentials in a PDF you email. Which one is it, a JavaScript library or an online converter?
If it’s running client side in the browser or on your own server you control, it should be fine security wise. I’d just make sure the connection is https and you’re not sending data through some random third party service in between.
Had a similar worry last year with my coaching invoices. If it means uploading client payment details to an online tool, I wouldn’t risk it. I learned the hard way to just save invoices straight to PDF on my computer and password protect them after. Not sure if that fits your workflow, though.
I had the same concern when sending invoices from my phone. If you mean a local html2pdf library, it creates the PDF on your own system, so the main risk is how you store and send it. I would never put full card numbers or bank login details in an invoice, and I would password-protect the PDF if it contains sensitive information. Online converters are different, so check their privacy policy before uploading client data.