Can I get differences of two ppt files?

Donghyuk Choi 21 Reputation points
2022-10-13T17:40:09.493+00:00

hello :)
I am a student majoring in computer engineering.
I am making a software that analyzes two different powerpoint files with JavaScript.
I thought it was a tree structure like a facebook React, but it seems not.
Is there any way to get differences of two ppt or pptx?

PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
230 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,326 Reputation points
    2022-10-13T17:47:27.847+00:00

    Hi @Donghyuk Choi

    You could save the presentations as an XML and then they would be in XML format:

    250213-image.png

    Two simply view the differences, you could open them up in a Notepad editor (or do this with your JS automation).

    Example of XML:

    250194-image.png

    ---------------------------------------

    If this is helpful please accept answer.


1 additional answer

Sort by: Most helpful
  1. Michael Taylor 54,306 Reputation points
    2022-10-13T18:36:55.66+00:00

    PPT files are binary, IIRC. There is no easy way to compare them. Especially not from JS.

    PPTX is in OpenXML format. You could open them using any one of the OpenXML libraries that are available (I assume JS has one as well) and then enumerate the OpenXML structure between the 2 files. To do that you really need to understand the structure of OpenXML and how PP uses it though.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.