-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
38 lines (28 loc) · 1.08 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PAGINE means (P)df/(A) (G)enerator (I)text (N)ot (E)nhanced
This little code framework use ITEXT 4 (this is the reason for Not Enhanced) ;-)
Usage:
Create your task: it's the place where you create your document
Create a PAGINE instance:
- then add a color profile
- then add metadata
- then choose the font to use ( take a look for the Font Utilities )
- then use your task
- ...and build your PDF!
PAGINETask task = ...
PAGINE.startNewPdf(PageSize.A4.rotate(), PdfVersion.V_1_4)
.createColorProfile(Metadata.loadDefaultColorProfile())
.metadata()
.addKeyword("pdfa")
.addKeyword("sample")
.addKeyword("PAGINE_TEST")
.author("Stefano Fago")
.subject("PDF DI PROVA")
.creator("Stefano Fago")
.title("DOCUMENTO GENERATO DA P.A.G.I.N.E.")
.build(Metadata.loadDefaultTemplate())
.addEmbeddedFont("Verdana_14",
FontUtils.getFileForFont("Verdana"), 14)
.addEmbeddedFont("Helvetica_12",
FontUtils.getFileForFont("Helvetica"), 12)
.setDocumentFont("Helvetica_12").activity(task)
.buildAndWriteOnFile(args[0]);