Our state of the art Gantt chart


Post by omkarankam »

Hi Team
I can't able to display the indicator icon in pdf whereas I am able to display the icon in UI. I need to display the pdf in good shape you can try and see at present how I am able to see the pdf and I also can't able to load CSS in pdf.

pdf.PNG
pdf.PNG (5.88 KiB) Viewed 132 times
pdfExportFeature: {
// This is our internal export server 
        exportServer: 'https://pdfexporttest.sopheon.net', 
        sendAsBinary: true,
      },
      {
          type: 'button',
          ref: 'exportButton',
          icon: 'b-fa-file-export',
          tooltip: intl.formatMessage({ id: 'ExportToPDF' }),
          onAction: (props: any) => {
            const gantt = props.source.parent.parent;
            gantt.features.pdfExport.showExportDialog();
          },
        },

Post by alex.l »

Hi, I just tested here https://bryntum.com/products/gantt/examples/export/
I enabled indicators feature in Gantt config

    features : {
        indicators   : true,

and added deadlineDate for one of tasks. In console

t = gantt.taskStore.getAt(3)
t.deadlineDate = t.endDate

And after export I see all works

Screenshot 2023-05-30 at 13.02.44.png
Screenshot 2023-05-30 at 13.02.44.png (150.61 KiB) Viewed 125 times

We need more information to help you here. Make sure you did all steps described in our guides here https://github.com/bryntum/pdf-export-server

All the best,
Alex


Post by omkarankam »

Hi Team
I have also initialized the indicator feature but still I can't able to display the indicator. I have attached the pdf could you please check.

      indicatorsFeature: {
        items: {
          earlyDates: false,
          lateDates: false,
        },
      },
       pdfExportFeature: {
        exportServer: 'https://pdfexporttest.sopheon.net',
        sendAsBinary: true,
      },
      {
          type: 'button',
          ref: 'exportButton',
          icon: 'b-fa-file-export',
          tooltip: intl.formatMessage({ id: 'ExportToPDF' }),
          onAction: (props: any) => {
            const gantt = props.source.parent.parent;
            gantt.features.pdfExport.showExportDialog();
          },
        },
Gantt (14).pdf
(283.69 KiB) Downloaded 22 times

Thanks


Post by alex.l »

Hi, I see no indicators in PDF but I can't say why by the attached PDF file.
I tried to use your PDF server to test it with our app but no luck.

We need a way to reproduce this. Please try to apply minimal changes to one of our examples to reproduce this problem and share the code with us. Or attach your full app where we can reproduce this problem for debugging.
Also please check console logs and server logs if it has any errors or warnings.

All the best,
Alex


Post Reply