Our state of the art Gantt chart

Post by kenken9301680 »

Hello friends,

I have an issue about PDF export, I am seeing your export function by default when exporting will return the url and download that file, how can I just return the url without downloading the file? .

Post by Maxim Gorkovsky »

You can set this config to false: https://bryntum.com/docs/gantt/#Gantt/feature/export/PdfExport#config-openAfterExport
to get PDF url you can listen to export event:

  export({ response }) {
    console.log(response.parsedJson.url); // PDF's URL

Please be aware that export server removes file after about 10 seconds. Feel free to refactor that part in src/server/WebServer.js#setFile

Post Reply