I am using flyingsaucer together with iText in an asp.net application(using IKVM) to convert HTML into PDF's. If I put a style directly in the html it works fine (even styles put between style tags) but when I link a style sheet it fails to notice it and produces the pdf without the styles.
Any reason why this is happening?
This is the code that I am using
        Dim renderer As New ITextRenderer
        Dim buf As New StringBuffer
        buf.append(HTML)
        Dim builder As DocumentBuilder = DocumentBuilderFactory.newInstance.newDocumentBuilder()
        Dim doc As Document = builder.parse(New StringBufferInputStream(buf.toString))
        renderer.setDocument(doc, Nothing)
        renderer.layout()
        renderer.createPDF(os)
And this is link to the stylesheet
<link rel="stylesheet" href="stylemove.css" type="text/css"  />