initial readme and blind change from PDF/A3A to to PDF/A3B in
PDFA3FileAttachment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ pom.xml.tag
|
|||||||
pom.xml.releaseBackup
|
pom.xml.releaseBackup
|
||||||
pom.xml.next
|
pom.xml.next
|
||||||
release.properties
|
release.properties
|
||||||
|
/bin
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
PDFA3
|
PDFA3
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
A demo application how to create PDF/A3 files with file attachments using Apache PDFBOX
|
||||||
@@ -161,7 +161,7 @@ public class PDFA3FileAttachment
|
|||||||
|
|
||||||
doc.addPage(page);
|
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);
|
PDFont font = PDTrueTypeFont.loadTTF(doc, fontStream);
|
||||||
|
|
||||||
// create a page with the message where needed
|
// create a page with the message where needed
|
||||||
@@ -237,7 +237,7 @@ public class PDFA3FileAttachment
|
|||||||
doc.getDocumentCatalog().setMarkInfo(markinfo);
|
doc.getDocumentCatalog().setMarkInfo(markinfo);
|
||||||
|
|
||||||
pdfaid.setPart(3);
|
pdfaid.setPart(3);
|
||||||
pdfaid.setConformance("A");/*
|
pdfaid.setConformance("B");/*
|
||||||
* All files are PDF/A-3, setConformance refers
|
* All files are PDF/A-3, setConformance refers
|
||||||
* to the level conformance, e.g. PDF/A-3-B where
|
* to the level conformance, e.g. PDF/A-3-B where
|
||||||
* B means only visually preservable, U means
|
* B means only visually preservable, U means
|
||||||
|
|||||||
Reference in New Issue
Block a user