forked from florentbr/SeleniumBasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPdfPage.cs
More file actions
43 lines (33 loc) · 989 Bytes
/
PdfPage.cs
File metadata and controls
43 lines (33 loc) · 989 Bytes
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
using System.Collections.Generic;
using System.IO;
namespace Selenium.Pdf {
class PdfPage {
public class XObject {
public int Id;
public string CodeName;
}
public readonly int Id;
public int Height;
public int Width;
public readonly List<int> Contents = new List<int>();
public readonly List<int> Annots = new List<int>();
public readonly List<XObject> XObjects = new List<XObject>();
public PdfPage(int id, int width, int height) {
Id = id;
Height = height;
Width = width;
}
internal void AddContent(int id) {
Contents.Add(id);
}
internal void AddXObject(int id, string codeName) {
XObjects.Add(new XObject {
Id = id,
CodeName = codeName
});
}
internal void AddAnnot(int id) {
Annots.Add(id);
}
}
}