Circle V2 API Docs
    Preparing search index...

    Type Alias PageRenderInfo

    CSS + points geometry for one page, from pdf.js's viewport (rotation already applied). cssWidth/cssHeight are points × zoom, floored to match react-pdf's canvas — never read from canvas.width/height, which are device pixels (DPR bug, DEV-2542).

    type PageRenderInfo = {
        cssHeight: number;
        cssWidth: number;
        pageHeightPts: number;
        pageNumber: number;
        pageWidthPts: number;
        zoom: number;
    }
    Index

    Properties

    cssHeight: number

    Page height in CSS pixels at zoom, floored to match react-pdf's canvas.

    cssWidth: number

    Page width in CSS pixels at zoom, floored to match react-pdf's canvas.

    pageHeightPts: number

    Page height in PDF points (getViewport({ scale: 1 }).height) — feed to pdfYFlip.

    pageNumber: number

    1-based page number, matching FormFieldBox.page.

    pageWidthPts: number

    Page width in PDF points (getViewport({ scale: 1 }).width).

    zoom: number

    The zoom this geometry was computed at. Recomputed from the live prop each render, so mid-zoom-change the overlay leads the canvas until the page re-renders.