September 1, 2022 Updated: January 24, 2025
Lately several customers have been reporting that the competitor’s WooCommerce PDF Watermark plugin is broken, and they’re relieved to have found us. It’s a shame it broke for whatever reason, and we are glad to have you here! Today I took a look at the Woo PDF Watermark feature request list, and it gets me wondering: why people pay more for less plugin? Set per document password PDF Ink has always allowed users to set unique watermarking properties for individual WooCommerce products. Even more, it allows users to set watermarking properties for variations of products. So each PDF can have a different password. Each PDF can have a different watermark. […]
Read more »
February 18, 2021 Updated: January 22, 2025
If you’re not a developer and don’t know one or won’t hire one, you might want to stop reading here. 😜 The filter “pdfink_filter_tcpdf_font_name” adds more granular control of font use during TCPDF manipulations. The font will be added to TCPDF using AddFont(). The $font value returned will be run in $tcpdf->SetFont(). See documentation on the TCPDF AddFont() method.
February 15, 2021 Updated: January 22, 2025
There are quite a few built in shortcodes, but sometimes we just need something… special. You can add your own shortcodes to PDF Ink for on-the-fly customized watermarks on PDF pages. In this simple example we are going to create a shortcode to reflect a customer’s order total (price) in the watermark, when using a custom shortcode: [TOTAL_PRICE] Now when you use [TOTAL_PRICE] in your watermark, the PDF will show the total price of the WooCommerce order the PDF was purchased in. Perhaps this way you could print out the price on a gift certificate. More on how to create gift certificates using PDF Ink can be found here. Another […]
December 10, 2020 Updated: January 26, 2025
At the moment there are quite a few softwares (mostly paid) that allow you to manipulate PDF files as they are sold online. Some even allow you to add identifying customer data to the PDF in order to copyright, encrypt and password intellectual property. Currently the WordPress plugin scene includes three main routes for PDF manipulation. Risking simplifying things to a degree and possibly excluding outliers on the market, most products for WordPress will use these library set #4: Watermarkers using FPDI/FPDF (Option 4) include WooCommerce PDF Watermark from WooCommerce, the Ignite WooCommerce PDF Watermark Stamper, and Tips & Tricks’ WP PDF Stamper. Basically, all the competition uses the same […]
October 20, 2020 Updated: January 22, 2025
A customer just brought up an interesting point: since the watermark width (“cell width” in TCPDF terms) is determined by the PDF page width, won’t a line of text be a “little short” (limited) if the watermark is rotated diagonally? Since it would take a lot of math with a few variables (page size, mainly) to determine the max cell width based on degree of rotation, we just included a new filter in PDF Ink instead. It’s called ‘pdfink_filter_cell_width’. (Hey, I like math but it’s still really smokey in California and getting hard to think.) The following code is a simple example of an attempt to override the cell width […]
July 7, 2020 Updated: January 22, 2025
That title probably caught your attention because… when do we ever share passwords? Actually, we do, a lot. Website administrators often have to share passwords with users and customers who have just been issued a password. Generally that is done automatically, without the administrator ever having any idea what password was shared. You know, for security. And this is something to think about for administrators who are passwording PDF files just before delivery. How will you let the end user know what the PDF password is? In case you’re stumped, here are some ideas for how to get that information across if you’re running a WooCommerce shop. The simple way […]
June 1, 2020 Updated: January 26, 2025
If you would like to create a custom magic tag to display dynamic output, that can usually be done using filter hooks included in PDF Ink. The filter hook to use is ‘pdfink_filter_placement_content’ and the parameters it passes are $content, $key, $order_id and $product_id. $key refers to the placement: 0 is the first placement, 1 is the second, and if you have more, they’d be numbered 2, 3, 4 etc. PSST! The ‘pdfink_filter_placement_content‘ hook also works for Easy Digital Downloads and Download Monitor, with nearly identical parameters. Keep reading! Unless you are adding static content (such as the hour), or global data (such as the $_SERVER[‘REMOTE_ADDR’]), it’s necessary that you […]
May 1, 2020 Updated: January 22, 2025
I’m not sure about you, but we here have definitely been weaving in and out of Space Madness lately. Never seen Ren & Stimpy’s Space Madness? Oh no! Check it out. Lately I especially relate to the gravity free bath soap scene… Back to Reality… Most retailers — and all businesses for that matter — are scrambling to stay afloat during the Great Shutdown of 2020. Here we are no different. Aside from building and supporting WordPress plugins, Little Package also builds and services websites near and far. Clients want to know: when it’s impossible to have customers in the store and clients face-to-face, how can money be made? One […]
March 21, 2020 Updated: January 26, 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 […]
August 23, 2019 Updated: January 25, 2025
A few emails came in and got me thinking about use cases for passworded PDF files. One person wanted to know how to change the pop-up/alert in her PDF reader to let users know the password was their email address. Another person just wanted to know how to change the wording on the WooCommerce Thank You page and in order confirmation emails. Unfortunately, we cannot use PDF syntax to tell a PDF reader to use different wording in the password pop-up. That would be neat, but probably still buggy since there are dozens and dozens of different PDF reader applications (Acrobat/Reader, Foxit, Nitro, Preview, your browser), all with their own […]