Skip to content

Commit

Permalink
initial readme and blind change from PDF/A3A to to PDF/A3B in
Browse files Browse the repository at this point in the history
PDFA3FileAttachment
  • Loading branch information
jstaerk committed Apr 8, 2014
1 parent 8167a23 commit 97f6d70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pom.xml.tag
pom.xml.releaseBackup
pom.xml.next
release.properties
/bin
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
PDFA3
=====

A demo application how to create PDF/A3 files with file attachments using Apache PDFBOX
4 changes: 2 additions & 2 deletions src/main/java/pdfbox/PDFA3FileAttachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 97f6d70

Please sign in to comment.