diff --git a/CHANGES.rst b/CHANGES.rst index d194d8b..956a8f2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,9 @@ Changelog 1.0.1 (unreleased) ------------------ -- Nothing changed yet. +- Support changing PDF watermark image on publication. + `#2385 `_ + [reinhardt] 1.0.0 (2024-06-12) diff --git a/src/recensio/plone/content/publication.py b/src/recensio/plone/content/publication.py index 10a5805..9ac0623 100644 --- a/src/recensio/plone/content/publication.py +++ b/src/recensio/plone/content/publication.py @@ -1,11 +1,25 @@ from plone.dexterity.content import Container +from plone.namedfile.field import NamedBlobImage from plone.supermodel import model +from recensio.plone import _ from zope.interface import implementer class IPublication(model.Schema): """Marker interface and Dexterity Python Schema for Publication.""" + pdf_watermark = NamedBlobImage( + title=_("label_publication_pdf_watermark", default="PDF watermark"), + description=_( + "description_publication_pdf_watermark", + default=( + "Upload a publication logo for the PDF coversheet. Transparent PNG " + "format images are recommended." + ), + ), + required=False, + ) + @implementer(IPublication) class Publication(Container):