Base64字符串到PNG图像对于itextsharp

时间:2011-09-15 20:12:28

标签: .net base64 itextsharp

我有第三方控件允许签名捕获。我正在以base64字符串的形式从控件中捕获签名的图像。但我需要能够使用itextsharp将此图像标记为PDF文档,但无法将此base64字符串转换为可接受的格式(PNG)。

我需要使用itextsharp访问现有PDF文档的控件捕获的数据示例:

MSwjZmZmZmZlLDEsNjYwLDgwLGZhbHNlLDIyOCxjdGxTaWduYXR1cmU7IDMsQmxhY2sgNDUsMyA0NSwzIDQ0LDQgNDIsNyA0Miw5IDQyLDExIDQyLDEyIDQyLDEzIDQ2LDEzIDQ3LDEzIDQ5LDEzIDUxLDEzOyAzLEJsYWNrIDUxLDEzIDUxLDE4IDUzLDIxIDU2LDI1IDYwLDMwIDY0LDMzIDY4LDM1IDcwLDM2IDcxLDM2IDc0LDM2IDc4LDM2IDgxLDM1IDg2LDM1IDg5LDMzIDkyLDMzIDkzLDMzIDkzLDMyIDEwMCwzMyAxMTMsMzcgMTI1LDQxIDEzOSw0NCAxNTQsNDYgMTY1LDQ3IDE3Myw0NyAxNzksNDcgMTgyLDQ3IDE4Myw0NyAxODMsNDYgMTgzLDQ1IDE4Myw0NCAxODIsNDMgMTc5LDQzIDE3Niw0MSAxNjcsMzYgMTU0LDMwIDEzNSwyNiAxMDksMTkgODYsMTcgNzMsMTYgNjIsMTYgNTgsMTYgNTcsMTYgNTcsMTkgNTgsMjAgNjIsMjAgNjYsMjEgNzMsMjIgODQsMjQgOTcsMjggMTE0LDMwIDEzNiwzNiAxNTMsNDAgMTc3LDQ0IDIxMSw0OCAyNDUsNDggMjYwLDQ4IDI2OCw0NyAyNzMsNDQgMjc0LDQzIDI3Myw0MiAyNzIsNDIgMjcwLDQyIDI2OCw0MyAyNjgsNDQgMjY4LDQ2IDI3MCw0NiAyNzEsNDYgMjcyLDQ2IDI3NCw0NyAyNzcsNDcgMjgyLDQ4IDI4OSw0OCAyOTUsNDggMzAxLDQ3IDMwMyw0NCAzMDYsNDAgMzA3LDM5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