Xportability / css-to-pdf

Convert any HTML page or region to PDF - supports CSS, SVG, embedded XML objects, and more..
http://www.cloudformatter.com/CSS2Pdf
206 stars 78 forks source link

Not exporting all elements #80

Closed rpm192 closed 5 years ago

rpm192 commented 6 years ago

Hello,

First of all, thank you for this, it's simple to use and does what it's supposed to.

However, I am running into one minor issue, I'm creating a dynamic invoice using PHP.

When I try to download it as pdf, not all the elements are in the file.

This is how the invoice looks.

This is what I get when trying to download it.

I'm using BootStrap 3.1.0.

kbrown01 commented 6 years ago

What structure is the top portion that is missing in?

I suspect some bootstrap col- CSS and as such it equates to floating content.

This does not always behave well.

You can either send us the scrape content before or create a fiddle with garbage data ….

Or I will bet the second part is in a table.

Put the first part in a table too

Kevin

From: Joey D. [mailto:notifications@github.com] Sent: Friday, June 29, 2018 12:30 PM To: Xportability/css-to-pdf css-to-pdf@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [Xportability/css-to-pdf] Not exporting all elements (#80)

Hello,

First of all, thank you for this, it's simple to use and does what it's supposed to.

However, I am running into one minor issue, I'm creating a dynamic invoice using PHP.

When I try to download it as pdf, not all the elements are in the file.

This http://prntscr.com/k0xk98 is how the invoice looks.

This http://prntscr.com/k0xnl7 is what I get when trying to download it.

I'm using BootStrap 3.1.0.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Xportability/css-to-pdf/issues/80 , or mute the thread https://github.com/notifications/unsubscribe-auth/AAsJo1_hzfLus1ctuXfb6cZRSD6Cji-4ks5uBoArgaJpZM4U9hC9 . https://github.com/notifications/beacon/AAsJo62pOuV7OcE3e_0bJQoYR1g03eneks5uBoArgaJpZM4U9hC9.gif