Hi Team ,
The PDF export functionality works correctly on localhost, but on the server, the styles are missing when exporting to PDF. Eventhough the server response is success but still styles are missing.Attached the server response and pdf screenshots. Below is the code which I used for export pdf
const headerTpl = ({ currentPage, totalPages }) => `
<div class="demo-export-header">
<dl>
<dt>Date: ${DateHelper.format(new Date(), "ll LT")}</dt>
<dd>${totalPages ? `Page: ${currentPage + 1}/${totalPages}` : ""
}</dd>
</dl>
</div>`;
const footerTpl = () => '<div class="demo-export-footer"><h3>Ramco</h3></div>';
{
type: "button",
ref: "exportButton",
icon: "b-fa-file-export-pdf",
text: "PDF",
onClick() {
let { gantt, scheduler, histogram } =
bryntumRefs.current;
gantt.features.pdfExport.showExportDialog();
}
pdfExport: {
exportServer: "https://dev.bryntum.com:8082",
headerTpl,
footerTpl,
exportDialog: {
autoSelectVisibleColumns: false,
items: {
columnsField: {
value: [
"jobdetails",
"taskdesc",
"startdate",
"enddate",
"duar",
"promdate",
"tatduar",
"remarkscolumn",
"userdef1",
],
},
},
},
},
could you pls suggest any workarounds.
Thanks,
Prem Kumar