1. A method comprising: obtaining an electronic document in a binary format; transforming the electronic document into a markup language format by extracting a subset of information from the electronic document in the binary format according to predefined extraction parameters, incorporating the subset of the information into new portions of the electronic document in the markup language format, and inserting an encoded version of the electronic document in the binary format into the electronic document in the markup language format; and using the transformed electronic document.