Hi
I download password protected PDF programmatically using c#.
I need to read data that document includes.
Browser asks password to show document.
I use PdfFileInfo to check is PDF file password protected or not.
But, PdfFileInfo.PasswordType shows None and IsEncrypted shows false.
There is a just Creator tag.
Here is the document,
Password:14759308
RiskMerkeziRaporu-14759308.pdf (151.6 KB)
1.png (119.7 KB)
2.png (79.5 KB)
Edit: I have found file permitions
3.png (27.8 KB)
Thanks in advance for any help or lead.
@asposeosman
We are checking it and will get back to you soon.
1 Like
@asposeosman
We were able to replicate the issue in our environment and have logged it as PDFNET-54076 in our issue tracking system. We will further look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.
We are sorry for the inconvenience.
Has this been resolved? As the OP mentioned, only looking to detect “if” a PDF has a password, not to try to read the data.
@todda.jones
The ticket is logged for a specific PDF document for which this feature was not working. Are you facing similar issue? Can you please also share the sample file with us?
No, not a specific document where this is failing, I’m just trying to confirm, that with AsposePDF, we can detect whether or not a PDF file is pwd protected from viewing vs. encrypted-form-fillable vs. open?
Thanks, Todd.
@todda.jones
Yes, you can use Aspose.PDF to detect whether a PDF has password or not. You may find additional information in the below article(s):