80 PdfSignerId AddSigner(
const PdfSignature&
signature,
const std::shared_ptr<PdfSigner>&
signer);
100 unsigned PageIndex = 0u - 1u;
101 std::vector<PdfSigner*> Signers;
102 std::vector<std::shared_ptr<PdfSigner>> SignersStorage;
108 size_t BeaconSize = 0;
109 PdfSignatureBeacons Beacons;
115 void AddSignerUnsafe(
const PdfSignature& signature, PdfSigner& signer);
118 PdfSignerId addSigner(
const PdfSignature& signature, PdfSigner* signer,
119 const std::shared_ptr<PdfSigner>& storage);
120 void ensureNotStarted()
const;
121 std::unordered_map<PdfSignerId, SignatureCtx> prepareSignatureContexts(PdfDocument& doc,
bool deferredSigning);
122 void saveDocForSigning(PdfMemDocument& doc, StreamDevice& device, PdfSaveOptions saveOptions);
123 void appendDataForSigning(std::unordered_map<PdfSignerId, SignatureCtx>& contexts, StreamDevice& device,
124 std::unordered_map<PdfSignerId, charbuff>* intermediateResults, charbuff& tmpbuff);
125 void computeSignatures(std::unordered_map<PdfSignerId, SignatureCtx>& contexts,
126 PdfDocument& doc, StreamDevice& device,
127 const PdfSigningResults* processedResults, charbuff& tmpbuff);
130 PdfSigningContext(
const PdfSigningContext&) =
delete;
131 PdfSigningContext& operator==(
const PdfSigningContext&) =
delete;
134 std::unordered_map<PdfReference, SignatureAttrs> m_signers;
136 PdfMemDocument* m_doc;
137 std::shared_ptr<StreamDevice> m_device;
138 std::unordered_map<PdfSignerId, SignatureCtx> m_contexts;
A context that can be used to customize the signing process.
Definition PdfSigningContext.h:72
friend PODOFO_API void SignDocument(PdfMemDocument &doc, StreamDevice &device, PdfSigner &signer, PdfSignature &signature, PdfSaveOptions saveOptions)
Sign the document on the given signature field.