public PdfName(string name, bool lengthCheck) : base(PdfObject.NAME) {
// The minimum number of characters in a name is 0, the maximum is 127 (the '/' not included)
int length = name.Length;
if (lengthCheck && length > 127) {
throw new ArgumentException("The name '" + name + "' is too long (" + length + " characters).");
}
bytes = EncodeName(name);
}