Hi, this is my problem with PDF.
When I try to set the security properties to a PDF I got this error:
Input string was not in a correct format.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct format.
and this is the code:
Dim stream1 As New System.IO.MemoryStream
Dim xmldoc1 As New XmlDocument
Dim pdf As New Aspose.Pdf.Pdf
pdf.IsImagesInXmlDeleteNeeded = True
’ Security Settings on PDF
pdf.Security = New Aspose.Pdf.Security
pdf.Security.IsAnnotationsModifyingAllowed = False
pdf.Security.IsContentsModifyingAllowed = False
pdf.Security.IsCopyingAllowed = False
pdf.Security.IsDocumentAssemblyingAllowed = False
pdf.Security.IsScreenReadersAllowed = False
pdf.Author = “X”
pdf.Creator = “x”
pdf.Title = “x”
Response.ContentType = “application/pdf”
Thanks in Advance