mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
use built in encoding handling
This commit is contained in:
@@ -64,6 +64,9 @@
|
||||
case HexToken hex:
|
||||
documentIdBytes = hex.Bytes.ToArray();
|
||||
break;
|
||||
case StringToken str:
|
||||
documentIdBytes = str.GetBytes();
|
||||
break;
|
||||
default:
|
||||
documentIdBytes = OtherEncodings.StringAsLatin1Bytes(token.Data);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user