My PDF isn't picking up my CSS!

55 views
Skip to first unread message

aferraria

unread,
Oct 26, 2012, 2:27:31 PM10/26/12
to flying-s...@googlegroups.com
   

Hi,

Here is my html:

 

<html>

<head>

      <link rel="stylesheet" type="text/css" media="all" href="myurl">

</head>

<body>

                ....

</body>

</html>

 

and Java code:

 

String content = myhtmlcode;   

String HTML_TO_PDF = "ConvertedFile.pdf"

OutputStream os = new FileOutputStream(HTML_TO_PDF);      

ITextRenderer renderer = new ITextRenderer();

renderer.setDocumentFromString(content);

renderer.layout();

renderer.createPDF(os, true);  

os.close();

 

where is the problem???

 

Regards,

Alejo

T A

unread,
Feb 5, 2015, 10:03:34 AM2/5/15
to flying-s...@googlegroups.com
This has been  posted 3 years ago..and I am going through the same thing right now.. did you find any solution for this?
Reply all
Reply to author
Forward
0 new messages