Page 1 of 1

Export to pdf issue when filter bar feature is added

Posted: Tue Dec 03, 2024 7:32 am
by jintech

When adding the following feature config filter bar in this example: https://bryntum.com/products/gantt/examples/export/

filterBar: {
		compactMode: true
	}

The pdf exported has empty rows. What is the workaround for this scenario?


Re: Export to pdf issue when filter bar feature is added

Posted: Tue Dec 03, 2024 11:26 am
by alex.l

Hello!

Thank you for the report! Here is a ticket:
https://github.com/bryntum/support/issues/10431

You can subscribe on ticket updates to be notified when it's done.


Re: Export to pdf issue when filter bar feature is added

Posted: Wed Jan 22, 2025 11:37 pm
by Maxim Gorkovsky

Hello.
This may be related to the older puppeteer and chrome. Recently we upgraded pdf export server to version 2.0.0, which now uses latest puppeteer and newer packages: https://github.com/bryntum/pdf-export-server/releases/tag/2.0.0

I tested this case with 2.0.0 and it exports fine. Please try it out. If you're using your own implementation, consider upgrading puppeteer.


Re: Export to pdf issue when filter bar feature is added

Posted: Thu Jan 23, 2025 8:01 am
by jintech

I have tested again on pdf export example: https://bryntum.com/products/gantt/examples/export/ and the pdfExport server url mentioned, is running on old version, so the issue is still there. Can you update the pdf export server for the example so I can test first then update the pdf server at our ends if it works fine.

	pdfExport : {
            exportServer: 'https://dev.bryntum.com:8082',    
headerTpl, footerTpl }

Re: Export to pdf issue when filter bar feature is added

Posted: Thu Jan 23, 2025 10:10 am
by Maxim Gorkovsky

Can you run pdf export server v2.0.0 locally and test with your application? We will upgrade the pdf server online, but it will take some time and likely will be done along with the 6.2.0 release.


Re: Export to pdf issue when filter bar feature is added

Posted: Fri Jan 24, 2025 4:58 pm
by Maxim Gorkovsky

We hosted pdf export server v 2.0.0 on https://dev.bryntum.com:8083. Minor style adjustment is required for previous releases to work with new chromium on export server. Add this to the exported page:

<style>
.b-print-root .b-timeranges-canvas { display  : block;
        contain  : strict;
        width    : 100%;
        height   : 100%;
        position : absolute;
}
html.b-print-root {
        overflow: auto !important;
}
</style>