namespace UglyToad.PdfPig.Content { using System; internal class HeaderVersion { public decimal Version { get; } public string VersionString { get; } /// /// The offset in bytes from the start of the file to the start of the version comment. /// public long OffsetInFile { get; } public HeaderVersion(decimal version, string versionString, long offsetInFile) { Version = version; VersionString = versionString; if (offsetInFile < 0) { throw new ArgumentOutOfRangeException($"Invalid offset for header version, must be positive. Got: {offsetInFile}."); } OffsetInFile = offsetInFile; } public override string ToString() { return $"Version: {VersionString}"; } } }