internal PdfComment ReadComment(IPdfStreamReader streamReader) { var comment = streamReader.ReadLine(); if (!comment.StartsWith("%")) { throw new InvalidDataException("Invalid comment, doesn't start with a %"); } var result = comment.Substring(1); //ignore the starting % return(result); }