PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: CSS and PHP to PDF
   PostPosted: 20 Jan 2011, 23:31 
I am trying to learn the product and am using the trial version.
I have managed to make my page generate a pdf but a couple of things go wrong and im not sure why.

If I leave this line in my code
Code:
<?php include("header.html"); ?>


Then the pdf generates this and stops at that point - it ignores the rest of the page.
If I take it out - the remainder of my pade goes to pdf.

Secondly when i get the remainder to goto pdf it is css free. nothing no css.
I have tried using
Code:
    <link href="report.css" title="Default Style" media="screen" rel="stylesheet"/>

and tried putting all the css on the page in
Code:
   <style type="text/css"></style>


But I get nothing.

HOWEVER - If I put all the css in each <TD <TR etc etc then it works.

ie inline works but from style it doesn't.

this is such a pain Im sure I must be missing somethign somewhere.

Any help appreciated.

Simon


  Subject: Re: CSS and PHP to PDF
   PostPosted: 15 Nov 2011, 17:02 
try to use full URL for your css



[Reply]     [ 2 posts ] 

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