AnnMarieW / dash-app-gallery

Dash Examples Index
https://dash-example-index.herokuapp.com/
MIT License
59 stars 24 forks source link

How to export the dash data table as pdf file #150

Closed Sashanka-Shekhar-Behera closed 1 year ago

Sashanka-Shekhar-Behera commented 1 year ago

@app.callback( Output("download-dataframe-csv", "data"), Input("btn_csv", "n_clicks"), prevent_initial_call=True, ) def func(n_clicks): return dcc.send_data_frame(data.to_csv, "mydf.csv", index=False)

I use this function to export the dash table as a csv file...But I want to export the Dash datatable as a pdf file...please help!!!