Welcome Guest Search | Active Topics | Sign In | Register

Cannot open password protected file Options
Maxim
Posted: Tuesday, April 17, 2018 2:46:32 AM
Rank: Advanced Member
Groups: Member

Joined: 12/18/2013
Posts: 67
Hi,

When I try to open some password protected files I get an exception "last block incomplete in decryption".

I understand that it won't be possible to open and change the file without knowing the password to it, but should it be possible to just open it to read it? For example the number of pages?

I do this:

Code: C#
var file = @"C:\Data\Dev\TheIssue20180417\Doc.pdf";
var eoPdf = new EO.Pdf.PdfDocument(file);
eoPdf.Pages.Count.Dump("eoPdf.Pages.Count");


And get this on the second line:

Code: C#
at EO.Internal.aqc.a(Byte[] A_0, Int32 A_1)
   at EO.Pdf.PdfDocumentSecurity.a.a(Byte[] A_0, Byte[] A_1, Byte[] A_2, Boolean A_3, Boolean A_4)
   at EO.Pdf.PdfDocumentSecurity.a.a(Stream A_0, Byte[] A_1, Stream A_2, Boolean A_3)
   at EO.Pdf.PdfDocumentSecurity.a.a(Int64 A_0, Int64 A_1, Stream A_2, Stream A_3, Boolean A_4)
   at EO.Pdf.PdfDocumentSecurity.a(Int64 A_0, Int64 A_1, Stream A_2, Stream A_3, Boolean A_4)
   at EO.Internal.v4.a(PdfDocumentSecurity A_0, Int32 A_1, Int32 A_2)
   at EO.Internal.ak2.a.a(a45 A_0)
   at EO.Internal.aj.c(a45 A_0)
   at EO.Internal.aj.a(a45 A_0)
   at EO.Internal.aj.a(IEnumerable`1 A_0)
   at EO.Internal.ak2.a(PdfDocumentSecurity A_0)
   at EO.Internal.ak2.a(Boolean A_0, Boolean A_1, PdfDocumentSecurity A_2)
   at EO.Internal.gc.a(Stream A_0, Boolean A_1, Boolean A_2)
   at EO.Internal.gc.a(String A_0)
   at EO.Internal.gc..ctor(String A_0, PdfDocumentSecurity A_1)
   at EO.Pdf.PdfDocument..ctor(String fileName)
   at UserQuery.Main() in C:\Users\Maxim\AppData\Local\Temp\LINQPad5\_gtauthii\query_libjlc.cs:line 40
   at LINQPad.ExecutionModel.ClrQueryRunner.Run()
   at LINQPad.ExecutionModel.Server.RunQuery(QueryRunner runner)
   at LINQPad.ExecutionModel.Server.StartQuery(QueryRunner runner)
   at LINQPad.ExecutionModel.Server.<>c__DisplayClass152_0.<ExecuteClrQuery>b__0()
   at LINQPad.ExecutionModel.Server.SingleThreadExecuter.Work()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()


I'll email the file to your support email box in a few mins.

Is it something you consider a bug or is it by design and cannot be changed?

Thank you,
Maxim
eo_support
Posted: Wednesday, April 18, 2018 5:28:14 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

This is just to let you know that we have found the root cause of this problem. This will be resolved in our next build.

Thanks!
eo_support
Posted: Thursday, April 26, 2018 4:30:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

We have posted a new build that should resolve this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.