HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › I can´t apply css
- This topic has 5 replies, 2 voices, and was last updated Feb 07, 2012
16:41:36 byPD4ML.
-
AuthorPosts
-
February 6, 2012 at 15:05#26659
Hello
We bought pd4ml lybrary 1 week ago. We are developing a web application and we use a trial of pd4ml library (apache tomcat 5.5) we generate a pdf from a html string (with css link) and it works fine. But when we put the application on production, the generated pdf doesn´t apply the css styles… we activate the log but there is no problems, only this message:
“version: PD4ML 380 Pro
loading CSS file http://www.czplus.es:8080/at/consultar_facturas/estilos_consulta_detallada_factura.css
Warning: Invalid syntax in CSS selector: “”
done in 110ms.”Can someone help me please??
thank you!!!
February 6, 2012 at 15:35#28802First you need to resolve the CSS selector error.
I’ve just checked http://www.czplus.es:8080/at/consultar_facturas/estilos_consulta_detallada_factura.css – it seems to be correct. Probably there are inline styles in your source HTML.
February 6, 2012 at 15:52#28803@PD4ML wrote:
First you need to resolve the CSS selector error.
I’ve just checked http://www.czplus.es:8080/at/consultar_facturas/estilos_consulta_detallada_factura.css – it seems to be correct. Probably there are inline styles in your source HTML.
If i have warnings, no styles applies or only doesn´t apply the warning style??
why it works in development and doesn´t work in production? i have same code…
thank you for your quickly answer!!
February 6, 2012 at 16:00#28804Severe CSS error may fail the entire stylesheet applying. However, most probably, it is not your case, but I definitely makes sense to solve the issue.
> why it works in development and doesn´t work in production? i have same code…
Try to generate PDFs with bot versions and check in the PDF document properties PD4ML version numbers. Are they the same?
February 7, 2012 at 12:30#28805Good morning!!!
Finally i get the solution to my problem… it was direction´s port 8080, with another link without port it works fine!!!
But i don´t understand why with 8080 port it works in local…
Thank you very much for your interest and your quick answers 🙂
February 7, 2012 at 16:41#28806Glad it works for you now.
> But i don´t understand why with 8080 port it works in local…
I suspect network issues: probably the remote server blocks outgoing 8080 requests etc.
-
AuthorPosts
The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.
