1 package org.freehep.graphicsio.pdf;
2
3 import java.io.IOException;
4
5
6
7
8
9
10
11
12 public class PDFCatalog extends PDFDictionary {
13
14 PDFCatalog(PDF pdf, PDFByteWriter writer, PDFObject parent, PDFRef pageTree)
15 throws IOException {
16 super(pdf, writer, parent);
17 entry("Type", pdf.name("Catalog"));
18 entry("Pages", pageTree);
19 }
20
21
22
23
24
25
26 public void setNames(String names) throws IOException {
27 entry("Names", pdf.ref(names));
28 }
29
30 public void setDests(String dests) throws IOException {
31 entry("Dests", pdf.ref(dests));
32 }
33
34 public void setViewerPreferences(String viewerPreferences)
35 throws IOException {
36 entry("ViewerPreferences", pdf.ref(viewerPreferences));
37 }
38
39 public void setPageLayout(String pageLayout) throws IOException {
40 entry("PageLayout", pdf.name(pageLayout));
41 }
42
43 public void setPageMode(String pageMode) throws IOException {
44 entry("PageMode", pdf.name(pageMode));
45 }
46
47 public void setOutlines(String outlines) throws IOException {
48 entry("Outlines", pdf.ref(outlines));
49 }
50
51 public void setThreads(String threads) throws IOException {
52 entry("Threads", pdf.ref(threads));
53 }
54
55 public void setOpenAction(Object[] openAction) throws IOException {
56 entry("OpenAction", openAction);
57 }
58
59 public void setURI(String uri) throws IOException {
60 entry("URI", pdf.ref(uri));
61 }
62
63 public void setAcroForm(String acroForm) throws IOException {
64 entry("AcroForm", pdf.ref(acroForm));
65 }
66
67 public void setStructTreeRoot(String structTreeRoot) throws IOException {
68 entry("StructTreeRoot", pdf.ref(structTreeRoot));
69 }
70
71 public void setSpiderInfo(String spiderInfo) throws IOException {
72 entry("SpiderInfo", pdf.ref(spiderInfo));
73 }
74 }