Dear PoDoFo team,
Dots should not be replaced in the strings stored in the "F" key of a
FileSpec dictionary.
The proposed changes to address the issue are in the attached patch file.
Regards Nikita Shlyapnikov.
Index: PdfFileSpec.cpp
===================================================================
--- PdfFileSpec.cpp (revision 1818)
+++ PdfFileSpec.cpp (working copy)
@@ -159,7 +159,7 @@
if ((ch >= L'a' && ch <= L'z') ||
(ch >= L'A' && ch <= L'Z') ||
(ch >= L'0' && ch <= L'9') ||
- ch == L'_') {
+ ch == L'_' || ch == L'.') {
str.put( ch & 0xFF );
} else if (ch == L'/') {
str.put( '\\' );
@@ -268,7 +268,7 @@
if ((ch >= 'a' && ch <= 'z') ||
(ch >= 'A' && ch <= 'Z') ||
(ch >= '0' && ch <= '9') ||
- ch == '_') {
+ ch == '_' || ch == '.') {
str.put( ch & 0xFF );
} else if (ch == '/') {
str.put( '\\' );
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users