1 package org.freehep.graphicsio.pdf;
2
3 import java.io.IOException;
4 import java.util.Calendar;
5
6
7
8
9
10
11
12
13 public class PDFDocInfo extends PDFDictionary {
14
15 PDFDocInfo(PDF pdf, PDFByteWriter writer, PDFObject parent)
16 throws IOException {
17 super(pdf, writer, parent);
18 }
19
20 public void setTitle(String title) throws IOException {
21 entry("Title", title);
22 }
23
24 public void setAuthor(String author) throws IOException {
25 entry("Author", author);
26 }
27
28 public void setSubject(String subject) throws IOException {
29 entry("Subject", subject);
30 }
31
32 public void setKeywords(String keywords) throws IOException {
33 entry("Keywords", keywords);
34 }
35
36 public void setCreator(String creator) throws IOException {
37 entry("Creator", creator);
38 }
39
40 public void setProducer(String producer) throws IOException {
41 entry("Producer", producer);
42 }
43
44 public void setCreationDate(Calendar date) throws IOException {
45 entry("CreationDate", date);
46 }
47
48 public void setModificationDate(Calendar date) throws IOException {
49 entry("ModDate", date);
50 }
51
52 public void setTrapped(String name) throws IOException {
53 entry("Trapped", pdf.name(name));
54 }
55 }