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-05-06 13:25:43 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-05-06 13:25:43 +0200
commit98a8921b697e2b03c3f1a873ec1dadd02f954aa6 (patch)
tree51c648731b1c934ac59ce036cd604178f72addf6 /pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib
parenta84fecfd384373402a23ae3153ccce55cef73cb6 (diff)
downloadpdf-as-4-98a8921b697e2b03c3f1a873ec1dadd02f954aa6.tar.gz
pdf-as-4-98a8921b697e2b03c3f1a873ec1dadd02f954aa6.tar.bz2
pdf-as-4-98a8921b697e2b03c3f1a873ec1dadd02f954aa6.zip
Fixed Positioning on empty page with only annotation
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/signing/pdfbox/PADESPDFBOXSigner.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
index 854559d2..c74b15b0 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/signing/pdfbox/PADESPDFBOXSigner.java
@@ -40,6 +40,7 @@ import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDDocumentCatalog;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageNode;
+import org.apache.pdfbox.pdmodel.PDResources;
import org.apache.pdfbox.pdmodel.graphics.color.PDOutputIntent;
import org.apache.pdfbox.pdmodel.graphics.xobject.PDJpeg;
import org.apache.pdfbox.pdmodel.interactive.digitalsignature.PDSignature;
@@ -256,6 +257,7 @@ public class PADESPDFBOXSigner implements IPdfSigner, IConfigurationConstants {
PDPage lastPage = kids.get(last);
rootPages.getCOSObject().setNeedToBeUpdate(true);
PDPage p = new PDPage(lastPage.findMediaBox());
+ p.setResources(new PDResources());
doc.addPage(p);
}