The object of the present invention is to provide a document processing apparatus capable of extracting written-in notes on a paper document and printing a document only of written-in notes or a document with a part of written-in notes by a writer left behind, and setting a limit on printing on each written-in note. In one aspect, a window assembly includes a first substantially transparent substrate having an optically switchable device on a surface of the first substrate. Gaseous reactants may be added to the circuit, and reaction products or excess reactant gases may be removed the circuit according to the invention. The method further includes obtaining the information on the phase shift of the chrominance signal based on the flag information and the information indicating the obtaining position of the parameters, and obtaining the offset information based on the flag information and the information indicating the obtaining position of the parameters. The model components are arranged and interconnected to form a scale-independent logical model of the application.