for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* BaconPdf
*
* @link http://github.com/Bacon/BaconPdf For the canonical source repository
* @copyright 2015 Ben Scholzen (DASPRiD)
* @license http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
*/
namespace Bacon\Pdf\Encryption;
use Bacon\Pdf\Writer\ObjectWriter;
* Encryption for handling PDF version 1.4 and above.
class Pdf14Encryption extends Pdf11Encryption
{
* {@inheritdoc}
protected function writeAdditionalEncryptDictionaryEntries(ObjectWriter $objectWriter)
parent::writeAdditionalEncryptDictionaryEntries($objectWriter);
$objectWriter->writeName('Length');
$objectWriter->writeNumber(128);
}
protected function getRevision()
return 3;
protected function getAlgorithm()
return 2;
protected function getKeyLength()
return 128;