Still continuing my evaluation of the product,
Objective:
Clone a Slide from a PPTX to same PPTX
Details:
Using Aspose.NET with versions Aspose.Slides 4.1.1.0 and Aspose.Pdf
4.1.0.0
Issue: Exception as follows,
Unhandled Exception: Aspose.Slides.PptReadException: Error clonning slide —> System.Xml.Schema.XmlSchemaException: The ‘http://schemas.openxmlformats.org/mark
up-compatibility/2006:Ignorable’ attribute is not declared.
at System.Xml.XmlValidatingReaderImpl.InternalValidationCallback(Object sender, ValidationEventArgs e)
at System.Xml.Schema.BaseValidator.SendValidationEvent(XmlSchemaException e, XmlSeverityType severity)
at System.Xml.Schema.BaseValidator.SendValidationEvent(XmlSchemaException e)
at System.Xml.Schema.XsdValidator.ValidateStartElement()
at System.Xml.Schema.XsdValidator.ProcessElement(Object particle)
at System.Xml.Schema.XsdValidator.ValidateElement()
at System.Xml.Schema.XsdValidator.Validate()
at System.Xml.XmlValidatingReaderImpl.ProcessCoreReaderEvent()
at System.Xml.XmlValidatingReaderImpl.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at nb.a(rq A_0, rq A_1)
— End of inner exception stack trace —
at nb.a(rq A_0, rq A_1)
at Aspose.Slides.Pptx.PresentationEx.a(BaseSlideEx A_0)
at Aspose.Slides.Pptx.SlidesEx.a(SlideEx A_0)
at Aspose.Slides.Pptx.SlidesEx.AddClone(SlideEx slide)
at demo.MainClassEx.Clone() in c:\work\MainPPTEx.cs:line 62
at demo.MainClassEx.Main(String[] args) in c:\MainPPTEx.cs:line 21
Code:
//Instantiate
PresentationEx class that represents a PPTX file
PresentationEx pres = new PresentationEx("d:\\pptx\\helloworld.pptx");
//Clone the desired slide to the end of the collection of slides in the same PPTX
SlidesEx slds = pres.Slides;
slds.AddClone(pres.Slides[0]);
//Write the modified pptx to disk
pres.Write("d:\\pptx\\helloworld_cloned.pptx");
Attachment:
The PPTX is attached.
Please help as we would like to make a purchase decision soon.
If there are any short-term workarounds, they are also appreciated.
Thanks.