Special characters lead to incomplete conversion?Aspose.Slides for .NET 16.3.0?

Aspose.Slides for .NET 16.3.0(DLLs Only)

We have a ppt sample with 52 pages,but we only get 31 pages when we convert it into .html

we have had the Stack Trace as following:

Stacks Information

捕捉到 System.Xml.XmlException HResult=-2146232000 Message=“ ”(十六进制值 0x0B)是无效的字符。 第 1 行,位置 13511。 Source=System.Xml LineNumber=1 LinePosition=13511 SourceUri="" StackTrace: 在 System.Xml.XmlTextReaderImpl.Throw(Exception e) 在 System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) 在 System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args) 在 System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, StringBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType) 在 System.Xml.XmlTextReaderImpl.ParseNumericCharRef(Boolean expand, StringBuilder internalSubsetBuilder, EntityType& entityType) 在 System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos) 在 System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr) 在 System.Xml.XmlTextReaderImpl.ParseAttributes() 在 System.Xml.XmlTextReaderImpl.ParseElement() 在 System.Xml.XmlTextReaderImpl.ParseElementContent() 在 System.Xml.XmlTextReaderImpl.Read() 在 System.Xml.XsdValidatingReader.Read() 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 ​ . ​​ (XmlReader ) 在 . (XmlReader ) 在 ​ ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 . ​​ (XmlReader ) 在 . (XmlReader ) 在 ..ctor(XmlReader ) 在 ​ . (Slide ) 在 . (IPresentation , ILayoutSlide , ISlide ) 在 Aspose.Slides.SlideCollection.AddClone(ISlide sourceSlide, ILayoutSlide destLayout) 在 Aspose.Slides.SlideCollection.AddClone(ISlide sourceSlide, IMasterSlide destMaster, Boolean allowCloneMissingLayout) 在 Aspose.Slides.SlideCollection.AddClone(ISlide sourceSlide) 在 ConsoleApplication3.Program.pptCov() 位置 c:\Users\jinn\Desktop\ConsoleApplication3\ConsoleApplication3\Program.cs:行号 89

InnerException:

Our Souce code

for (int x = 1; x < pageCount; x++)
{
    Aspose.Slides.Presentation tempPres = new Aspose.Slides.Presentation();
    tempPres.Slides.AddClone(origPres.Slides[x]);
    tempPres.Slides.RemoveAt(0);
    tempPres.Save(@savePath + "." + x + ".html", Aspose.Slides.Export.SaveFormat.Html);
}

Hi Yuan,

I have observed your comments and like to share with you that the error appears while cloning the slides. For conversion, cloning is not required. Please try using below code on your end to serve the purpose. I have attached the generated html file for your kind reference (see 50个经典培训故事_16.3.0.rar).

Presentation pres = new Presentation(@"D:\50个经典培训故事.ppt");
pres.Save(@"D:\50个经典培训故事_16.3.0.html", SaveFormat.Html);

I hope this will be helpful. Please share if I may help you further in this regard.

Best Regards,

Hi:

Thank you for your reply,but I really need to convert each ppt page into another html.Because if the page of ppt has so many pictures,it is too slow when websites render page with the whole resource(files).

I have hoped that it can work more efficient when we use paging processing method.

By the way,Do the “Aspose.Slides” provide the service like paging processing? Or is there any way that you have to solve my issue(the results of html with too many files,the websites sender page too slowly and it need more resource of computer)

Once again, thank you for your help, I would appreciate if you have good news for me as soon as possible

Best Wishes!

Hi Yuan,

I have observed your comments and like to share with you that a ticket with ID SLIDESNET-37362 has been logged into our issue management system for further investigation and resolution. This thread has been linked with the issue so that you may be notified automatically as soon as the issue will be fixed. In the meanwhile, you may try to convert a presentation to individual html file as explained in this documentation article.

I hope this will be helpful. Pleas share if I may help you further in this regard.

We are sorry for your inconvenience,

Thank you very much for your help.

And, it works when we use your way in
http://www.aspose.com/docs/display/slidesnet/Converting+Presentation+to+HTML#ConvertingPresentationtoHTML-options

Best Wishes!

The issues you have found earlier (filed as SLIDESNET-37362) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.