PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: I can´t apply css
   PostPosted: 06 Feb 2012, 17:05 
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!!!


  Subject: Re: I can´t apply css
   PostPosted: 06 Feb 2012, 17:35 
First you need to resolve the CSS selector error.

I've just checked http://www.czplus.es:8080/at/consultar_ ... actura.css - it seems to be correct. Probably there are inline styles in your source HTML.


  Subject: Re: I can´t apply css
   PostPosted: 06 Feb 2012, 17:52 
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!!


  Subject: Re: I can´t apply css
   PostPosted: 06 Feb 2012, 18:00 
Severe 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?


  Subject: Re: I can´t apply css
   PostPosted: 07 Feb 2012, 14:30 
Good 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 :-)


  Subject: Re: I can´t apply css
   PostPosted: 07 Feb 2012, 18:41 
Glad 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.



[Reply]     [ 6 posts ] 

Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share