This application discloses a file
annotation method, apparatus, device, and medium based on PDFJS and
MIMO, relating to the field of
computer technology. The method includes: rendering the original PDF file onto a first canvas layer using the PDF.js
library and creating a second canvas layer; monitoring
client annotation operations on the second canvas layer to generate corresponding
annotation operation data packets, and uploading these data packets to a preset
server via a preset network channel based on a preset
MIMO transmission strategy, so that the preset
server associates and stores the annotation data packets with the
unique identifier of the original PDF file; if a loading request for the original PDF file is received, the annotation description file is obtained using the
unique identifier, and the annotation data within it is drawn onto the second canvas layer to reconstruct the annotations. This enables precise mapping of annotation coordinates, improves the efficiency of multi-channel real-time
collaboration, and enhances the storage and management capabilities of annotation data in a
Web environment.