mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-23 04:36:44 +08:00
30 lines
762 B
C#
30 lines
762 B
C#
namespace UglyToad.PdfPig.Tokens
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|