Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Python via Java supports exporting Excel to PDF with slicer settings. The API supports this by default, you simply export the Excel file with slicer to PDF, the generated PDF will show the slicer applied. The following code snippet loads the sample Excel file that contains a slicer and saves the workbook as the output PDF file. The following screenshot compares the source Excel file and the generated PDF file.

Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.