cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

Table Border not visible #144

Open sumitk91 opened 1 year ago

sumitk91 commented 1 year ago

I am using this plugin to generate PDFs from HTML in Cordova app. I am using a table to display the data, but when I am generating the PDF table borders are being disappeared in the PDF also the table CSS like the background colour not working.

cgutierrez365 commented 11 months ago

I am also experiencing issues with the background property in my ionic cordova app. The background property works on iOS 15 but doesn't on iOS 16.4 or 16.5.

Here's an example of my html. While the other properties like border, color, and font-weight work, the background color does not show at all on iOS 16.4 or 16.5. I find that the background property works fine on Android 13, however.

const testHTML = `<style>.backgroundTest {background:#e75242;border:1px solid #0fdd31;font-size:12px;line-height:12px;font-weight:bold;padding:6px 12px;color:#ffffff;border-radius:500px;margin: 2px 8px 2px 0;}</style><div class="backgroundTest">Test</div>\`;

this.pdfGenerator.fromData(testHTML, { type: 'base64', fileName: 'test.pdf' });