From 97f6d70799cd71aea87c29eaa3452577409d8c2c Mon Sep 17 00:00:00 2001 From: jstaerk Date: Tue, 8 Apr 2014 12:22:02 +0200 Subject: [PATCH] initial readme and blind change from PDF/A3A to to PDF/A3B in PDFA3FileAttachment --- .gitignore | 1 + README.md | 2 ++ src/main/java/pdfbox/PDFA3FileAttachment.java | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 96c64b97..21e6121d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ pom.xml.tag pom.xml.releaseBackup pom.xml.next release.properties +/bin diff --git a/README.md b/README.md index 217228c1..6a996617 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ PDFA3 ===== + +A demo application how to create PDF/A3 files with file attachments using Apache PDFBOX \ No newline at end of file diff --git a/src/main/java/pdfbox/PDFA3FileAttachment.java b/src/main/java/pdfbox/PDFA3FileAttachment.java index 183605fa..e3d6944d 100644 --- a/src/main/java/pdfbox/PDFA3FileAttachment.java +++ b/src/main/java/pdfbox/PDFA3FileAttachment.java @@ -161,7 +161,7 @@ public void doIt(String file, String message) throws Exception doc.addPage(page); - InputStream fontStream = PDFA3FileAttachment.class.getResourceAsStream("/Ubuntu-R.ttf"); + InputStream fontStream = PDFA3FileAttachment.class.getResourceAsStream("/resources/Ubuntu-R.ttf"); PDFont font = PDTrueTypeFont.loadTTF(doc, fontStream); // create a page with the message where needed @@ -237,7 +237,7 @@ private PDDocumentCatalog makeA3compliant(PDDocument doc) throws IOException, Tr doc.getDocumentCatalog().setMarkInfo(markinfo); pdfaid.setPart(3); - pdfaid.setConformance("A");/* + pdfaid.setConformance("B");/* * All files are PDF/A-3, setConformance refers * to the level conformance, e.g. PDF/A-3-B where * B means only visually preservable, U means