Jump to content

External CSS into PDFs created with PHP PDF Library (TCPDF)?


galvin

Recommended Posts

I haven't worked with TCPDF yet (PHP class for creating PDFs) but if anyone has, I'm just curious if you can reference an external CSS file to format the HTML that gets created in the PDF?

 

Or can you only use inline CSS?

 

Basically, I have a nicely formatted HTML table using a somewhat complicated external CSS file and I want to output that same table to a PDF and have it look essentially the same.

 

If TCPDF cannot do this, do you know of any other PDF PHP libraries that can?

 

Thanks,

Greg

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.