elarson
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] table CSS formatting from plugin not appliedOops, I accidently posted the last post in the wrong thread. Going to re-post it in http://wordpress.org/support/topic/include-a-print-css-file
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] table CSS formatting from plugin not appliedI also did some testing with trying to get some Twitter Bootstrap shortcodes and plugins to work, also with no luck. The ones I tried were: WordPress Twitter Bootstrap CSS, Bootstrap Shortcodes for WordPress, Easy Bootstrap Shortcode and Bootstrap Glyphicons in Visual Editor.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?I’ve also looked into trying to find what CSS TCPDF does support, with very little luck. It’s hard to glean them all from the source file tcpdf.php.
From what I have read, the supported tags are: a, b, blockquote, br, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, img, li, ol, p, pre, small, span, strong, sub, sup, table, tcpdf, td, th, thead, tr, tt, u, ul.
As mentioned, TCPDF has very limited CSS support. TCPDF is able to parse all CSS properties but only a subset of them are applied. Currently, the following known CSS attributes are supported: font-family, font-size, font-weight, font-style, color, background-color, text-decoration, width, height, text-align. For tables: border, border-spacing, padding, but only in the table tag. Possibly there are more, but I have not found them yet.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?Hi Lewis,
I just wanted to mention that I’ve looked into the idea of including an external CSS file (@import or as a link) and using CSS @media print queries more with TCPDF. After searching quite exhaustively, I can not see any way to do this. I understand the DOMPDF does support both. Hopefully TCPDF will support them one day also.
Regards,
EllynForum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?Hi Lewis,
It appears that what can be done with CSS is very limited with TCPDF. I’m having a heck of a time with all of the in-line HTML coding. For example, I would like to render a list with an image for a bullet as given in the last example at: http://www.tcpdf.org/examples/example_006.phps and http://www.tcpdf.org/examples/example_006.pdf.
Can you tell me where it is going to look for images? I’ve tried various locations without any luck. Here is the code:
<h1>Test custom bullet image for list items</h1>
<ul style=”font-size:14pt;list-style-type:img|png|4|4|images/logo_example.png”>- test custom bullet image
- test custom bullet image
- test custom bullet image
- test custom bullet image
Also, it appears that the fonts configured in the settings are being applied after the CSS. Can you please verify?
Any input would be much appreciated.
Regards,
EllynForum: Plugins
In reply to: [WP Post to PDF Enhanced] no header logo in pdf, but in back end it's okI found the reason the logo was not working. It was because of a conflict with another plugin “WooCommerce PDF Invoice”, which also uses TCPDF.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] no header logo in pdf, but in back end it's okI just wanted to note that on one site I have this problem, but not on another site.
A good test to make sure it is not the alpha channel problem is to copy wp-content\plugins\wp-post-to-pdf-enhanced\asset\images\logo.png to wp-content\uploads\wp-post-to-pdf-enhanced-logo.png
Ive checked the file permissions on both sites and they are the same. If I find a reason, I’ll be sure to report back about it.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?Hi Lewis,
I’m working on this now. I have basic CSS working for things like headings and table colors.
Do you happen to have a list of supported TCPDF CSS? I can’t seem to find anything in my searches, and it’s like trying to find a needle in a haystack and testing to see what works.
Just for the heck of it, I tried to include an @import url(“…/style.css”) without any success. Have you tried that? It would be an easier way than copy/paste.
Thanks for all the work you are putting towards this. I’ll let you know how things go as I get further.
Regards,
EllynForum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?Hi Lewis,
I’ve been swamped on things. Hopefully over the coming weekend I can give it a good workout.Thanks,
EllynForum: Plugins
In reply to: [Testimonials Widget] image to the left of textI also could not get this to work after many attempts. It would be great if anyone figures it out and can post their CSS code.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Include a print CSS file?I’ll give it a spin later in the week and report back. Many thanks for all of your work!
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Shortcode?CSS3 / HTML 5 http://www.w3schools.com/css/css_mediatypes.asp
I’m rather new to them, but working with the WP 2014 theme, and want to incorporate them as much as possible.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Shortcode?This is a bit off topic, but do either of you know if TCPDF will honour @print queries in the CSS?
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Shortcode?About the logo, even when I rename the supplied logo wp-post-to-pdf-enhanced/assset/images/logo.png to wp-content/uploads/wp-post-to-pdf-enhanced-logo.png it does not work.
I’ll play with the alpha channel (variable transparency) but would think the supplied logo would work with tcpdf. Or am I just doing something stupid with image naming?
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Shortcode?Sounds good. I’d like to test out the logo image path when you have it, because for some reason, I’ve never been able to get this to work from my wp-content/uploads directory.