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

Last post 11-05-2008, 4:20 AM by maximus392. 5 replies.
Sort Posts: Previous Next
  •  10-31-2008, 4:33 AM 45237

    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)
  •  10-31-2008, 9:26 AM 45248 in reply to 45237

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

  •  10-31-2008, 9:35 AM 45251 in reply to 45248

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

    Not to hijack this thread, but it you enter the following into the above web page, the resulting pdf looks bad.....   No font changes, and the table isn't displayed correctly......
    Also having lots of problems with pdf's...
    Jim

    <html>
        <head>
            <title>Sample document for test</title>
        </head>
    <body>
    <div>Hello world</div>
    <div>&nbsp;</div>
    <div style="font-size: 18pt; font-family: Arial">Bigger&nbsp;<span style="font-family: Times New Roman">TimesRoman</span></div>
    <div style="font-size: 18pt; font-family: Arial">
    <table style="border-right: 2px; border-top: 2px; border-left: 2px; border-bottom: 2px" cellspacing="2" cellpadding="2" width="500" border="0">
        <tbody>
            <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
            </tr>
            <tr>
                <td>4fasfsafsafasfsadfdsaf</td>
                <td colspan="2">5</td>
            </tr>
            <tr>
                <td>7</td>
                <td>8fsafdsafsa</td>
                <td>9fsdafdsafdsafdsafdsa</td>
            </tr>
        </tbody>
    </table>
    </div>
    </body>
    </html>

  •  10-31-2008, 9:37 AM 45252 in reply to 45248

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

    Hi Adam,
     
    I tried your sample webpage . But it also didn't work with the background-image and background-color style properties.
     
    Please suggest any other alternative for the solution.
     
    Thanks
    Karan
     

    Karan Singh
    (Web Developer)
  •  11-03-2008, 1:45 AM 45313 in reply to 45252

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

    Hi maximus392,
     
     
    We are investigating this issue and will get back to you as soon as possible.
     
     
    Regards,
     
    Ken
  •  11-05-2008, 4:20 AM 45405 in reply to 45313

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

    Hi Ken,
     
    Any luck in finding the solution to the problem.
     
    thanks
     

    Karan Singh
    (Web Developer)
View as RSS news feed in XML