This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- mvn clean compile assembly:single --> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<archive> | |
<manifest> | |
<mainClass>fully.qualified.MainClass</mainClass> | |
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package easytaaable; | |
import static org.apache.pdfbox.pdmodel.font.PDType1Font.SYMBOL; | |
import java.io.IOException; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void perfTest2() throws IOException { | |
String outputFileName = "perfTest2.pdf"; | |
final PDDocument document = new PDDocument(); | |
RepeatedHeaderTableDrawer drawer = RepeatedHeaderTableDrawer.builder() | |
.table(create()) | |
.startX(30) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void perfTest4() throws IOException { | |
String outputFileName = "perfTest4.pdf"; | |
final PDDocument document = new PDDocument(); | |
java.util.List<Object[]> dataList = new ArrayList<>(); | |
for (int i = 0; i < 5000; i++) { | |
dataList.add(new Object[]{"Whisky", 134.0, 145.0}); | |
dataList.add(new Object[]{"Beer", 768.0, 677.0}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AdditionalPropertiesSerializer extends StdSerializer<HashMap<String, Object>> { | |
private static final Logger LOGGER = getLogger(); | |
public AdditionalPropertiesSerializer(Class<HashMap<String, Object>> clazz) { | |
super(clazz); | |
} | |
@Override | |
public void serialize(HashMap<String, Object> classExtendedFromHashMap, JsonGenerator jsonGenerator, SerializerProvider provider) throws IOException { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vandeseer.integrationtest.custom; | |
import lombok.Getter; | |
import lombok.experimental.SuperBuilder; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.apache.pdfbox.pdmodel.font.PDType1Font; | |
import org.vandeseer.easytable.TableDrawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vandeseer.integrationtest.custom; | |
import lombok.Getter; | |
import lombok.SneakyThrows; | |
import lombok.experimental.SuperBuilder; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.vandeseer.easytable.TableDrawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vandeseer.integrationtest.custom; | |
import lombok.Getter; | |
import lombok.experimental.SuperBuilder; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.vandeseer.easytable.TableDrawer; | |
import org.vandeseer.easytable.drawing.Drawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vandeseer.integrationtest.custom; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.apache.pdfbox.pdmodel.PDPageContentStream; | |
import org.apache.pdfbox.pdmodel.common.PDRectangle; | |
import org.vandeseer.easytable.TableDrawer; | |
import org.vandeseer.easytable.drawing.DrawingContext; | |
import org.vandeseer.easytable.drawing.PositionedStyledText; | |
import org.vandeseer.easytable.drawing.cell.TextCellDrawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.vandeseer.integrationtest.custom; | |
import lombok.experimental.SuperBuilder; | |
import org.apache.pdfbox.pdmodel.PDDocument; | |
import org.apache.pdfbox.pdmodel.PDPage; | |
import org.vandeseer.easytable.TableDrawer; | |
import java.awt.geom.Point2D; | |
import java.io.IOException; | |
import java.util.function.Supplier; |
OlderNewer