C# SDK Сheck if the file is encrypted before opening

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Max921
User
Posts: 4
Joined: Tue Apr 27, 2021 12:14 pm

C# SDK Сheck if the file is encrypted before opening

Post by Max921 »

1) Is it possible to check if a file is encrypted before opening? If so, how?
2) How to open a file with a given password so that the password entry window does not appear?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19924
Joined: Mon Jan 12, 2009 8:07 am

Re: C# SDK Сheck if the file is encrypted before opening

Post by Stefan - PDF-XChange »

Hello again Max921,

Are you using the Viewer SDK?
I moved your other topic from the end user Editor to the Editor SDK section, and answered assuming you were using that one, but if it's another of our SDK products - please do confirm either here or in the other topic.

Kind regards,
Stefan
Max921
User
Posts: 4
Joined: Tue Apr 27, 2021 12:14 pm

Re: C# SDK Сheck if the file is encrypted before opening

Post by Max921 »

I use PDFXEdit lib.
(<PackageReference Include="PDFXEdit" Version="8.0.333" />)
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19924
Joined: Mon Jan 12, 2009 8:07 am

Re: C# SDK Сheck if the file is encrypted before opening

Post by Stefan - PDF-XChange »

Hello Max921,

Thanks! So lets continue the discussion in the other topic that is in the correct section of the forums!

Kind regards,
Stefan