Our state of the art Gantt chart


Post by prem kumar »

Hi Team,

When I tried to download the pdf at multiple pages its showing as failed to export task .Tried using exporterType : 'multipagevertical', and exporterType : 'multipage'. pdf config as follows-

  pdfExport: {
          exporterType : 'multipagevertical',
          exportServer:APP_CONFIG.UI.pdfurl, 
          headerTpl,
          footerTpl,
          sendAsBinary:true,
          exportDialog: {
            autoSelectVisibleColumns: false,
            items: {
              columnsField: {
                value: [
                  "jobdetails",
                  "taskdesc",
                  "startdate",
                ],
              },
            },
          },
        },

could u pls suggest any workarounds to resolve it.

Thanks,
Prem Kumar

Attachments
pdf-2.png
pdf-2.png (76.11 KiB) Viewed 160 times
pdf-1.png
pdf-1.png (47.96 KiB) Viewed 160 times

Post by marcio »

Hey prem kumar,

Thanks for reaching out.

Would it be possible to share a sample of the data that you're using? By the screenshot that you shared, looks like there could be something on the server side, as you can see here https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413

The HTTP 413 Content Too Large client error response status code indicates that the request entity was larger than limits defined by server

But we'll need the data sample to confirm that.

Best regards,
Márcio


Post by prem kumar »

Hi ,yes sure. Attcahed the runnable test case.Following are the steps to reproduce -

  • localhost will run at port 7000

  • on screen launch needs to click on 'GO' button

  • in bbar, besides Besides the zoom-in option, an arrow button will be available. Clicking it will provide the option to download the PDF

Thanks,
Prem Kumar

Attachments
ForumTestcase@5.6.9.zip
(2.85 MiB) Downloaded 4 times

Post by Maxim Gorkovsky »

Hello.
I'm afraid your test case is not runnable. When I run it, I see some stylesheet exceptions. I should also point out that:

  1. you should use same version of the product-frameworkname package as the product package
  2. importing both schedulerpro and gantt is not supported
    "@bryntum/demo-resources": "^1.0.0",
    "@bryntum/gantt": "^5.6.9",
    "@bryntum/gantt-react": "4.3.1", // this should be ^5.6.9
    "@bryntum/schedulerpro": "^5.6.9", // this should be removed

Speaking of the original problem, request size obviously exceeds the configured value. See this line: https://github.com/bryntum/pdf-export-server/blob/bb83295ee7a74318bac41030c29b8aa05ea15919/src/server/WebServer.js#L37

You need to either increase request size limit or export fewer pages


Post Reply