Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext7-core</artifactId>
<version>7.2.5</version>
<version>8.0.0</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>html2pdf</artifactId>
<version>4.0.5</version>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.lowagie</groupId>
Expand Down
4 changes: 2 additions & 2 deletions java/src/main/java/com/genexus/GXWebReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ protected void initState(ModelContext context, UserInformation ui)
String implementation = com.genexus.Application.getClientContext().getClientPreferences().getPDF_RPT_LIBRARY();
if (implementation.equals("ITEXT"))
reportHandler = new PDFReportItext2(context);
else if (implementation.equals("ITEXT7"))
reportHandler = new PDFReportItext7(context);
else if (implementation.equals("ITEXT8"))
reportHandler = new PDFReportItext8(context);
else
reportHandler = new PDFReportPDFBox(context);
initValues();
Expand Down
4 changes: 2 additions & 2 deletions java/src/main/java/com/genexus/reports/GXReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ else if (getOutputType() == OUTPUT_PDF)
String implementation = com.genexus.Application.getClientContext().getClientPreferences().getPDF_RPT_LIBRARY();
if (implementation.equals("ITEXT"))
reportHandler = new PDFReportItext2(context);
else if (implementation.equals("ITEXT7"))
reportHandler = new PDFReportItext7(context);
else if (implementation.equals("ITEXT8"))
reportHandler = new PDFReportItext8(context);
else
reportHandler = new PDFReportPDFBox(context);
((GXReportPDFCommons) reportHandler).setOutputStream(httpContext.getOutputStream());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import java.util.concurrent.ConcurrentHashMap;
import java.util.zip.Deflater;

public class PDFReportItext7 extends GXReportPDFCommons {
public class PDFReportItext8 extends GXReportPDFCommons {
private PageSize pageSize;
private PdfFont baseFont;
private Barcode128 barcode = null;
Expand All @@ -61,10 +61,10 @@ public class PDFReportItext7 extends GXReportPDFCommons {
ConcurrentHashMap<String, Image> documentImages;

static {
log = org.apache.logging.log4j.LogManager.getLogger(PDFReportItext7.class);
log = org.apache.logging.log4j.LogManager.getLogger(PDFReportItext8.class);
}

public PDFReportItext7(ModelContext context) {
public PDFReportItext8(ModelContext context) {
super(context);
document = null;
pdfDocument = null;
Expand Down