tech.grasshopper.reporter.structure.Display Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdfextentreporter Show documentation
Show all versions of pdfextentreporter Show documentation
Creating Extent reports in PDF format
The newest version!
package tech.grasshopper.reporter.structure;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
import com.aventstack.extentreports.model.Report;
import lombok.Builder.Default;
import lombok.Data;
import lombok.experimental.SuperBuilder;
import tech.grasshopper.reporter.config.ExtentPDFReporterConfig;
import tech.grasshopper.reporter.font.ReportFont;
@Data
@SuperBuilder
public abstract class Display {
public static final float CONTENT_START_Y = 790f;
public static final float CONTENT_END_Y = 40f;
public static final float CONTENT_MARGIN_TOP_Y = 50f;
protected PDPageContentStream content;
protected ExtentPDFReporterConfig config;
protected PDDocument document;
protected ReportFont reportFont;
protected PDPage page;
protected Report report;
protected float ylocation;
@Default
protected float xlocation = 50f;
public abstract void display();
}