File Formats

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum PdfTextStyle

    Show / Hide Table of Contents

    Enum PdfTextStyle

    Allows to choose outline text style.

    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    [Flags]
    public enum PdfTextStyle
    Examples
    //Load the PDF document.
    PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
    //Get all the bookmarks.
    PdfBookmarkBase bookmarks = loadedDocument.Bookmarks;
    //Get the first bookmark and set the properties of the bookmark.
    PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark;
    bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]);
    bookmark.Color = Color.Green;
    bookmark.TextStyle = PdfTextStyle.Bold;
    bookmark.Title = "Changed title";
    //Save the document
    loadedDocument.Save("Output.pdf");
    //Close the document
    loadedDocument.Close(true);
    'Load the PDF document.
    Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
    'Get all the bookmarks.
    Dim bookmarks As PdfBookmarkBase = document.Bookmarks
    'Get the first bookmark and set the properties of the bookmark.
    Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark)
    bookmark.Destination = New PdfDestination(loadedDocument.Pages(1))
    bookmark.Color = Color.Green
    bookmark.TextStyle = PdfTextStyle.Bold
    bookmark.Title = "Changed title"
    'Save the document
    loadedDocument.Save("Output.pdf")
    'Close the document
    loadedDocument.Close(True)

    Fields

    Name Description
    Bold

    Bold text style.

    Italic

    Italic text style.

    Regular

    Regular text style.

    See Also
    PdfBookmarkBase
    PdfDestination
    PdfLoadedBookmark
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved