Adding Watermarks and Passwords to PDFs without Losing Layers November 13th, 2024 PDFs with layers are a powerful tool with various applications, from architectural designs to GIS to sewing patterns. The ability to manipulate these PDF files without compromising their functionality is crucial for user experience, professional standards, and design integrity. PDF Ink with the SetaPDF-Stamper addon stands out by ensuring that layer, form and table-of-content functionality are preserved while adding watermarks and passwords to files. This makes PDF Ink the ideal choice for anyone who distributes on PDFs with advanced features. Read more »
How to Add Multiple Watermarks Per Page on PDFs October 10th, 2024 With PDF Ink you can practically create a second dimension of content on top of your existing content! Multiple varying watermarks can be added to each PDF page: images, barcodes, and/or text. But also, those watermarks can be skipped on specific pages if desired. Read about how to do that with PDF Ink for WordPress, using settings fields and WP filter hooks. Read more »
Stamping WooCommerce product variation on PDF November 13th, 2023 Here is some PHP code for WordPress/WooCommerce which will make PDF Ink recognize TWO custom shortcodes in any watermark content: [VARIATION_DESC] and [VARIATION_NAME]. These translate to variation description and variation name, both aspects of a WooCommerce variable product. This code (everything above the dashed line) should get added anywhere in your functions.php file. If unsure where to put it, add it at the end of the file. You could also add the snippet using the WordPress plugin called “CODE SNIPPETS” (front and back end). This snippet development was sponsored by customer Michael. Thanks Michael! For reference (maybe for people migrating from WaterWoo to PDF Ink) here is a snippet which would have worked with WaterWoo: Read more » Magic Tags Snippets WooCommerce
Comparing the Best PDF Watermarkers for WooCommerce October 27th, 2023 When choosing between WooCommerce PDF Watermark and PDF Ink for watermarking and passwording PDFs, both plugins offer essential features but differ significantly. PDF Ink provides greater flexibility with customizable watermarks, allowing HTML tags, custom fonts, and multiple watermark locations. It supports advanced encryption options like AES and offers robust file management, including recycling previously watermarked PDFs. In contrast, WooCommerce PDF Watermark has limitations, such as fewer customization options and higher pricing. Read the full comparison! Read more » SetaPDF-Stamper WooCommerce
Invisible Watermarks and Other Ways to Protect Your PDFs April 26th, 2023 PDFs are a fantastic way to share documents – they preserve formatting, are widely compatible, and can even be compressed for easy transmission. But what if that PDF contains confidential, sensitive or monetized information? The Portable Document Format (PDF) offers some security, which when stacked can be quite effective. These include: Invisible Watermarks: A Non-Visual Deterrent A watermark (also called a stamp) is usually a semi-transparent image or text stamped onto the background of each page in a document. The watermark can be your company logo, a confidential notice, or even a name or # copies authorized, or a copyright notice. While watermarks can’t completely prevent copying, they do make unauthorized distribution visually unappealing. Watermarks […] Read more »
Unique Stamp/Password For Each WooCommerce Product PDF April 17th, 2023 A customer wrote with a neato request last month. If one WooCommerce product had several PDFs, and wasn’t a variable product, how could each PDF in the list be watermarked differently from the others? There is no setting for that inside PDF Ink because WooCommerce hasn’t exactly made that function easily possible, and also because it somehow hadn’t been requested until last month. That’s sort of amazing considering how long the plugin has been around! Anyway, it was a good request and so we added a filter hook called ‘pdfink_woo_filter_settings‘. (This hook replaces the ‘wwpdf_filter_settings_array’ in WaterWoo PDF Premium, with identical arguments.) Filtering Settings Because WooCommerce — unlike Easy Digital Downloads — doesn’t give a […] Read more » Snippets WooCommerce
Accessible PDF Stamping March 23rd, 2023 Creating accessible PDFs is essential for ensuring that all users, including those with disabilities, can effectively interact with your documents. Unfortunately, many PDF manipulation plugins can inadvertently strip away accessibility features, leading to frustration for both creators and users. Unlike traditional libraries that may lose important features during processing, the SetaPDF library from SetaSign offers a robust solution by parsing PDF objects directly, allowing for on-the-fly error correction and preserving accessibility. Read more »
How to get a WordPress Media (attachment) ID February 25th, 2023 There are several ways to go about getting the attachment ID (of the ‘attachment’ WordPress post type, stored in the wp_posts WPDB (WordPress Database) table. Here are some of them: From the Media Library: Navigate to Dashboard -> Media. Here you will see your WordPress uploads (Media), either in grid view or list view. They’re both fine, it’s just a preference thing. Instructions for both are below. You can click the small icons to change the Media view from list to grid or vice versa. List View If in List view, navigate to the item by scrolling or using the search bar at the top right. Then hover over the title of that file, like […] Read more »
Different Stamp on First Page of PDF February 20th, 2023 Brought to you by a longtime user, Jake, is the following snippet, which allows for a different stamp on the first page than all other pages. This is a function for users of TCPDF. PDF Ink loops through each PDF page with TCPDF to apply watermarks. What this PHP code says is that if inside this loop, and we are on the first page (the page indicated as “start_page” in PDF Ink settings), apply the special stamp. For all other pages, business as usual (maybe a different stamp. The code needs to be cut and pasted into your WordPress child theme functions.php file, or maybe using the Code Snippets plugin if you are uncomfortable working […] Read more » Snippets
Programmatically Add TCPDF Font (REDIRECTED) February 18th, 2021 If you’re not a developer and don’t know one or won’t hire one, you might want to stop reading here. 😜 Most PDF Ink users will not need this information, anyway. 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. Read more »
Creating your Own Dynamic PDF Watermarks for WooCommerce February 15th, 2021 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 Example In the following example […] Read more » Magic Tags Snippets WooCommerce
Which PDF Manipulation Library to Use? December 10th, 2020 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 library set. Some competitors have […] Read more » SetaPDF-Stamper
How to Communicate PDF Passwords to WooCommerce Customers July 7th, 2020 Clear communication about password-protected PDFs is crucial to avoid customer confusion. For WooCommerce shops, customize the Thank You page and order confirmation emails to inform customers of their PDF passwords. Use hooks to add messages indicating that passwords are their email addresses or phone numbers. Highlight this information with bold text or colors to ensure it stands out. Effective communication enhances the customer experience, reduces support inquiries, and builds trust, ultimately leading to repeat business and positive word-of-mouth for your shop. Read more » Snippets WooCommerce
Sharing Passwords 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 WooCommerce has a setting for […] Read more »
Watermark WooCommerce PDFs with Custom Data June 1st, 2020 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 have collected and have reliable […] Read more » Magic Tags Snippets WooCommerce
Customized PDF Gift Certificates: A Case Study May 1st, 2020 Many retailers — and most 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, Canyon Webworks 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 fairly obvious, and earnest-enough, method is by selling your reputation on paper: gift certificates and gift vouchers. For many businesses there is a real opportunity for income here. And many (future) loyal customers understand that purchasing gift certificates is a way to support businesses right now. They know that by […] Read more »
Custom Fonts with SetaSign-Stamper March 21st, 2020 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 five packaged with the plugin (Times, Courier, Helvetica, Symbol & Zapf Dingbats). There are two methods: settings panel and programmatic. 1. Adding Fonts Via The Settings Panel Under the font selection in PDF Ink settings, you will see a link to add a custom font. Click it! This will take you to a font uploader screen. There is also a link called “Add Fonts” in the main WordPress sidebar menu. Upload your TTF file. Most TTFs […] Read more » SetaPDF-Stamper
A Consideration for Password-Protecting PDF Files August 23rd, 2019 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 way of displaying that pop-up. […] Read more »
How to Watermark your PDF with “Confidential” or “Do Not Distribute” April 22nd, 2019 In today's fast-paced business world, protecting sensitive information is crucial. Adding legalese to your PDFs can safeguard your documents, and with PDF Ink, you can easily add watermarks like "confidential" or "do not distribute" during download. This process is quick and requires minimal effort, allowing for easy updates. Personalization options, such as custom headers, footers, and even coupon codes, enhance your PDFs further. With PDF Ink, you can ensure your EPUB and PDF documents are both secure and professional. Happy watermarking! Read more »
Setting Phone Number as a PDF Password March 19th, 2019 PDF Ink comes with the built-in ability to use a customer’s email as PDF password, but what if we want to use their phone number or an admin-chosen string instead? Here is some example code which will get that done. Make sure to test it, and customize ad-lib to suit your purposes. Of course if you want to set the password as the phone number, you will need to make the phone number field mandatory in your checkout. Phone as password is not a default setting in PDF Ink because WooCommerce carts do not require a phone number by default (it is optional). So make sure to make that field REQUIRED if you are going […] Read more »