Create PdfBookmarkEntry for Chart Sheet

Possible Usage Scenarios

Previously, Aspose.Cells for Python via .NET would create PdfBookmarkEntry for a normal sheet. But now Aspose.Cells for Python via .NET can also create PdfBookmarkEntry for a chart sheet. Since a chart sheet does not have any cell other than A1, it will create a PdfBookmarkEntry for cell A1 only.

Create PdfBookmarkEntry for Chart Sheet

The following sample code loads the sample Excel file which has four sheets. Two of them are normal sheets and the other two are chart sheets. It creates four bookmark entries as follows

  • Bookmark-I
  • Bookmark-II-Chart1
  • Bookmark-III
  • Bookmark-IV-Chart2

The following screenshot shows the output PDF generated by the sample code for reference.

Screenshot of generated PDF

Sample Code