Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Fri Aug 07, 2015 9:33 am

Hello,

The new method has been finished. You can set color of level bookmarks via Document.BookmarkLayout event. Please use this temporary version only contains .Net 4.0 and bellow code to try:
Code: Select all
            ToPdfParameterList toPdf = new ToPdfParameterList();
            toPdf.CreateWordBookmarks = true;
            toPdf.WordBookmarksTitle = "Changed bookmark";
            toPdf.WordBookmarksColor = Color.Gray;

            document.BookmarkLayout += document_BookmarkLayout;

            document.SaveToFile("5446 l.pdf", toPdf);
            document.Close();
        }

        void document_BookmarkLayout(object sender, Spire.Doc.Documents.Rendering.BookmarkLevelEventArgs args)
        {
            if (args.BookmarkLevel.Level == 2)
            {
                args.BookmarkLevel.Color = Color.Red;
                args.BookmarkLevel.Style = BookmarkTextStyle.Bold;
            }
            else if (args.BookmarkLevel.Level == 3)
            {
                args.BookmarkLevel.Color = Color.Gray;
                args.BookmarkLevel.Style = BookmarkTextStyle.Italic;
            }
            else
            {
                args.BookmarkLevel.Color = Color.Green;
                args.BookmarkLevel.Style = BookmarkTextStyle.Regular;
            }
         }

We will let you know as soon as the new version is published.
If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Aug 11, 2015 3:56 am

Hello,

Have you tried the new method ? Has it met your requirement ?
Thanks for your feedback.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Aug 12, 2015 2:30 pm

Betsy has the development team fixed this issue yet? I got your email, but don't see anything here on the forum.

[email protected]
 
Posts: 110
Joined: Tue May 19, 2015 8:09 pm

Thu Aug 13, 2015 2:31 am

Hello,

Yes,the new information is on the second page of this issue, please check and try.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Aug 19, 2015 3:39 pm

Betsy, the colored child bookmark code works fine for me.

I would prefer to have a child collection to iterate over, but I can live with the event code.

Thank you.

[email protected]
 
Posts: 110
Joined: Tue May 19, 2015 8:09 pm

Thu Aug 20, 2015 1:27 am

Hello,

Thanks for your feedback and comprehension. Please feel to contact us if you have any question or needs.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Mon Aug 24, 2015 7:52 am

Hello,

Thanks for your waiting. The newest hotfix (Spire.Doc Pack (hot fix) Version:5.5.71) has been released. You can download it and have a try.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Oct 08, 2015 8:06 pm

Betsy, I don't see the 5.5.71 hot fix on the download page.

Where can I download it from?

[email protected]
 
Posts: 110
Joined: Tue May 19, 2015 8:09 pm

Fri Oct 09, 2015 1:38 am

Hi,

Please use the latest version(Spire.Doc Pack(hot fix) Version:5.5.112). The downloading link is http://www.e-iceblue.com/Download/downl ... t-now.html.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Fri Oct 09, 2015 3:38 pm

Thank you.

[email protected]
 
Posts: 110
Joined: Tue May 19, 2015 8:09 pm

Sat Oct 10, 2015 1:13 am

Hi,

You are welcome. Please feel free to write to us if you have any problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3046
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

cron