1. A system that embeds global metadata into an embedded interactive code document, the system comprising: a first m-array that contains a first repeating sequence of bits; global metadata that specifies a document-identification information for the embedded interactive code document; a plurality of copies of the first m-array; and a global-meta-data-encoding module that combines the first m-array and the plurality of copies of the first m-array to generate a combined m-array with encoded global metadata such that respective start positions (x d ,y d ) i of the plurality of copies of the first m-array in the combined m-array are each shifted, by respective amounts that are based on respective portions of the global metadata, relative to a start position of the first m-array in the combined m-array.