tech.grasshopper.pdf.structure.Section Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-pdf-report Show documentation
Show all versions of cucumber-pdf-report Show documentation
Generates Cucumber execution report in PDF format
The newest version!
package tech.grasshopper.pdf.structure;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import lombok.Data;
import lombok.NonNull;
import lombok.experimental.SuperBuilder;
import tech.grasshopper.pdf.config.ReportConfig;
import tech.grasshopper.pdf.data.DisplayData;
import tech.grasshopper.pdf.destination.Destination.DestinationStore;
@Data
@SuperBuilder
public abstract class Section {
@NonNull
protected PDDocument document;
@NonNull
protected DisplayData displayData;
protected ReportConfig reportConfig;
protected DestinationStore destinations;
public abstract void createSection();
protected PDPage createPage() {
return PageCreator.builder().document(document).build().createLandscapePageAndAddToDocument();
}
}