File: Document.cs

package info (click to toggle)
poppler-sharp 0.0.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 396 kB
  • ctags: 32
  • sloc: sh: 625; cs: 72; makefile: 60
file content (90 lines) | stat: -rw-r--r-- 1,580 bytes parent folder | download | duplicates (6)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* Bit of a hack because GAPI doesn't detect the GObject properties in
 * poppler-document.cc and I don't know how to add them using the GAPI 
 * fixup tool. *sigh*
 */

namespace Poppler
{
  public partial class Document : GLib.Object
  {
    public string Title
    {
      get {
        return (string)this.GetProperty("title");
      }
    }

    public string Format
    {
      get {
        return (string)this.GetProperty("format");
      }
    }

    public string Author
    {
      get {
        return (string)this.GetProperty("author");
      }
    }

    public string Subject
    {
      get {
        return (string)this.GetProperty("subject");
      }
    }

    public string Keywords
    {
      get {
        return (string)this.GetProperty("keywords");
      }
    }

    public string Creator
    {
      get {
        return (string)this.GetProperty("creator");
      }
    }

    public string Producer
    {
      get {
        return (string)this.GetProperty("producer");
      }
    }

    public int CreationDate
    {
      get {
        return (int)this.GetProperty("creation-date");
      }
    }

    public int ModificationDate
    {
      get {
        return (int)this.GetProperty("mod-date");
      }
    }

    public string Linearized
    {
      get {
        return (string)this.GetProperty("linearized");
      }
    }

    // TODO: modification-date
    // TODO: page-layout, page-mode, viewer-preferences, permissions

    public string Metadata
    {
      get {
        return (string)this.GetProperty("metadata");
      }
    }
  }
}