Browsing: automatic paper size detection