From 08c017f1304979a1e4c830201a4b45121209ca9c Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 11 Nov 2022 01:18:06 +0100 Subject: Add classe to generate a document with a single table --- .../simplyreports/pdf/PDFEntity.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFEntity.java (limited to 'src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFEntity.java') diff --git a/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFEntity.java b/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFEntity.java new file mode 100644 index 0000000..fd87310 --- /dev/null +++ b/src/main/java/it/alessandroiezzi/simplyreports/pdf/PDFEntity.java @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2022 Alessandro Iezzi + * + * This file is part of Simply Reports. + * + * Simply Reports is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Simply Reports is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Simply Reports. If not, see . + */ + +package it.alessandroiezzi.simplyreports.pdf; + +import com.lowagie.text.pdf.PdfWriter; + +public abstract class PDFEntity { + protected abstract T generate(PdfWriter writer); +} -- cgit v1.2.3