Our pure JavaScript Scheduler component


Post by mikemcs »

When exporting the schedule to PDF or PNG I lose the dependency lines between events.

Schedule (with dependencies)

1.jpg
1.jpg (53.52 KiB) Viewed 392 times

Export PDF (without dependencies)

2.jpg
2.jpg (42 KiB) Viewed 392 times
  pdfExport : {
            exportServer : 'https://<myurl>:7777',
               footerTpl    : () => '<div class=""></div>',
               headerTpl : ({ currentPage, totalPages }) => `
                               <div class="">
                               </div>`

  },

Post by Maxim Gorkovsky »

Hello.
First, we need to inspect HTML which goes from client to the export server and check if dependency elements are there. Please check out this troubleshooting guide and provide us with this HTML: https://github.com/bryntum/pdf-export-server/blob/main/docs/troubleshooting.md


Post by mikemcs »

How can I upload the HTML file to you?


Post by marcio »

Hey,

You can zip it and upload it here, or send it to support[at]bryntum.com (please let us know when you have sent it).

Best regards,
Márcio


Post by mikemcs »

sample html attached

Attachments
sample.zip
(21.82 KiB) Downloaded 22 times

Post by Maxim Gorkovsky »

I checked your HTML, it does not contain any "b-sch-dependency" elements which means your client app did not produce any. I am not sure how such a thing can occur. Do you switch dependency feature on and off? If you do, it might so happen that feature gets disabled by accident.
Try listening to some events and log state of the dependencies feature:

scheduler.on({
  beforePdfExport() { console.log(scheduler.features.dependencies.enabled) },
  pdfExport() { console.log(scheduler.features.dependencies.enabled) }
});
scheduler.features.dependencies.on({ exportStep() { console.log(scheduler.features.dependencies.enabled) } })

Post by mikemcs »

console:

1.jpg
1.jpg (21.01 KiB) Viewed 335 times

Post by alex.l »

Hi,

Could you please confirm you used latest released version of the Scheduler and latest released version of PDF server?
Scheduler version: 5.6.2
Current server: https://github.com/bryntum/pdf-export-server

All the best,
Alex


Post Reply