This project is not covered by Drupal’s security advisory policy.
Signmaker UI connects Drupal to the sfenvironment/signmaker PHP library, which builds printable signs for refuse bins. It is for sites that want visitors to make their own compost, recycle or landfill signs from images the site provides: a block embeds the sign maker, visitors pick item images, and the sign downloads as a PDF. Site editors manage the item images as media items.
Features
- A Signmaker Block that embeds the sign maker for one refuse type in an iframe, with a configurable bounding box that sets where items appear on the background image.
- A Signmaker Images media type with an Image field and a Refuse Type field (Compost, Recycle, Landfill). File (Field) Paths saves each image into
public://signmaker/<refuse type>/. - Up to eight items per sign, four to a row, on a letter-size landscape page. Save PDF renders the sign with Dompdf on the server and downloads it as
signmaker.pdf. - The iframe is resized to fit its content when it loads and after a Bootstrap tab (
.nav-tabs .nav-link) is clicked. - Deleting a Signmaker Images media item deletes its image file, so the item no longer appears in the sign maker.
- A Use signmaker permission that controls access to the sign maker.
Requirements
- Drupal 10.3 or later, or Drupal 11, on PHP 8.1 or later.
- The sfenvironment/signmaker library, which uses Dompdf. It is only available as
dev-master. - File (Field) Paths.
- The installed configuration also needs these modules enabled first: core Media, Media Library, Image, File, Options, Path and Content Translation, plus SVG Image and Field Permissions.
- The Composer
vendordirectory next to the web root, as indrupal/recommended-project, and the public files directory reachable asfiles/in the web root, on disk and by URL.
Installation and configuration
- Require the module and the library, then enable the dependencies and the module:
composer require drupal/signmaker_ui sfenvironment/signmaker:dev-master drupal/svg_image drupal/field_permissions drush en media media_library image file options path content_translation svg_image field_permissions drush en signmaker_ui
Installing the module creates
public://signmaker/compost,public://signmaker/recycleandpublic://signmaker/landfill. - Grant Use signmaker to every role that should use the sign maker, including Anonymous user for a public page.
- Put a background image named
background.<extension>, such asbackground.png, in each refuse type directory. It can be uploaded as a Signmaker Images media item with that file name and the matching Refuse Type. - Add the item images as Signmaker Images media items, each with a Refuse Type. Every file in the directory other than the background is offered as an item.
- Place a Signmaker Block for each refuse type and set its Type and Bounding Box of Images. Top and Left are percentage offsets from the top and left edges of the background; Right and Bottom are also measured from the left and top edges, so 10, 90, 90, 10 leaves a 10% margin on every side.
Usage
The block shows the background image and a menu of the item images. Clicking an item adds it to the sign or removes it. Start Over clears the selection, and Save PDF sends the sign to /signmaker_api, which returns the PDF for the browser to download. If the sign maker cannot be built, for example because the refuse type directory or its background image is missing, the iframe shows an error and the reason is logged in the signmaker_ui channel.
How this module is built
Changes to this module since 2026 were drafted with an AI coding assistant (Claude Code). The maintainers review, test and take responsibility for every change, and the code checks run on drupal.org's CI. Contributions follow Drupal's policy on the use of AI when contributing.
Supporting this module
Developed and maintained by Tyler Brown Cifu Shuster of FivePaths, LLC. Development sponsored by FivePaths and the San Francisco City Government.
Project information
- Project categories: Integrations
5 sites report using this module
- Created by tbcs on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
