aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 10:56:29 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-10-06 10:56:29 +0200
commita1faffc1987ee9a523b2736b7df5d6cb2fb5ca42 (patch)
tree9185831e0a7e0c194e614458ccff4637e4f486c7 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib
parentab855a376006dae483adc00baf968f2a87660d3a (diff)
downloadpdf-as-4-a1faffc1987ee9a523b2736b7df5d6cb2fb5ca42.tar.gz
pdf-as-4-a1faffc1987ee9a523b2736b7df5d6cb2fb5ca42.tar.bz2
pdf-as-4-a1faffc1987ee9a523b2736b7df5d6cb2fb5ca42.zip
Fixed caption and value alignments
Diffstat (limited to 'pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/TableDrawUtils.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/TableDrawUtils.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/TableDrawUtils.java
index c024a466..bc21c266 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/TableDrawUtils.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/pdfbox/TableDrawUtils.java
@@ -29,21 +29,16 @@ import java.util.ArrayList;
import java.util.Iterator;
import java.util.Map;
-import org.apache.pdfbox.cos.COSDictionary;
-import org.apache.pdfbox.cos.COSDocument;
-import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDResources;
import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import org.apache.pdfbox.pdmodel.font.PDFont;
-import org.apache.pdfbox.pdmodel.font.PDType1Font;
import org.apache.pdfbox.pdmodel.graphics.xobject.PDXObjectImage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import at.gv.egiz.pdfas.common.exceptions.PdfAsException;
-import at.gv.egiz.pdfas.common.exceptions.PdfAsWrappedIOException;
import at.gv.egiz.pdfas.common.settings.ISettings;
import at.knowcenter.wag.egov.egiz.table.Entry;
import at.knowcenter.wag.egov.egiz.table.Style;
@@ -94,8 +89,8 @@ public class TableDrawUtils {
for (int j = 0; j < row.size(); j++) {
Entry cell = (Entry) row.get(j);
- Style inherit_style = Style.doInherit(cell.getStyle(),
- abstractTable.style);
+ // Cell only contains default values so table style is the primary style
+ Style inherit_style = Style.doInherit(abstractTable.style, cell.getStyle());
cell.setStyle(inherit_style);
drawDebugPadding(contentStream, contentx, contenty, padding,