Page 1 of 1

[ANGULAR] how to export to pdf

Posted: Thu Jun 08, 2023 8:19 am
by naveen12

I am using Gantt I want export pdf

 features: {

    pdfExport : {

      exportServer: 'http://localhost:4250', //Print server

    },},
    tbar : {
     {

      type: 'button',

      ref: 'exportButton',

      icon: 'b-fa-file-export',

      text: 'Export to PDF',

      onAction : async () =>{

        this.gantt.zoomToFit({ //onZoomToFitClick

          leftMargin: 50,

          rightMargin: 50

      });

        this.gantt.features.pdfExport.showExportDialog();

      }

    }
    }

when I click export to pdf ExportDialog box was opened the I clicked on Export button this server error came "POST http://localhost:4250/ 404 (Not Found)" pls provide correct examble for export to pdf. (Is that any other library need for export to pdf )


Re: [ANGULAR] how to export to pdf

Posted: Thu Jun 08, 2023 11:34 am
by naveen12

Could u pls respond for the above error


Re: [ANGULAR] how to export to pdf

Posted: Thu Jun 08, 2023 3:53 pm
by Maxim Gorkovsky

Hello.
404 suggests your pdf server is unreachable. Make sure you use correct server address.