Missing spaces in bookmarks

Dear Team
Using below code, we are changing zoom of all bookmarks to “inherit zoom”. It is working fine. However for this particular file, some spaces in level 1 bookmark are removed in output file.
Please find code and attached input and output documents

    public static void BookmarkBlankSpaces(String FileIn, String FileOut)
    {
        Document PdfDoc = new Document(FileIn);
        PdfDoc.Save(FileOut);

        string res = string.Empty;
        string sourcePath = FileIn;

        PdfBookmarkEditor pdfEditor = new PdfBookmarkEditor();
        pdfEditor.BindPdf(sourcePath);
        Bookmarks bookmarks = pdfEditor.ExtractBookmarks();


        for (int i = 0; i < bookmarks.Count; i++)
        {
            bookmarks[i].PageDisplay_Zoom = 0;
            bookmarks[i].PageDisplay = "XYZ";
        }

        pdfEditor.DeleteBookmarks();
        for (int bk = 0; bk < bookmarks.Count; bk++)
        {
            if (bookmarks[bk].Level == 1)
                pdfEditor.CreateBookmarks(bookmarks[bk]);
        }
        pdfEditor.Save(FileOut);
        pdfEditor.Close();
    }

PATE-CTAR_bookmark.zip (186.6 KB)

Thanks and Regards

@crshekharam

We have observed the issue in our environment and logged it as PDFNET-48637 in our issue tracking system. We will further look into its details and keep you informed about its resolution status. Please be patient and spare us some time.

We are sorry for the inconvenience.

@asad.ali
Can you please update status of this issue. We encountered similar problem in attached document. In this case the title of bookmark at 3rd level “Background” is change to “ÿþBackground”.

bookmark_output.pdf (15.6 KB)
bookmark_input.pdf (14.7 KB)

@crshekharam

For your these particular files, we have logged another issue as PDFNET-49649 after testing and reproducing the issue with Aspose.PDF for .NET 21.3. We will surely inform you as soon as the logged tickets are resolved. Please give us some time.

We apologize for your inconvenience.