2025-02-24
1) Install Ghostscript via Homebrew:
brew install ghostscript
2) Run the following command to remove the OCR layer:
gs -o output.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
This will create output.pdf without the recognized text layer.
3) Open the output file and verify that text cannot be selected.
1) Встанови Ghostscript через Homebrew:
brew install ghostscript
2) Виконай команду для видалення OCR-шару:
gs -o output.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
Це створить output.pdf без розпізнаного тексту.
3) Відкрий отриманий файл і перевір, що текст не виділяється.