RAR archive support

Hello, would it please be possible to enable extracting content from RAR (or/and) RAR compressed files? The Parser API lets me create parser object on RAR archive, however it shows detectedFormat as “WordProcessing” (.txt), which is problematic for following processing of input file.

Thanks
Jiri

@jvymazal

Currently, API supports ZIP archives and it works well, have a look at this documentation article.

Could you please share more details on this, also the sample code? We tested this scenario at our end and it shows MS Word Open XML document for the archived DOCX format. And Plain Text File for the TXT format.

Yeah, sure, if you just do this:
var stream = File.Open("path/to/archive.rar"); var parser = new GroupDocs.Parser.Parser(stream);
it actually succeeds. And calling
parser.GetDocumentInfo().FileType.Format
then returns “WordProcessing” with
parser.GetDocumentInfo().FileType.Extension
returning “.txt”. Of course if you try to read from such parser (parser.Features.Text is true) you get either error of garbage.

1 Like

@jvymazal

Thanks you for the details. This issue is reproduced at our end. Hence, we’ve logged it in our internal issue tracking system with ID PARSERNET-1780. You’ll be notified in case of any progress update.

Thanks for response, I do not know the process for it, however could the dev team please consider actually supporting RAR parsing - contents extraction while resolving this issue? Since underlying Aspose.zip API does support it, it should not be much additional work. If you could just add that to the ticket.

Many thanks

1 Like

@jvymazal

We have raised your feedback in the ticket and we’ll look into the possibility to achieve this.

The issues you have found earlier (filed as PARSERNET-1780) have been fixed in this update. This message was posted using Bugs notification tool by albertakhmetov