Creating a Custom Report Watermark

Creating a custom watermark is currently an advanced process. You will need to be familiar with image editing and comfortable editing CSS files. If you need help with this process, please contact Support at 828-254-2030. Custom watermarks can be done as part of a paid report stylesheet edit.
  1. Create a watermark from your logo.
    1. Open a high quality version of your current logo in an image editor such as PhotoShop, Paint.net, or Gimp.
    2. Using a tool such as as Levels, create a faded version of your logo for use as a watermark. For a watermark image not to interfere with your report content, you should make the watermark image very light.
    3. You can experiment with the size of your watermark image, but a limit of 500px wide (for landscape oriented logos) and/or 500px tall (for portrait oriented logos) is a good place to start.
    4. Acceptable file formats are .jpg, .gif, or .png.
  2. Find your print format folder.
    1. To find this in HomeGauge, go to the menu File -> Printing Options and click on the Style & Format tab. Below the list of Styles on the right, you will see a line that says "Folder: Format#" -- that shows you which folder the style you use resides in. That folder resides in \Documents\HomeGauge\PrintFormats\ -- so, for example, the Narrative 3 format is in the folder: \Documents\HomeGauge\PrintFormats\Format8
  3. Copy your watermark image.
    1. Copy the watermark image file into the folder you found in Step 2.
  4. Make a custom copy of the standard CSS file you use.
    1. Using Windows file explorer, go to the same folder found in Step 2, and make a copy of the CSS file that you use. The CSS file you use will match the name of the Style option you found in your software in step 2 such as Blue.css or Red.css. Once you've made a copy, rename this copy to something else you'll remember such as Blue-CompanyName.css. It's important that this file be renamed so your customizations aren't overwritten in a reinstall.
  5. Edit the custom CSS file.
    1. Open up the custom CSS file you created in Step 4. You can use any text editor, such as Notepad, Notepad++ or whatever editor you are comfortable using. You will want to make the following edits: Note: We are assuming in this example that you called your image file watermark.jpg. You can use a different name for your file, but you will have to replace the name with the correct name in your css file.
    2. Add these lines to the top of your css file. This tells HomeGauge to use your watermark image.
      /*
      hgImageInclude("watermark.jpg")
      */
    3. Look for the section starting with @media screen and look for the class inside of that called .screen-page. You will want to edit that line. Remove this part:
      background-color:#fff;
      Replace it with this:
      background: url("watermark.jpg") #fff center center no-repeat;
      Then add the following line to the very end of the @media screen section before the final closing }:
      div[name^=sec-id-Cover] { background:#FFF; }
    4. Look for the section starting with @page. You will want to add a new line to that for the watermark. The entire section should look something like this:

      @page {
      size: US-Letter;
      margin: 30pt 25pt 40pt 25pt;
      @bottom { content: flow(pdffooter); }
      @top { content: flow(pdfheader); }
      background: url("watermark.jpg") center no-repeat;
      }
    5. Look for the section Start with @page:first. You will want to add a new line to that for the watermark so that it doesn't show up on your cover page. The entire section should look something like this:

      @page:first {
      @bottom { content: flow(none); }
      @top { content: flow(none); }
      background: none;
      }
    6. Save your file.

  6. Select this new style from your printing options. Go back to the menu File -> Printing Options and click the Style & Format tab. Find your new custom CSS file from the list on the right, select it, and click OK. The next time you upload or print, you should have your watermark in your report.
  • 209
  • 08-Jan-2018
  • 163 Views