Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
MIT License
42.36k stars 3.36k forks source link

[Bug]: Auto Redact without PDF-Image conversion causes error #1941

Closed cinderblockgames closed 1 hour ago

cinderblockgames commented 2 hours ago

Installation Method

Docker

The Problem

Using Auto Redact without selecting the PDF to PDF-Image conversion doesn'tw ork.

Version of Stirling-PDF

0.29.0

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

https://pdf.squeakers.space/api/v1/security/auto-redact

Docker Configuration

No response

Relevant Log Output

jakarta.servlet.ServletException: Request processing failed: java.lang.IllegalStateException: PDF contains an encryption dictionary, please remove it with setAllSecurityToBeRemoved() or set a protection policy with protect() for path: /api/v1/security/auto-redact

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

Frooodle commented 2 hours ago

Looking at your log you sent it appears the pdf is encrypted

Are you saying this does work when you do pdf to image?

Can you try send the pdf through remove password function (if you don't know password leave it blank)

cinderblockgames commented 1 hour ago

That did it, t hank you!

Yes, it worked with pdf to image without having to go through the remove password function.