html2pdf convert problem

Last post 10-20-2010, 8:42 PM by Kenneth. 3 replies.
Sort Posts: Previous Next
  •  10-19-2010, 2:14 PM 64503

    html2pdf convert problem

    Hi and thanks for this fine product ..
     
    I have a problem when trying to convert some html to pdf.
     
    1. I can't use background-color, like: "background-color: #575757;"
    It is the HEX color that gives the problem, and after the document is saved, it can't open the document. Says that is has an error.
     
    2. I can't use background-image, like: "background-image: url(http://www.site.com/file.jpg);"
    Nothing happens, no images is printed in the pdf..
     
    I know more people has asked simular questions, but i have not found any solution for a workaround in here,
    so i try again, anyone know how to get any of these things to work ?
     
    Im using version version 6.6
  •  10-19-2010, 9:45 PM 64513 in reply to 64503

    Re: html2pdf convert problem

    Hi zentral,
     
    I tested the background color, it works fine for me. please try the steps below
     
    1. Link to http://www.cutesoft.net/example/createPDF.aspx
     
    2.  Paste the code below into html view
     
    <div style="position: absolute; width: 104px; height: 104px; background-color: #ff6600;">my pdf doc</div>
     
    3. Click the "Submit" button
     
    4. Click the "check the PDF file" link to save the pdf file.
     
    Regards,
     
    Ken
  •  10-20-2010, 2:54 AM 64517 in reply to 64513

    Re: html2pdf convert problem

    Hmm.. that is correct, you code works even from my local when it is saved as pdf through the editor.
     
    Try do this: <div style="background-color: #575757;">test</div>
     
    It works in the online version, from you link,  
    but when it runs from local it gives a damage pdf document, that can not be opened.
  •  10-20-2010, 8:42 PM 64540 in reply to 64517

    Re: html2pdf convert problem

    Hi zentral,
     
    I just test it local, it still works fine for me.
     
    Can you try upgrade to the latest version and try again?
     
    Latest version downloads: http://www.cutesoft.net/downloads/folders/21904/download.aspx 
     
    Keep me posted.
     
    Regards,
     
    ken 
View as RSS news feed in XML