PDFDoc::sign is inconsistent with Qt APIs
The Qt APIs have a data structure NewSignatureData
where applications store all data relevant to signing a PDF document. Poppler doesn't have a counterpart to this data structure. Instead, the APIs "somehow" grind their data into a single call to PDFDoc::sign
.
The data structure and PDFDoc::sign
are a bit out of sync.
PDFDoc::sign
takes a parameter imagePath
, which doesn't have a corresponding attribute in NewSignatureData
.
NewSignatureData
has an attribute leftFontSize
, which it cannot pass to PDFDoc::sign
. However, PDFDoc::sign
creates a new object of type FormFieldSignature
which does have an attribute that should be set to leftFontsize
.