Portuguese eID Middleware SDK
Version: 3.12.0
|
#include <eidlib.h>
Public Member Functions | |
PTEIDSDK_API void | setFileSigning (char *input_path) |
PTEIDSDK_API void | addToBatchSigning (char *input_path) |
PTEIDSDK_API void | enableTimestamp () |
PTEIDSDK_API void | enableSmallSignatureFormat () |
PTEIDSDK_API char * | getOccupiedSectors (int page) |
PTEIDSDK_API void | setCustomSealSize (unsigned int width, unsigned int height) |
PTEIDSDK_API void | setCustomImage (const PTEID_ByteArray &image_data) |
Helper class for the PTEID_EIDCard::SignPDF() methods - it defines multiple options that affect the signature operation e.g Signature in batch mode, adding a cryptographic timestamp, small format visible signature and custom image in the visible signature
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::addToBatchSigning | ( | char * | input_path | ) |
Add a file to a batch mode signature.
This means the signature PIN introduced when the first signature is performed is cached in memory for the minimum time needed to sign the complete set of files
input_path | Absolute path for a PDF file to be signed in batch mode |
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::enableSmallSignatureFormat | ( | ) |
Use a smaller format for the visible signature which is 50% smaller in height but as wide as the regular format. If using a smaller format and a custom seal size at the same time the final size is 50% smaller then the current configured size. The default "Cartão de Cidadão" logo or a custom image supplied via setCustomImage() will not be included.
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::enableTimestamp | ( | ) |
Apply a timestamp after signing the document.
Apply a cryptographic timestamp on the signature(s) - Internet connection is required. By default the implementation will use the official Cartão de Cidadão TSA at ts.cartaodecidadao.pt. Information about request limits described at https://pki.cartaodecidadao.pt - in section "Serviço de Selos Temporais". Using PTEID_Config with parameter PTEID_PARAM_XSIGN_TSAURL a different TSA may be specified
PTEIDSDK_API char* eIDMW::PTEID_PDFSignature::getOccupiedSectors | ( | int | page | ) |
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::setCustomImage | ( | const PTEID_ByteArray & | image_data | ) |
Change the image that's used on the bottom of the visible signature This image will replace the default "Cartão de Cidadão" logo
image_data | - image data in JPEG format (mandatory size: 351x77 px) |
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::setCustomSealSize | ( | unsigned int | width, |
unsigned int | height | ||
) |
Change the size of the visible signature (Minimum size: 120x35 px) Visible signature never will be smaller than page Except if the page is smaller then minimum size
width | - width of the visible signature (Minimum size: 120 px) |
height | - height of the visible signature (Minimum size: 35 px) |
PTEIDSDK_API void eIDMW::PTEID_PDFSignature::setFileSigning | ( | char * | input_path | ) |
Set the PDF file to sign - it can be supplied either with this method or through the class constructor