package com.knecon.fforesight.service.viewerdoc.model;

import java.awt.Color;
import java.awt.geom.Point2D;
import java.util.Optional;

import org.apache.pdfbox.pdmodel.graphics.state.RenderingMode;
import org.apache.pdfbox.util.Matrix;

public record PlacedText(String text, Point2D lineStart, Color color, float fontSize, EmbeddableFont font, Optional<Matrix> textMatrix, Optional<RenderingMode> renderingMode) {

    public static PlacedText textFacingUp(String text, Point2D lineStart, float fontSize, Color color, EmbeddableFont font) {

        return new PlacedText(text, lineStart, color, fontSize, font, Optional.empty(), Optional.empty());
    }

}
