We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

System.NotSupportedException error when opening a "secured" pdf

I am using the following line of code to open a "secured" pdf file:

Aspose.Pdf.Document pdfDocumentSource = new Aspose.Pdf.Document(fileToCombine);Aspose.Pdf.Document pdfDocumentSource = new Aspose.Pdf.Document(fileToCombine);

This results in the following error:

System.NotSupportedException was caught
Message=Specified method is not supported.
Source=Aspose.Pdf
StackTrace:
at . ..ctor( , Byte[] , Int32 , String )
at . . ()
at . ..ctor( , )
at . . ( , )
at . . ()
at . . ( , )
at . . . ( , & )
at . . ( , & )
at . . (Int64 , ArrayList )
at . . ()
at . ..ctor(Stream , String , Boolean )
at . ..ctor(String )
at . . (String )
at . ..ctor(String )
at . . (String )
at . . (String )
at . ..ctor(String )
at Aspose.Pdf.Document. (String , String )
at Aspose.Pdf.Document..ctor(String filename)
at PDFCombine.PDFCombine.appendPDFFileToPDFDocument(String fileToCombine, Document document) in c:\Work\Personal\Jason\Projects\Test\PDFCombine\PDFCombine\PDFCombine.cs:line 293
at PDFCombine.PDFCombine.combinePDFWithAssociatedFiles(String pdfFilePath) in c:\Work\Personal\Jason\Projects\Test\PDFCombine\PDFCombine\PDFCombine.cs:line 115
InnerException: System.NotSupportedException was caught
Message=Specified method is not supported.
Source=Aspose.Pdf
StackTrace:
at . ..ctor( , Byte[] , Int32 , String )
at . . ()
at . ..ctor( , )
at . . ( , )
at . . ()
at . . ( , )
at . . . ( , & )
at . . ( , & )
at . . (Int64 , ArrayList )
at . . ()
at . ..ctor(Stream , String , Boolean )
at . ..ctor(String )
at . . (String )
at . ..ctor(String )
at . . (String )
at . . (String )
at . ..ctor(String )
at Aspose.Pdf.Document. (String , String )
at Aspose.Pdf.Document..ctor(String filename)
at PDFCombine.PDFCombine.appendPDFFileToPDFDocument(String fileToCombine, Document document) in c:\Work\Personal\Jason\Projects\Test\PDFCombine\PDFCombine\PDFCombine.cs:line 293
at PDFCombine.PDFCombine.combinePDFWithAssociatedFiles(String pdfFilePath) in c:\Work\Personal\Jason\Projects\Test\PDFCombine\PDFCombine\PDFCombine.cs:line 115
InnerException:

Is this the intended behavior or is this a bug? Is there any way I can detect whether a PDF document is "secured" before trying to open it?

I have attached the pdf document.

Hi Jason,

<span style=“font-size:10.0pt;line-height:115%;font-family:
“Arial”,“sans-serif””>

<span style=“font-size:10.0pt;line-height:115%;font-family:
“Arial”,“sans-serif””>Sorry for the inconvenience faced. I have managed to
reproduce the issue at my end and logged it as PDFNEWNET-34753 in our bug tracking system for further
investigation and resolution. You will be notified via this thread as soon as
it gets resolved.<o:p></o:p>


Best Regards,

The issues you have found earlier (filed as PDFNEWNET-34753) have been fixed in Aspose.Pdf for .NET 9.3.0.

Blog post for this release can be viewed over this link


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan