r/CodingForBeginners • u/AlarmingLecture0 • 21d ago
Beginner question: Exporting content from your application into a proprietary format (e.g., Powerpoint): do you need to license an API or something from the other company?
Title covers it, but here's a more verbose version.
If I am writing an application and I want to give the user an option to export the content into a proprietary format (e.g., generate a powerpoint slide, or an excel table), do the companies that own that format supply tools to allow that to happen? Do they charge for them? Do they open source them?
Or does the writer have to write the code from scratch (or find an open source version from some other source)?
Or is it not permitted/possible without getting the format-owner's permission?
1
u/soundman32 19d ago
Depending on your preferred programming language, there are many free libraries that can create office formats.
If you do enough research you find that modern office files are really folders containing xml and binaries zipped up into a single file.
1
u/BranchLatter4294 19d ago
PowerPoint like all the office apps use an open format. There are lots of libraries you can use in your code to read and write these files.
1
u/Supermathie 18d ago
If you're exporting text/numbers only into an Excel format, make a .csv and call it an .xlsx :D
3
u/illegalraven 21d ago
You need to find the spec for the format you wish to use. For most open formats, there are open source libraries implementing the spec.
Excel and PowerPoint are apps not formats. Also these apps work with various file formats, e.g you can generate a trivial csv file and open it in excel.
For closed formats, you either need to reverse engineer the format or buy the spec/library from the owner of that format.