Custom Fonts with SetaSign-Stamper March 21, 2020 Updated: June 12, 2025 The SetaPDF Core library allows quite a bit of font customization to be done. Check out the official documentation on SetaPDF and fonts & encoding. For the meantime, a quick tutorial on how to get other fonts beyond the three packaged with the plugin (Times, Courier, and Helvetica). Start by finding a TrueType font (.ttf) file which suits your needs. Try to keep the file size small, sub-setting if necessary so that your server isn’t bogged down managing a large font file while trying to manipulate your PDF. Upload the file to your wp-content/uploads directory, somewhere it won’t get overwritten. It makes sense to use the pdf-ink folder, so we’ve […] Read more »
Brazil Shops can add CPF to a PDF October 6, 2018 Updated: June 12, 2025 Here is an example of adding new magic tags to PDF Ink for on-the-fly and totally-customized watermarks. A Brazilian customer using WooCommerce requested a magic tag to display the Cadastro de Pessoas Físicas (CPF) on PDFs. CPF is a taxpayer identification number all citizens of Brazil must use to shop online within Brasil. In order to collect CPF data from customers, our customer uses the Woocommerce Extra Checkout Fields for Brazil plugin.* We wrote the following code to creat the magic tag [BILLING_CPF] to import any customer’s CPF number into their personalized PDF. The plugin mentioned above must be in use, or this code will need to be modified to […] Read more » Magic Tags Snippets
TCPDF Performance Tuning April 26, 2016 Updated: June 12, 2025 Make sure to test your watermarking thoroughly before going live! TCPDF is a fallible third-party library which does its best to parse/understand and re-write your PDF with your desired changes (watermarks/encryption/etc), but it cannot possibly work on all PDFs and on all servers 100% of the time. Stay realistic, think carefully through the process, plan, and do your testing. PHP Version You should be running at least PHP version 7.2 for the plugin to work, but higher that for it to work WELL. WordPress recommends you run PHP version 7.4 or higher, but even that is old PHP! PDF Ink is PHP version 8.3+ compatible, so don’t hesitate to upgrade […] Read more »