OriginalLoadFormat returns wrong type

Hi
I transform the attached document to a memory stream and use this stream for input to the constructor of aspose.word.Document. I expect this to get an unsupported file format exception. The problem is that the Document object is constructed and OriginalLoadFormat report that this is a text document. When I start reading the stream to create a document of it, aspose uses 100% cpu for at least 30min. Is there a way of telling that this is a PDF document with aspose? or do I have to read the first

Hi,


Thanks for your inquiry. I see you have generated the attached Pdf with Aspose.Pdf component and what I understand, you’re converting this Pdf document to a Word document and then trying to load that Word document into Aspose.Words’ DOM (Document Object Model) and while doing so you’re experiencing an unsupported file format exception. Could you please give us a favour by saving the Word document to disk and attach your Word document (.doc/.rtf file etc) here for testing? I will investigate the issue on my side and provide you more information.

Best Regards,

Hi,
This seams to be happening for a lot of different PDF files. For this example the PDF file was generated with http://www.bullzip.com/ v.7.0.926 by printing this page: http://www.handball.no/kamprapport.asp?id=945799

I have been testing a bit, and if I create a word.document with an memory stream as input it seams to default to txt format. This happens even if the streams starts with %PDF- on the first line.

Hi,


Thanks for your inquiry. Please try specifying the SaveFormat option when saving a Word document to stream as mentioned here:
http://www.aspose.com/docs/display/wordsnet/Saving+to+a+Stream

Best Regards,