-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle invalid xml characters in text exporters and fix #655
- Loading branch information
Showing
11 changed files
with
1,068 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/UglyToad.PdfPig.DocumentLayoutAnalysis/Export/InvalidCharStrategy.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace UglyToad.PdfPig.DocumentLayoutAnalysis.Export | ||
{ | ||
/// <summary> | ||
/// How to handle invalid characters. | ||
/// </summary> | ||
public enum InvalidCharStrategy : byte | ||
{ | ||
/// <summary> | ||
/// Custom strategy. | ||
/// </summary> | ||
Custom = 0, | ||
|
||
/// <summary> | ||
/// Do not check invalid character. | ||
/// </summary> | ||
DoNotCheck = 1, | ||
|
||
/// <summary> | ||
/// Remove invalid character. | ||
/// </summary> | ||
Remove = 2, | ||
|
||
/// <summary> | ||
/// Convert invalid character to hexadecimal representation. | ||
/// </summary> | ||
ConvertToHexadecimal = 3 | ||
} | ||
} |
Oops, something went wrong.