• Contact
  • Company
  • Login / My Account
  • Shopping Cart (0)
Document Conversion Made Easy!
Peernet Menu
  • Products
      • Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG, etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • enterprise-licensingEnterprise Licensing for your Corporation
      • discounts-multiple-licensesDiscounts for Purchasing Multiple Licenses
      • distribute-bundle-peernet-softwareDistribute PEERNET Software Bundled with your Product
  • Purchase
      • Purchase Virtual Printers
        • tiff-image-printer-iconTIFF Image Printer – Create TIFF Images
        • raster-image-printer-iconRaster Image Printer – Create TIFF, PDF, JPEG etc.
        • pdf-image-printer-iconPDF Image Printer – Create Searchable PDF
      • Purchase PDF Editor
        • pdf-creator-plus-iconPDF Creator Plus – Merge, Edit, Create Searchable PDF
      • Purchase Batch Converters
        • document-conversion-service-iconDocument Conversion Service – Unattended 24/7 Batch Converter
        • file-conversion-center-iconFile Conversion Center – Desktop Batch Converter
      • Purchase Reporting Software
        • peernet-reports-iconPEERNET Reports – Barcode, Report and Label Software
      • peernet-online-store-purchase-optionsPurchase Options
      • peernet-software-license-levelsLicense Levels
      • peernet-software-purchase-resellerFind Resellers
      • peernet-software-sales-faqsSales FAQ
  • Learn & Support
        • peernet-help-centerTutorials
          • Learn the Basics or Go Beyond with Video Tutorials, FAQs and Guides

            At PEERNET we pride ourselves on providing the best support and the fastest response times in the industry.
          • Select Software Tutorials:
              • tiff-image-printer-iconTIFF Image Printer
              • raster-image-printer-iconRaster Image Printer
              • pdf-image-printer-iconPDF Image Printer
              • pdf-creator-plus-iconPDF Creator Plus
              • document-conversion-service-iconDocument Conversion Service
              • file-conversion-center-iconFile Conversion Center
              • peernet-reports-iconPEERNET Reports
        • peernet-software-faqsSales FAQ
          • Popular Topics

            Find all the answers you need to our most frequently asked questions.
              • Download & Install
                • How do I download software I already purchased?
              • Purchasing & Renewing
                • How do I purchase PEERNET software?
                • What license level do I need?
                • How do I add licenses to an existing serial number?
                • How do I renew my annual subscription?
              • Licensing & Operating
                • How do I activate my new PEERNET software?
                • How do I activate my software without an internet connection?
                • Where do I find my serial number?
                • How do I move my software to a new computer?
                • How do I update/upgrade my software to the latest release?
            • Read all Sales FAQs
  • Blog
  • Menu Menu

Dynamic Stamp Content

November 4, 2024/by Robert Massart

Dynamic stamp content is text content assembled from information that changes based on preset conditions or user input. Dynamic stamps display real-time, variable information that can change from page to page, document to document, and user to user.

Quick Links

  • What is Dynamic Stamp Content?
  • How to Use Dynamic Stamp Content
  • Run Command Macros
  • Environment Variables
  • Custom Registry Keys
  • Creating Dynamic Stamp Content
    • Adding the User and Company Information
    • Creating a Date Stamp
    • Adding a Unique ID
    • Adding the Case Code
  • Positioning the Dynamic Content Stamps
  • Conclusion

What is Dynamic Stamp Content?

Bates stamping is one of the most recognizable forms of dynamic stamp content due to its prevalent use by the legal industry for organizing and identifying documents. Other uses for dynamic stamping are:

  • Date and Time stamps
  • Page Numbering
  • User Information
  • Project and Client Names
  • Workflow and Document Status Labels
  • Document File Path
  • Paths to company logos and other images to watermark pages

TIFF Image Printer, Raster Image Printer, and PDF Image Printer include a stamping feature for adding image, text, page numbering, and date and time stamps on the pages of your created documents. Combined with PEERNET’s run command macros, environment variables, and registry keys, you can build dynamic stamp content to place on your pages.

How to Use Dynamic Stamp Content

You can use dynamic content in the image stamp path, custom text in a text stamp, and any text in page number, date, and time stamps. You can combine static text and dynamic content to create your final stamp result. For instance, you can add dynamic content like a unique ID, the name of the user who created the file, and date and time information to a header or footer on a created file for tracking purposes.

Document converted to TIFF image with dynamic stamp content in the footer.

There are three ways to supply dynamic content: PEERNET’s run command macros, environment variables, and custom registry keys you create.

Run Command Macros

The Image Printers define these variables, or macros, as we call them. Initially created for use in the Run Commands, you can also use them to build dynamic stamp content. A PEERNET run command macro is specified using the syntax $(VariableName), where VariableName is one of the predefined macros.

The macro is a placeholder and is replaced with its dynamic value when placing the stamp on your page. The collection of macros includes print job information about the document you printed to create your file, unique ID numbers generated by the image printers, print job information, and the file name of the created file.

Create dynamic stamp content using run command macros to auto-generate information

Environment Variables

Environment variables are key-value pairs where the key is the variable name, and the value is the associated data. They are part of the operating system. Any running program can ask for the value of an environment variable by name. An environment variable is referenced by placing a % sign before and after the variable’s name. The use of environment variables enhances the flexibility of dynamic stamp content.

The Windows operating system defines several well-known environment variables, such as %TEMP%, %USERNAME%, and %COMPUTERNAME%. You can create new custom environment variables for your user account or all users through the System Properties window.

A typical use of an environment variable might be to store the path to company logos or other watermarking images. This path might differ between users, but if we use the environment variable name to specify the value in the path to a watermark image stamp, we’ll always be able to find the image.

Environment variables can be used to create dynamic stamp content based on the current user.

Custom Registry Keys

Registry keys are similar to environment variables. Stored in the Windows Registry, they contain information that can later be retrieved and used as dynamic stamp content.

You can manually add registry keys, or more often the case, they are created and updated by another program that integrates TIFF or PDF creation using our Image Printers.

The Windows Registry stores configuration settings and options for the Windows operating system and keeps track of information and settings for installed software and hardware devices. Editing the registry can be risky if you make incorrect changes. For this reason, only advanced users or administrators should modify it directly.

Use the special syntax, $[registry key], when using a registry key in a stamp. Replace the name ‘registry key’ with the complete path to the registry key with the value name as that last item.

Registry keys created and updated by another program can be queried to fill in text in dynamic stamps.

Creating Dynamic Stamp Content

To show you the power of dynamic stamp content, we’re adding stamps to a printer profile that adds the following to the bottom of each page for tracking purposes:

  • A text stamp displaying the user and company name using values obtained from environment variables.
  • The date we create the file using the built-in date/time stamp.
  • A unique ID for the file, using the predefined run command macro $(FileGUID).
  • A text stamp containing the case code for identification using information retrieved from a registry key.

Adding the User and Company Information

A well-known environment variable containing the current user name already exists as %USERNAME%. There isn’t one for the company name, so we will create a custom system environment variable, %COMPANYNAME%, to use as dynamic stamp content in our new stamp. Here, we’ve set it to our company name, PEERNET Inc..

After adding the new environment variable, we can use both values in our dynamic text stamp.

Creating a Date Stamp

The built-in date and time stamp makes adding date and time information stamps easy. Add your custom text before or after the date, and choose from a selection of date, time, and date and time formats.

Adding a Unique ID

The printers will generate a unique ID each time you print a file. You can reference this ID using the run command macro $(FileGUID). Here, we’ve added some static text at the start, followed by the macro as a line in our footer text.

Adding the Case Code

A case code in the footer of a document is a dynamic stamp value that another program could create as part of a workflow that integrates with the Image printers. You can manually create and edit registry keys using the Windows regedit program, but take care when editing and deleting values. The Windows registry is a critical part of the operating system; incorrect changes and deletions can be catastrophic.

Now that we have a registry key with dynamic content, we can use it in a stamp. To use the registry key in the stamp text, use the syntax $[path to registry value]. Specify the full path to the key ending with the name of the value you want to retrieve.

Positioning the Dynamic Content Stamps

Now that we have our dynamic stamp content, the last step is to position each stamp to appear one after the other at the bottom left of the page.

The default placement of a stamp is always the center of a page. To position each stamp in the footer, we first need to change the alignment of each stamp to the bottom and left of the page.

To change the alignment, go to the Position tab for each stamp and set the horizontal alignment to the left and the vertical alignment to the bottom. This places all four stamps directly on top of each other in the bottom left.

Changing the alignment of the dynamic stamp from center of the page to the bottom left.

Next, we want to fine-tune the position of the stamps to be 0.25 inches from the left edge of the paper and offset each stamp vertically so that they line up one under the other. We move the position of each stamp up the page using an increasingly larger negative offset.

The first line of our footer has the highest negative offset. The offset values here work with the chosen font of Arial and a size of 8pt. When using different fonts or a larger size of Arial, adjust the offsets to account for the change in text size. For our sample, the offsets are -0.43, -0.32, -0.21, and -0.10 inches, respectively.

Setting each dynamic stamp vertical offset to line up each stamp under the previous one.

Conclusion

Dynamic stamp content is a powerful tool for cataloging documents and automating document management workflows. Whether adding contextual information, content storage data, or enforcing security measures and tracking information, dynamic stamps offer a flexible and efficient solution to meet your document needs.

https://www.peernet.com/wp-content/uploads/creating-dynamic-stamp-content.png 800 800 Robert Massart https://www.peernet.com/wp-content/uploads/peernet-logo.png Robert Massart2024-11-04 16:47:502024-11-04 16:47:53Dynamic Stamp Content
  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports
Search Search

Recent Posts

  • PNSrv11Lib to PNSrv12Lib: Migration Made Easy
  • Migrating to Version 12: Compatibility Mode Quick Start Guide
  • Well Logs: Stitch PDF Pages into a Continuous TIFF Image
  • Dynamic Stamp Content
  • Convert to PDF: The Power of On-Premise PDF Creation

INTERESTING LINKS

Below are some interesting links for you! Enjoy your stay :)

RSS Feed Logo RSS Feed Logo Subscribeto RSS Feed

OUR PRODUCTS

  • Document Conversion Service
  • TIFF Image Printer
  • Raster Image Printer
  • PDF Image Printer
  • PDF Creator Plus
  • File Conversion Center
  • PEERNET Reports

LATEST NEWS

  • PNSrv11Lib to PNSrv12Lib: Migration Made EasyMarch 14, 2025 - 2:10 pm
  • Migrating to Version 12: Compatibility Mode Quick Start GuideMarch 14, 2025 - 2:09 pm
  • Well Logs: Stitch PDF Pages into a Continuous TIFF ImageMarch 14, 2025 - 2:08 pm
  • Dynamic Stamp ContentNovember 4, 2024 - 4:47 pm

BUSINESS INFORMATION

Toll Free: 1-800-883-7980 North America

Tel: 1-613-224-6894

Our office hours are Monday to Friday, from 0900 hrs to 1700 hrs, Eastern Standard Time.

Email Address: [email protected]
Copyright © 1997-2026. All rights reserved. Terms and Conditions | Disclaimer | Privacy Policy | Trademarks.
PEERNET® is a registered trademark of PEERNET Inc.
  • Link to Youtube
  • Link to Rss this site
  • Products
  • Purchase
  • Company
  • Contact
Link to: Well Logs: Stitch PDF Pages into a Continuous TIFF Image Link to: Well Logs: Stitch PDF Pages into a Continuous TIFF Image Well Logs: Stitch PDF Pages into a Continuous TIFF Image Link to: Convert to PDF: The Power of On-Premise PDF Creation Link to: Convert to PDF: The Power of On-Premise PDF Creation Convert to PDF: The Power of On-Premise PDF Creation
Scroll to top Scroll to top Scroll to top