PDF Generation:- Background Image or background Color disappeared from the PDF file

  •  10-31-2008, 4:33 AM

    PDF Generation:- Background Image or background Color disappeared from the PDF file

     
    Hello Adam,
     
    I am trying to produce the pdf with the SavePDF method, the result pdf is fine but the background image is not coming in the pdf. Even when i set the background color of the div, the color is also not coming in the pdf. Please let me know, if i am missing something here.
     
     
    Server Side Code:-
     
    Editor1.SavePDF("NameBadgePDF.PDF");
     
    CuteEditor Html Content:-

    <div id="ParentDIV" style="z-index: -10; left: 0px; background-image: url(http://localhost/BadgeMockup/cs/macosx.jpg); overflow: hidden; width: 463px; background-repeat: no-repeat; position: absolute; top: 0px; height: 385px">
    <div style="border-right: 1px solid; border-top: 1px solid; left: 144px; overflow: hidden; border-left: 1px solid; width: 200px; border-bottom: 1px solid; position: absolute; top: 94px; height: 40px">Type text here 1</div>
    <div style="border-right: 1px solid; border-top: 1px solid; left: 150px; overflow: hidden; border-left: 1px solid; width: 200px; border-bottom: 1px solid; position: absolute; top: 185px; height: 40px">Type text here 2</div>
    </div>

    Karan Singh
    (Web Developer)
View Complete Thread