Flow and coding on paper