I keep getting this error when converting MS Word files… Is there any work around for this available? Current Library Aspose.Words v14.11.
I updated to v15.6 with the same issue… The issue is captured using the IWarningCallback.
Here is something interesting as well, I updated to Aspose.PDF 10.6 which is now throwing an SEHException when trying to save the same file as an attachment inside a PDF.
Hi Cary,
Cary:
Import of element ‘rsids’ is not supported in Docx format by Aspose.Words.
Hi Cary,
caryangell:
Here is something interesting as well, I updated to Aspose.PDF 10.6 which is now throwing an SEHException when trying to save the same file as an attachment inside a PDF.using (PdfContentEditor editor = new PdfContentEditor()) { System.Drawing.Rectangle rect = new System.Drawing.Rectangle(0, 0, 25, 25); editor.BindPdf(strNativePdfName_temp); if (strAttFileName.ToUpper().Substring(strAttFileName.LastIndexOf(@"\") + 1) != @"C.GIF" && strAttFileName.ToUpper().Substring(strAttFileName.LastIndexOf(@"\") + 1) != @"C.JPG") { using (System.IO.FileStream attStream = System.IO.File.OpenRead(strAttFileName)) { editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 25, 25), strAttFileName, attStream, strAttFileName, 1, "Paperclip"); //Save the file try { editor.Save(strNativePdfName); } catch { throw; } } } }
Thanks for your inquiry. I am afraid I could not test your code due to missing references. However, I have amended it a bit as following and unable to notice the issue. We will appreciate it if you please share some executable code(sample project) here to replicate the issue. So we will investigate it further.
using (PdfContentEditor editor = new PdfContentEditor())
{
System.Drawing.Rectangle rect = new System.Drawing.Rectangle(0, 0, 25, 25);
editor.BindPdf(myDir + "input.pdf");
string strAttFileName = myDir + "NY+Info+.docx";
using (System.IO.FileStream attStream = System.IO.File.OpenRead(strAttFileName))
{
editor.CreateFileAttachment(new System.Drawing.Rectangle(0, 0, 25, 25), strAttFileName, attStream, strAttFileName, 1, "Paperclip");
//Save the file
try
{
editor.Save(myDir + "fileattachment.pdf");
}
catch
{
throw;
}
}
}
Best Regards,
Have we found a solution to this issue?
Hi Cary,
FYI there is an issue with the following tags as well “decimalsymbol” , “rsids” , “defaultshapes” when loading/saving using Aspose.Words
The issues you have found earlier (filed as WORDSNET-12134) have been fixed in this Aspose.Words for .NET 19.10 update and this Aspose.Words for Java 19.10 update.