The application discloses a method and device for previewing an open format document,
electronic equipment and a storage medium, and belongs to the technical field of
computer software, and the method comprises the following steps: registering a request interception
handle through a browser kernel framework, capturing a document resource request initiated by a
client business
system; extracting a protocol header and a path of the
uniform resource identifier, identifying and classifying the protocol type; executing a corresponding resource loading strategy according to the
classification result of the protocol type, obtaining document binary data; constructing a
dynamic HTML document containing a document rendering engine based on the obtained document binary data; and returning the
dynamic HTML document as a response to the
client for rendering and display. The application realizes unified preview support of OFD and PDF double-format documents, reduces
system complexity and deployment cost, improves the compatibility and performance of document preview, and is particularly suitable for OFD and PDF double-format compatible preview scenes in the financial industry credit transformation.