tableExport.jquery.plugin icon indicating copy to clipboard operation
tableExport.jquery.plugin copied to clipboard

Export to PDF with images, control size of image?

Open evbrew opened this issue 1 year ago • 1 comments

I took the file \test\cssPdf.html and added some IMG tags to the table cells. When exporting to PDF the images are very tiny (maybe 15x15 pixels) and regardless of which css or html width and height attributes i set it doesn't change the image size. Am i missing something?

evbrew avatar Oct 09 '23 18:10 evbrew

You could try to use the jspdf > autotable: > styles option rowHeight:

$('#pdfstyles').tableExport({type:'pdf',
                             jspdf: {orientation: 'p',
                                     margins: {right: 20, left: 20, top: 30, bottom: 30},
                                     autotable: {styles: {rowHeight: 72},
                                                 tableWidth: 'wrap'}}});

hhurz avatar Oct 28 '23 09:10 hhurz