主权项 |
1. A computer implemented method comprising:
accessing, on a client-computing device, a first document comprising scripting code of a first type; parsing, by the client-computing device, the scripting code of the first type in the first document; tracking, by the client-computing device, a location of an event or action in the first document in which the scripting code of the first type is present; translating, by the client-computing device and prior to execution of the scripting code of the first type, the parsed scripting code of the first type into scripting code of a second type, wherein translating comprises mapping scripting code objects in scripting code of the first type to scripting code objects in scripting code of the second type, wherein there is a one-to-one mapping of scripting code of the first type to scripting code of the second type; merging, by the client-computing device, the translated scripting code into a location in a translated scripting file, wherein the location corresponds to the location tracked in the first document; and exporting, by the client-computing device, the translated scripting file for use with a second document, wherein one of the first document or the second document is a PDF document. |