PDF signatures with background image, if provided
As a consumer of Poppler, I use PDFDoc::sign to digitally sign a PDF document. PDFDoc::sign takes many parameters, i.e.
- a std::string parameter
imagePath
, a background image to used for the signature widget - a GooString parameter
signatureLeftText
, text to be rendered into the signature widget
Calling PDFDoc::sign ultimately invokes AnnotAppearanceBuilder::drawSignatureFieldText which will only draw the background image identified by imagePath
, if signatureLeftText
is an empty string. This is neither obvious nor intuitive. Currently, PDFDoc::sign does not allow me to have both: non-empty signatureLeftText
and a background image.
As a consumer of PDFDoc::sign I want it to draw a background image, if I provide one when calling the method.