Hello all, I'm creating an app where users can edit styling of a page and then export this. I have the default styles in a CSS file. However, the inline styles which users can change via state, is not exporting.
Anybody know how to fix this? Thanks.
1 Answer, 1 is accepted
0
Filip
Telerik team
answered on 18 Jul 2022, 08:57 AM
Hello, Emmanuel,
I made a small example in order to reproduce the explained behavior, however, I was not able to, it seems that the inline styles are exported properly:
Are you passing the inline styles the same way? If yes and they are still not exported properly can you provide a reproducible example so that I can inspect and help further?
Thank you for your reply. It seems it works when the styles are stated explicitly. I am setting mine through a variable from a style object as it needs to be changed by the user. Here's what it looks like:
The Kendo UI PDF export adds a special class during the export so you can use that to your ... .k-pdf-export .export-text { display:inline; The standard PDF fonts have no support for cps test Unicode characters. The font-face is declared in the Kendo UI stylesheets. ... performance and rises ...When I attempt to export to PDF, the operation is successful but the PDF itself is broken. In Acrobat it says that it cannot open the file, ...How can I export only the selected rows of a Kendo UI Grid to PDF? Solution. In the pdfExport event handler, hide the rows that are not selected by using CSS.
Filip
Telerik team
commented on 20 Jul 2022, 07:16 AM
Hello, Emmanuel,
I am glad to hear that the PDF export works. Let me know in case you need assistance with something else.