Aspose 7.6 Malformed SOM Expression

I combined files "A.pdf " and "B.pdf" to create the file "PackagePDF_A_B_.pdf" and when I open the package file "PackagePDF_A_B_.pdf", I get several pop window "Malformed SOM Expression message:..." for the fillable fileds. Here is the code I am using

//Instantiate PdfFileEditor object
PdfFileEditor pdfEditor = new PdfFileEditor();
//Call Concatenate method of PdfFileEditor object to concatenate all input streams into a single output stream
bool merged = pdfEditor.Concatenate(InputFiles, OutputFile);
// open the file to get the stream
Stream PdfFile;
//Instantiating PdfFileSecurity object
PdfFileSecurity fileSecurity = new PdfFileSecurity(OutputFile, EncryptedOutputFile);
//Calling EncryptFile method to encrypt the PDF document
//Way2: Based on a predefined privilege and change some specifical permissions.

DocumentPrivilege privilege = DocumentPrivilege.ForbidAll;
privilege.AllowCopy = true;
privilege.AllowPrint = true;
privilege.AllowFillIn = true;
privilege.AllowScreenReaders = true;
privilege.AllowModifyContents = false;
privilege.AllowModifyAnnotations = true;
bool encrypted = fileSecurity.SetPrivilege("", "ownerpassword", privilege);

if (!encrypted)
throw new ApplicationException("Unable to encrypt input files");

// open the file to get the stream
PdfFile = File.OpenRead(EncryptedOutputFile);
PackageByteArray = WebHelper.ReadStream(PdfFile, 1000);
PdfFile.Close();
return PackageByteArray;

thanks

Alvaro

Hi Alvaro,

Sorry for the inconvenience faced. I have managed to reproduce the reported issues on my side. I have logged the issue in our bug tracking system for further investigation and resolution, the issue ID is PDFNEWNET-34706. I have also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

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


This message was posted using Notification2Forum from Downloads module by aspose.notifier.