All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.grasshopper.pdf.structure.Section Maven / Gradle / Ivy

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();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy