i need to develop or use a utility on windows platform
to convert MacBinary2 to more readable type
any ideas?
Google "macbinary file format". MacBinary used to add 128 bytes with Mac-specific information at the start of the file, which you would need to remove. That's quite trivial. I really wonder where you managed to dig out MacBinary files.
Related
Well.... the question sort of says it all. If possible I would like to be able to do so from a Linux or macOS environment, but I have virtualized Windows if need be.
Thanks in advance!
There is no general answer for this because different installers/applications use different storage methods. You should first try to identify the author of the installer software by looking for clues in the version information and maybe with a hex editor.
My first suggestion is to try 7-zip, it can extract from NSIS based installers and some MSI based installers.
If the setup was created with Inno Setup then you can try this.
If all else fails, try Universal Extractor but even that will fail for obscure and custom .exe files.
It depends. Assuming you have a PE file (windows executable), you can use a resource editor https://stefansundin.github.io/xn_resource_editor/ to extract icons, messages or dialog layouts. This assumes that the author of that file used the native resource system. Other data would only be available if you knew the address within the PE file, or had appropriate debug symbols. But then, you must guess content type, and maybe also file size.
Is it possible to convert .ppt file to .pptx without using interop or Spire, because I think it will be something like converting a binary file to open xml format?
Public void ConvertPPTToPPTX(MemoryStream pptFileInput,MemoryStream pptxFileOutput){
.....
}
Thanks in advance.
If you want to do this programmatically you will have to use interop or some third party library.
If you can use interop you will get the fidelity of Office, any other third party library is just a best effort, unless it uses interop under the hood, which some do. Make sure you check if the library requires Office to be installed.
There is nothing built in directly to the .NET framework if that is what you are asking.
Neither will Microsofts OOXML SDK support conversion
The only thing I know of from Microsoft that will do PPT conversion is
PowerPoint Automation Services , but this requires access to a SharePoint Server
http://msdn.microsoft.com/en-us/library/office/fp179894(v=office.15).aspx
This is not an easy problem to solve, in order to do a conversion you have to understand and be able to read in the PPT Binary FileFormat
http://msdn.microsoft.com/en-us/library/office/cc313106(v=office.12).aspx
And then translate that all to the OOXML File format
http://msdn.microsoft.com/en-us/library/dd926741(v=office.12).aspx
All while taking into account the thousands of features the file format supports, the differences in the file formats,the features that are not documented well, and the ones that are documented incorrectly.
What exactly are you trying to solve? A one time conversion, a batch conversion, as needed? Maybe we can provided some other suggestions with more details.
I'm looking to convert PPT and PPTX files to Flash (or flv) files in an automated fashion in Linux - So I need a command-line utility.
Are there any available options out there for me? (I haven't found any so far).
I was also looking for a Flash player to play ppt/pptx files as an alternative (similar to what slideshare provides) - does anyone know of any other than openslide?
Thanks for any help.
Related question here: Convert powerpoint to flash
Summary of answers: you should probably use OpenOffice to do it.
To do it from the command-line, it looks like you should probably use PyODConverter http://www.artofsolving.com/opensource/pyodconverter
OpenOffice generates a very poor SWF version. It should generate a back/foward button at least.
Hello I need to load NSKeyedArchiver classes to C++/CLI counterparts. Is there any way to get internal format of NSKeyedArchiver?
Another option is to rewrite whole saving and opening code into pure C++ for both Mac and Windows.
Thanks a lot.
So your constraints seem to be:
Something easy to parse on both Windows and Mac.
3D modeling data, so the format needs to be efficient
If you want something quick and dirty, go with a binary plist (and possibly gzip it). You could also try Google's protocol buffers but I have no experience with that. There are also a couple open source implementations of Foundation out there -- Cocotron might be most useful for you.
If you're not serializing anything Objective-C specific then just use XML property lists.
I would like to create a file format for my app like Quake, OO, and MS Office 07 have.
Basically a uncompressed zip folder, or tar file.
I need this to be cross platform (mac and windows).
Can I do something via command prompt and bash?
If you want a single file that is portable to all platforms and which contain structured data, consider using sqlite. You'll get a full featured ACID compliant database that exists on disk as a single file.
There are libraries you can link against to directly access the file, and there is a command line tool you can use as well. No matter what language you are using, most likely there is support for it.
http://www.sqlite.org
Have a look at the open source 7Zip compression format. For your specific needs, you can use it in an "Archive" mode, zero compression but very fast.
It provides a powerful SDK, LZMA, from the site:
"LZMA is the default and general compression method of 7z format in the 7-Zip program. LZMA provides a high compression ratio and very fast decompression, so it is very suitable for embedded applications. For example, it can be used for ROM (firmware) compressing.
The LZMA SDK provides the documentation, samples, header files, libraries, and tools you need to develop applications that use LZMA compression."
Zip is supported everywhere. If a container is all you need, than those are surely good options.
SQLite is great.
A single file, crossplatform, a tiny library, SQL access to data, transactions, the whole enchilada.
you can use transactions to guarantee consistent return points in case of crashing. check uses for sqlite, they specifically advocate using it as a data model layer for desktop applications.
also, there's a command-line tool to manually access the data.
First thing you should ask yourself is, "Do I really need to make my own?"
Depending on what you want to use it for, you are probably better off using a common format and some pre-made libraries which already handle one of those formats very well.
Good places to start:
http://www.destructor.de/libtar/index.htm (tar -- a the 'container' format)
http://www.zlib.net/ (zlib -- a method of compressing data before or after you put it in the container)
If you still really think you need to make your own, I would suggest studying something very simple first, like tar's format:
http://en.wikipedia.org/wiki/Tar_(file_format)
or
http://schmidt.devlib.org/file-formats/tar-archive-file-format.html
Instead of making a format, I'd just decide on a convention. One or more named files within the container have the metadata you need to access the rest of the files, and know what to do with them. The container itself, though, should just be some ubiquitous format, such as zip. No need to reinvent the wheel, here.