2018-11-16 20:00:12 +00:00
|
|
|
|
namespace UglyToad.PdfPig.Tokens
|
2018-01-13 22:30:15 +00:00
|
|
|
|
{
|
|
|
|
|
using ContentStream;
|
|
|
|
|
|
|
|
|
|
internal class ObjectToken : IDataToken<IToken>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The offset of the start of the object number in the file bytes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long Position { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The object and generation number of the object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IndirectReference Number { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The inner data of the object.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IToken Data { get; }
|
|
|
|
|
|
|
|
|
|
public ObjectToken(long position, IndirectReference number, IToken data)
|
|
|
|
|
{
|
|
|
|
|
Position = position;
|
|
|
|
|
Number = number;
|
|
|
|
|
Data = data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|