You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/gantt-chart/pdf-export.md
+194-5Lines changed: 194 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -295,7 +295,7 @@ The following sample code demonstrates adding line in the Header section of the
295
295
}
296
296
```
297
297
298
-
### How to change the change page orientation
298
+
### How to change the page orientation
299
299
300
300
The PDF export functionality allows you to customize the page orientation of the exported document. By setting the `PageOrientation` property in the `GanttPdfExportProperties` class, you can switch between Portrait (default) and Landscape orientations based on your requirements.
301
301
@@ -360,7 +360,7 @@ The following code snippet demonstrates how to set the page orientation to Lands
360
360
}
361
361
```
362
362
363
-
### How to change the change page size
363
+
### How to change the page size
364
364
365
365
The PDF export functionality allows you to adjust the page size of the exported document to meet your specific needs. By setting the `PageSize` property in the `GanttPdfExportProperties` class, you can select from various standard page sizes. The default page size is Letter, but other options like A4, A3, and more are available.
366
366
@@ -471,7 +471,7 @@ The following code demonstrates how to export the Gantt chart to a PDF with spec
@@ -598,7 +606,7 @@ The following code demonstrates how to export hidden columns in the Gantt chart
598
606
```
599
607
### Customize column width in exported PDF document
600
608
601
-
The PDF export functionality allows you to customize which columns are included in the exported PDF, as well as adjust their widths. This can be achieved using the `Columns` property in the `GanttPdfExportProperties` class. By specifying columns and their respective widths, you can tailor the PDF export to meet your specific needs.
609
+
The PDF export functionality allows you to customize columns width in the exported PDF document. This can be achieved using the `Width` property in the `GanttColumn` class. By specifying columns and their respective widths, you can tailor the PDF export to meet your specific needs.
602
610
603
611
The following code demonstrates how to customize the columns and set their widths in the exported PDF document,
604
612
@@ -614,7 +622,7 @@ The following code demonstrates how to customize the columns and set their width
@@ -675,3 +683,184 @@ The following code demonstrates how to customize the columns and set their width
675
683
}
676
684
}
677
685
```
686
+
687
+
## Customizing taskbar appearance using event
688
+
689
+
The PDF export functionality allows you to customize taskbar appearance to a PDF document using the [PdfQueryTaskbarInfo](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Gantt.GanttEvents-1.html#Syncfusion_Blazor_Gantt_GanttEvents_1_PdfQueryTaskbarInfo) event. This event provides the flexibility to customize and format the appearance of taskbars, including parent taskbars, individual taskbars, and milestone templates.
690
+
691
+
The following sample code demonstrates how to use the `PdfQueryTaskbarInfo` event to customize the appearance of taskbars in the exported PDF document,
## Customizing taskbar appearance using export property
775
+
776
+
The PDF export functionality allows you to customize taskbar appearance to a PDF document with customized colors using the `TaskbarColor` property in the `GanttPdfExportProperties` class. This property enables you to format various types of taskbars, including parent taskbars, child taskbars, milestones, critical paths, manual taskbars, and baselines.
777
+
778
+
You can use the `TaskbarColor` property to set colors for the following taskbar types:
779
+
780
+
* Parent Taskbar Color
781
+
* Child Taskbar Color
782
+
* Milestone Color
783
+
* Critical Path Color
784
+
* Manual Taskbar Color
785
+
* Baseline Color
786
+
787
+
The following code demonstrates how to customize the colors of different taskbars in the exported PDF document
0 commit comments