Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleClick to open

In ShipHawk’s Active Admin, for the account, navigate to Edit Account > Hazmat Defaults section > Positions for text in UPS Hazmat Label.

Video example: https://recordit.co/22Lw8KW1W5

The window displays a tree view you can use to identify the starting position(s) in pixels of field data.

image-20240201-193141.png

You can then edit the positions as needed. For example, you can adjust position_1 by 10 pixels, changing :

image-20240201-193244.png

Tip: When you use Cmd+Shift+4 on a mac for a screenshot, when you drag the cursor, it measures the pixel distance from where your cursor started. This can be a useful way to identify how you want to change the pixel settings. (There are also various measuring tools available, such as Screen Calipers and PixelSnap.)

A further example: this window lists a tree view of the label text components, specifying the position of each component:

image-20240131-224822.png

For example, the in the tree view, the starting position for position_5 (below) is x = 332 pixels and y = 752 pixels:

image-20240131-225032.png

To adjust position_5 so that x is 20 pixels rightwards, change 332 to 352:

image-20240131-225559.png

NOTE: Measuring the right number of pixels for the offset can be difficult. The process can be iterative, where you specify offsets, save the settings, print the label, and then adjust again as needed. Depending on printer characteristics and other factors, on a given page, the offset (e.g., the x position) can potentially vary for the positions as you go down the page.

...