package com.easyagents.document.core.entity;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 页面信息。
 *
 * @author Codex
 * @since 2026-04-14
 */
public class DocumentPage {

    private Integer pageIndex;
    private Double width;
    private Double height;
    private Map<String, Object> metadata = new LinkedHashMap<String, Object>();

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Double getWidth() {
        return width;
    }

    public void setWidth(Double width) {
        this.width = width;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public Map<String, Object> getMetadata() {
        return metadata;
    }

    public void setMetadata(Map<String, Object> metadata) {
        this.metadata = metadata == null ? new LinkedHashMap<String, Object>() : metadata;
    }
}
