mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
PROD - PRINT - PDF - Generated pdf cant be printed even if no password is defined (#4008)
* fix password * owner pass * fix
This commit is contained in:
@@ -49,19 +49,9 @@ class PDFRecords extends PDF
|
|||||||
$this->thumbnailName = $printer->getThumbnailName();
|
$this->thumbnailName = $printer->getThumbnailName();
|
||||||
$this->previewName = $printer->getPreviewName();
|
$this->previewName = $printer->getPreviewName();
|
||||||
|
|
||||||
$this->pdf->SetProtection([
|
if (!empty($userPassword)) {
|
||||||
'print',
|
$this->pdf->SetProtection([], $userPassword);
|
||||||
'modify',
|
}
|
||||||
'copy',
|
|
||||||
'annot-forms',
|
|
||||||
'fill-forms',
|
|
||||||
'extract',
|
|
||||||
'assemble',
|
|
||||||
'print-high',
|
|
||||||
'owner'
|
|
||||||
],
|
|
||||||
$userPassword
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->pdf->setPrintOwnerUser($app->getAuthenticatedUser());
|
$this->pdf->setPrintOwnerUser($app->getAuthenticatedUser());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user