perevoznyk / swelio-pdf

PDF digital signature with Belgian eid card
4 stars 3 forks source link

Signed PDF size? #2

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

I noticed the signed file is ~1MB bigger than the original. Is this normal, or is there a way to have a ligther version?

Thanks,

Regards,

Michael

perevoznyk commented 6 years ago

PDFSigner implements long term signature for archiving purposes standard. It is normal to have 1MB size increasing. It is possible to make it smaller, but the implemented standard will be different, for example simple CMS or CADES-B. This depends from the purpose of the signature. How long do you plan to keep document, etc...

ghost commented 6 years ago

Thanks. This is very helpful. It would be nice to have this as an output option. We might have different planed duration depending on the document type.

perevoznyk commented 6 years ago

The purpose of swelio-pdf project is to provide library for developers, not the final product. PDFSigner is just a simple example how to integrate library in the product.

ghost commented 6 years ago

OK. I might fork the sample to a full tool then. Thanks for your help.