Skip to content

Commit

Permalink
Dont remove important tags
Browse files Browse the repository at this point in the history
mcrasser committed Oct 14, 2024
1 parent 47d4d14 commit 56a0da6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Cleaner/ExiftoolAndQpdfCleaner.php
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ public function cleanupFile(FileInterface $file): bool
$filePath = CommandUtility::escapeShellArgument($filePath);
$filePathIntermediate = CommandUtility::escapeShellArgument($rawFilePathIntermediate);
if (
$this->executeCommand('exiftool', '-all:all= '.$filePath.' -o '.$filePathIntermediate)
$this->executeCommand('exiftool', '-all:all= -tagsfromfile @ -Title -TaggedPDF -Language -Subject '.$filePath.' -o '.$filePathIntermediate)
&& file_exists($rawFilePathIntermediate)
) {
$success = $this->executeCommand('qpdf', '--linearize '.$filePathIntermediate.' '.$filePath);

0 comments on commit 56a0da6

Please sign in to comment.