Skip to content

Inconsistent Encoding #156

@bagsergen

Description

@bagsergen

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions