Patent ID: 8407266

Claim:
A method for automatically saving a document in multiple file formats, comprising: receiving, from a user, a first request to save the document in a primary file format; saving, on a persistent storage device and in response to the first request, a first file for the document using the primary file format; creating, in response to the first request, a first data structure comprising a first file path for the first file; creating, in response to the first request, a second file for the document; saving, on the persistent storage device and in response to the first request, the second file for the document using a secondary file format; creating, in response to the first request, a second data structure comprising a second file path for the second file and a first mapping associating the first file with the second file; modifying, using an application executing on a hardware processor, the first file for the document; receiving a second request to re-save the first file as modified; re-saving, using the application and in response the second request, the first file as modified using the primary file format; when the first file is saved using the primary file format: determining the second file path using the second data structure; deleting, using the application and in response the second request, the second file from the second file path on the persistent storage device; deleting, using the application and in response the second request, the second data structure; creating, using the application and in response the second request, a third file for the document using the secondary file format; saving, using the application and in response the second request, the document as the third file on the persistent storage device using the secondary file format; and creating, using the application and in response the second request, a third data structure comprising a third file path for the third file and a second mapping associating the third file with the first file.