Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated pom.xml to create boxable for Logi Composer #283

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>com.github.dhorions</groupId>
<groupId>com.logi.composer</groupId>
<artifactId>boxable</artifactId>
<version>1.7.1-SNAPSHOT</version>
<version>1.7.2</version>
<packaging>jar</packaging>

<name>Boxable, a high-level API to creates table on top of Apache Pdfbox</name>
Expand Down Expand Up @@ -60,7 +60,7 @@
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.15.3</version>
<version>1.18.1</version>
<type>jar</type>
</dependency>
</dependencies>
Expand Down Expand Up @@ -90,8 +90,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
<compilerArguments>
<bootclasspath>${sun.boot.class.path}${path.separator}${java.home}/lib/jfxrt.jar</bootclasspath>
</compilerArguments>
Expand Down
1 change: 0 additions & 1 deletion src/test/java/be/quodlibet/boxable/DataTableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import be.quodlibet.boxable.datatable.DataTable;
import be.quodlibet.boxable.datatable.UpdateCellProperty;
import com.google.common.io.Files;
import java.awt.Color;
import java.io.File;
import java.io.IOException;
Expand Down
6 changes: 3 additions & 3 deletions src/test/java/be/quodlibet/boxable/TableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void Sample1() throws IOException {
}
} else if(fact[i].equalsIgnoreCase("Google")) {
cell = row.createCell((100 / 9f), fact[i]);
cell.setFont(PDType1Font.HELVETICA_OBLIQUE);
cell.setFont(new PDType1Font(Standard14Fonts.FontName.HELVETICA_OBLIQUE));
cell.setFontSize(6);
cell.setUrl(new URL("https://www.google.de"));
} else {
Expand Down Expand Up @@ -1209,11 +1209,11 @@ public void SampleTest12() throws IOException {

// draw page title
PageContentStreamOptimized cos = new PageContentStreamOptimized(new PDPageContentStream(doc, page));
PDStreamUtils.write(cos, "Welcome to your first borderless table", PDType1Font.HELVETICA_BOLD, 14, 15, yStart,
PDStreamUtils.write(cos, "Welcome to your first borderless table", new PDType1Font(Standard14Fonts.FontName.HELVETICA_BOLD), 14, 15, yStart,
Color.BLACK);
cos.close();

yStart -= FontUtils.getHeight(PDType1Font.HELVETICA_BOLD, 14) + 15;
yStart -= FontUtils.getHeight(new PDType1Font(Standard14Fonts.FontName.HELVETICA_BOLD), 14) + 15;

BaseTable table = new BaseTable(yStart, yStartNewPage, bottomMargin, tableWidth, margin, doc, page, drawLines,
drawContent);
Expand Down