Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Encoding #156

Open
bagsergen opened this issue Jan 4, 2022 · 0 comments
Open

Inconsistent Encoding #156

bagsergen opened this issue Jan 4, 2022 · 0 comments
Labels

Comments

@bagsergen
Copy link

Reporting an Issue Here

Hi, I am trying to add custom property with special characters. (like that: "ÖÇŞİĞÜüğişçö", "فثسف", "飽€¨´" )

Thanks.

Expected Behavior

The name and the value should be same.

Actual Behavior

customprops

Steps to Reproduce the Behavior

    PdfDocument document;
    key=value;
    try
    {
        document = PdfReader.Open(filePath);
        var properties = document.Info.Elements;                
        properties.SetString("/" + key, value);
        document.Save(filePath);
        document = null;                
        return true;
    }
    catch (Exception e)
    {
        if (document != null)
            document = null;
        throw;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants