Width = 320;
        viewport.initialHeight = 352;

        var vpString = internals.viewportAsText(document, 1,
                                                viewport.initialWidth,
                                                viewport.initialHeight);

        var match = /viewport size (.+)x(.+) scale (.+ )/.exec(vpString);

        if (match) {
            viewport.actualWidth = parseFloat(match[1]);
            viewport.actualHeight = parseFloat(match[2]);
            viewport.zoom = parseFloat(matc