Error Loading PDF Document

Hi,

We’re getting the following error attempting to load a PDF document into Aspose PDF…

#=zsovQKo1GktCdKqbI_0QMPcfX4vY8oSiTxFg1s0g=: Permissions check failed (invalid Perms value). at #=zTg6_Hdjaf3SiPtI$wnmd0qFprt9uxCO5nE4qgZ0=.#=zXUj2f0h5_03q(Byte[] #=zH6iOS$EyDfFT, Byte[] #=zR$SVF48AqWP) at #=zTg6_Hdjaf3SiPtI$wnmd0qFprt9uxCO5nE4qgZ0=.#=zhUELAUTTvN1$(Byte[] #=zN8EUF4E=, Byte[] #=zJ$uxPRs=, Byte[] #=z4_45jn4=, Byte[] #=zjI52ZtM=, Byte[] #=zlTYw6Xo=, Byte[] #=zwGGlTFEW2HH1) at #=zTg6_Hdjaf3SiPtI$wnmd0qFprt9uxCO5nE4qgZ0=.#=zhUELAUTTvN1$(String #=zN8EUF4E=) at #=zTg6_Hdjaf3SiPtI$wnmd0qFprt9uxCO5nE4qgZ0=.#=zfCiNH6g=() at #=zQ0kY3vR848_sgV8Ggw1MeEf$FCAkfyVfWtYKijc=.#=z_3wxlRQ=(#=zbbR425WtpA5CN8rMrvkYen21_5tE7837A5f0WqU= #=zDVN8Dh0=) at #=zVWAs9HvqArjpg33UndJu6sdoX_E67TU2UhnNeh0=..ctor(#=znW6c6Kz1bkIt6JQavitBbgw8LzQRxLN_oY5yyGALRhrB #=zu3az9vze8ZAVTGDOuA==, Byte[] #=zUOEN$xc=, Int32 #=zC9R4Gy8=, String #=zN8EUF4E=) at #=zVWAs9HvqArjpg33UndJu6sdoX_E67TU2UhnNeh0=.#=zqBDR90E=(#=znW6c6Kz1bkIt6JQavitBbgw8LzQRxLN_oY5yyGALRhrB #=zu3az9vze8ZAVTGDOuA==, Byte[] #=zUOEN$xc=, String #=zN8EUF4E=) at #=z2fYmnjfybTNUNPlihX6_MyM3jGAY.#=zptZOP98=() at #=z2fYmnjfybTNUNPlihX6_MyM3jGAY..ctor(#=znW6c6Kz1bkIt6JQavitBbgw8LzQRxLN_oY5yyGALRhrB #=zu3az9vze8ZAVTGDOuA==, #=zaZbtoIoRyxSXtsbPu$D8GMQc0SfvuhbyNw== #=zIQ9KJhTKuNRH, String #=zPyG1wztSsrCE) at #=z8aQEXvOZUpp_J24p1ylx7I61W53MawGEaKjwYFs=.#=zDGZAFf4=(#=znW6c6Kz1bkIt6JQavitBbgw8LzQRxLN_oY5yyGALRhrB #=zu3az9vze8ZAVTGDOuA==, #=zaZbtoIoRyxSXtsbPu$D8GMQc0SfvuhbyNw== #=zIQ9KJhTKuNRH, String #=zPyG1wztSsrCE) at #=zEXR4Cp$fsJ1ZCPDF9ZTsSPpWDutPxe3fs0P0S7Y=.#=zn3RUJAITrtb1() at #=zEXR4Cp$fsJ1ZCPDF9ZTsSPpWDutPxe3fs0P0S7Y=.#=zn0FffEQklDPzPCRUB1enFiVWzIhkrfu4XGHE5AmTuGpKhSs57Q==() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zdFCObQgXFg_HkujIbQ==(MethodBase #=zfTzq_eo=, Object #=zdtOMwjc=, Object[] #=zuevwSC8=, Boolean #=zbmpi5OE=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=z6Hv6kCuPIYdhnM3MLlJMBXA=(MethodBase #=zfTzq_eo=, Boolean #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zLQl2dDeky5H7g9TNbgY3T$YeVMfz(#=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54= #=zfTzq_eo=, #=qNfLSslRZ42c676PSPUZ$7Z$Ehg2HECpP3KJp$H4THnk= #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zzMo5nM8j8Is8bNc35$cEnEE=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHvzJNZEZUbhvoMvzPwRKklM=(Object #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHQ5jCgqPq82EtTFBjT5wyEQ=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zZqvFLZlixDtGkyc1MVIQivuht2eK(#=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54= #=zfTzq_eo=, #=qNfLSslRZ42c676PSPUZ$7Z$Ehg2HECpP3KJp$H4THnk= #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zzMo5nM8j8Is8bNc35$cEnEE=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHvzJNZEZUbhvoMvzPwRKklM=(Object #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHQ5jCgqPq82EtTFBjT5wyEQ=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zI6nigSslys_JhMS5eAqGTuxkJsQWhqlZOjLIHQs=(Object #=zfTzq_eo=, UInt32 #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zWGbyXwdQVjg4qJfbFsFDDwQ=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zNJE_DZBSEofGunEjaw0JHSD4Zjkv0b5XIzxn2Qg=(Object[] #=zfTzq_eo=, Type[] #=zdtOMwjc=, Type[] #=zuevwSC8=, Object[] #=zbmpi5OE=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=z_76M5$80CZ3DlSy4BNLk9PI=(Stream #=zfTzq_eo=, Int32 #=zdtOMwjc=, Object[] #=zuevwSC8=, Type[] #=zbmpi5OE=, Type[] #=zSO9cJr0=, Object[] #=ztLDPP8Q=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zxPau1CBav1d_OAwR1Q==(Int32 #=zfTzq_eo=, Type[] #=zdtOMwjc=, Type[] #=zuevwSC8=, Boolean #=zbmpi5OE=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=z3JRAEzARzGAe9mAThejXfSmCvR$HjIGLkvRjIao=(#=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54= #=zfTzq_eo=, #=qNfLSslRZ42c676PSPUZ$7Z$Ehg2HECpP3KJp$H4THnk= #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zzMo5nM8j8Is8bNc35$cEnEE=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHvzJNZEZUbhvoMvzPwRKklM=(Object #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zHQ5jCgqPq82EtTFBjT5wyEQ=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zI6nigSslys_JhMS5eAqGTuxkJsQWhqlZOjLIHQs=(Object #=zfTzq_eo=, UInt32 #=zdtOMwjc=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zbk4FABtmLP1MviZRBZ$H_B1fpHTVbu51aMM2vTGdNDle(Boolean #=zfTzq_eo=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zWGbyXwdQVjg4qJfbFsFDDwQ=() at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zNJE_DZBSEofGunEjaw0JHSD4Zjkv0b5XIzxn2Qg=(Object[] #=zfTzq_eo=, Type[] #=zdtOMwjc=, Type[] #=zuevwSC8=, Object[] #=zbmpi5OE=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zwgtXn9LCCucwUdMkF2zVtk5CqA7X(Stream #=zfTzq_eo=, String #=zdtOMwjc=, Object[] #=zuevwSC8=, Type[] #=zbmpi5OE=, Type[] #=zSO9cJr0=, Object[] #=ztLDPP8Q=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zO2Yp0pqKsiIdogB5IT9S5hg=(Stream #=zfTzq_eo=, String #=zdtOMwjc=, Object[] #=zuevwSC8=) at #=qzEy3DNULYb598qwl97LIgCVbVP6wJX3ZR7dExcQ5S54=.#=zZTHkd3wwNNzBBbytr$fT$t_fgbTv(Stream #=zfTzq_eo=, String #=zdtOMwjc=, Object[] #=zuevwSC8=) at #=zjQO_xR8hMCWu5O3z_F6gxeWjrztTFsuRwg==.#=zh7_QGuz5ixXQ(String #=zN8EUF4E=, Boolean #=z3D49x$xwzkiB, StringBuilder #=zjfr9E3U=, #=zilR2YBRE$rjFApchOshipw_G528GIvSSQ$vor4Q= #=zSthFci0=) at #=zjQO_xR8hMCWu5O3z_F6gxeWjrztTFsuRwg==..ctor(Stream #=zjq$QH4E=, String #=zN8EUF4E=, Boolean #=z3D49x$xwzkiB) at #=zjQO_xR8hMCWu5O3z_F6gxeWjrztTFsuRwg==..ctor(Stream #=zjq$QH4E=) at #=z8aQEXvOZUpp_J24p1ylx7I61W53MawGEaKjwYFs=.#=zoGS90fM=(Stream #=zjq$QH4E=) at #=zKk98D7r5avzmEqkiKR$hJ_FmO8EkQJL9Cw==..ctor(Stream #=zjq$QH4E=) at #=z8aQEXvOZUpp_J24p1ylx7I61W53MawGEaKjwYFs=.#=zkHsI2LJ2oAe2(Stream #=zjq$QH4E=) at #=zbRFXzR_78sL1qSh45N111x43HdOS.#=zr3A4z0E=(Stream #=zjq$QH4E=) at #=zbRFXzR_78sL1qSh45N111x43HdOS..ctor(Stream #=zjq$QH4E=) at Aspose.Pdf.Document.#=z4MXQV1Q=(Stream #=z$bZO97w=, String #=zN8EUF4E=) at Aspose.Pdf.Document..ctor(Stream input) at Tonic.Documents.PDFDocumentOperations.WriteDocumentFile(Stream inputStream, Stream outputStream, String destFileName, Int32 processingFlags) in D:\Jenkins\jobs\SmartLab\workspace\Release\Sonic\220804_2.09\Common\Tonic.Documents\PDFDocumentOperations.cs:line 90

As you can see from the call stack it is failing in the constructor of Document. When we open the document in Adobe we can see there a number of restrictions have been placed on the document which I suspect is linked to the issue…

image.png (8.2 KB)

We’re currently in the process of attaining permission from the client to give you a file replicating the issue.

@support-1

It looks like the PDF document is password protected and you need to have its password as well in order to open it. Nevertheless, can you please share your sample PDF with us so that we can investigate the issue in our environment and address it accordingly?

The files are definitely not password protected.

@support-1

We need sample file in order to test the case properly in our environment. If we are able to reproduce the issue using the latest version of the API, we will log it for fix and share the ID with you.

Here’s a sample of a document which produces the error…

Sample.pdf (378.7 KB)

@support-1

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-53780

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@support-1

The analysis show that while the document is allowed to be viewed without a password, it is still password protected for edit, please see the attached picture.

Aspose.Pdf needs the owner password to be able to open the document. Please try to obtain the owner password for the document and try to open the document with this password. Let us know if this helps.