ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

ui grid pdf creation error

Open gindij opened this issue 11 years ago • 4 comments

When I try to export my grid to a PDF and try to open the file, I get the following message

image

and Adobe shows me a blank pdf.

Any ideas as to what might be happening here?

my exporter settings:

image

gindij avatar Jul 10 '15 16:07 gindij

I'd try a breakpoint to grab the docDefinition, then put that docDefinition into the pdfMake testing page to see what's going on.

PaulL1 avatar Jul 10 '15 17:07 PaulL1

Sorry I'm pretty new to this... where would I break to find the docDefinition?

gindij avatar Jul 10 '15 20:07 gindij

I'd open the ui-grid.js, and search for docDefinition. I think it only appears in exporter, in a method called something like pdfExport. The last step in that is to call pdfMake passing in that document definition. Put a breakpoint there, and then grab the document definition, and paste that into the pdfMake testing page.

PaulL1 avatar Jul 19 '15 07:07 PaulL1

This is pretty old, and sounds like an upstream bug. Advice given on how to diagnose, and no progress since then - closing.

PaulL1 avatar Nov 18 '15 07:11 PaulL1