MO.00004-AX.04-Triptico.vsdx.zip (752.5 KB)
When trying to convert the file MO.00004-AX.04-Triptico.vsdx to PDF/A, an error occurs. Testing the conversion to PDF it works.
PdfSaveOptions options = new PdfSaveOptions();
options.SaveFormat = SaveFileFormat.Pdf;
if (ConversionConfiguration.IsPDFA)
{
options.Compliance = PdfCompliance.PdfA1a;
}
ConvertedFilePath = Path.ChangeExtension(OriginalFilePath, “pdf”);
diagram.Save(ConvertedFilePath, options);
This error occurs in the Save method:
Service.ConverterService+d__9] - Image loading failed.
System.ArgumentException: Image loading failed.
at .(Stream , ␦ , Boolean )
at .tream , ␦ )
at.(Stream , ␦ )
at Aspose.Drawing.Bitmap…ctor(Stream stream, Boolean useIcm)
at Aspose.Drawing.Bitmap…ctor(Stream stream)
at …ctor(Byte[] )
at . )
at . )
at( )
at( )
at ( )
at( )
at ( )
at( )
at ( )
at( )
at ( )
at . )
at .(Stream , PdfSaveOptions, Diagram )
at InvokeStub_.(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
— End of stack trace from previous location —
at d.(Exception )
at d(Object )
at d(MethodBase , Boolean)
at d.␦(d , )
at d.()
at d.(Boolean )
— End of stack trace from previous location —
at d.(Exception )
at d(Object )
at d.()
at d.␦(d , )
at d.()
at d.(Boolean )
— End of stack trace from previous location —
at d.(Exception )
at d(Object )
at d.()
at d.(Object , UInt32)
at d.(Boolean )
at d.(Boolean )
at d.(Object[] , Type[], Type[] , Object[] )
at d.(Int32 , Type[], Type[] , Boolean )
at d. , )
at d.()
at d.(Boolean )
— End of stack trace from previous location —
at d.(Exception )
at d(Object )
at d.()
at d.␦(d , )
at d.()
at d.(Boolean )
— End of stack trace from previous location —
at d.(Exception )
at d(Object )
at d.()
at d.(Object , UInt32)
at d.(Boolean )
at d.(Boolean )
at d.(Object[] , Type[], Type[] , Object[] )
at d.(Stream , String, Object[] , Type[] , Type[] , Object[] )
at d(Stream , String, Object[] )
at d.(Stream , String, Object[] )
at Aspose.Diagram.Diagram.Save(String filename, SaveOptions options)