PHP code example of klement-alexander / p7m-extractor
1. Go to this page and download the library: Download klement-alexander/p7m-extractor library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
klement-alexander / p7m-extractor example snippets
use FilippoToso\P7MExtractor\P7M;
$success = (new P7M())
->setSource('source.pdf.p7m')
->setDestination('destination.pdf')
->save();
use FilippoToso\P7MExtractor\P7M;
$success = P7M::convert('source.pdf.p7m', 'destination.pdf');
use FilippoToso\P7MExtractor\P7M;
$success = (new P7M('/custom/path/to/openssl'))
->setSource('source.pdf.p7m')
->setDestination('destination.pdf')
->save();