PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
PDF::SignHandler Class Referenceabstract

A callback interface for signing a PDF document. More...

#include <pdfsdk/cxx/form_field.h>

Public Member Functions

virtual std::string GetFilter ()=0
 Get the filter for the signature.
 
virtual std::string GetSubFilter ()=0
 Get the subfilter for the signature.
 
virtual void FillSigDict (Object dict)=0
 Fill the signature value dictionary with additional entries.
 
virtual size_t GetNumCerts ()=0
 Get the number of certificates.
 
virtual std::vector< uint8_t > GetCertData (size_t index)=0
 Get the certificate data at the specified index.
 
virtual size_t EstimateMaxSize ()=0
 Estimate the maximum size of the signature contents.
 
virtual std::vector< uint8_t > Sign (const uint8_t *data, size_t size)=0
 Sign the specified data.
 

Detailed Description

A callback interface for signing a PDF document.

Member Function Documentation

◆ FillSigDict()

virtual void PDF::SignHandler::FillSigDict ( Object dict)
pure virtual

Fill the signature value dictionary with additional entries.

Parameters
dictThe signature dictionary to fill.

◆ GetCertData()

virtual std::vector< uint8_t > PDF::SignHandler::GetCertData ( size_t index)
pure virtual

Get the certificate data at the specified index.

Signing certificate should be the first one.

◆ Sign()

virtual std::vector< uint8_t > PDF::SignHandler::Sign ( const uint8_t * data,
size_t size )
pure virtual

Sign the specified data.

Parameters
[in]dataThe raw data to sign.
[in]sizeThe size of the data to sign.
Returns
The signature contents.

The documentation for this class was generated from the following file: