no image in pdf which created by DocConverter COM html2pdf.exe

I have a problem with an image in HTML, that doesn’t been shown in the pdf.

The image is a background-image in a field in a table

Source code: <td rowspan="3" colspan="2" style="width: 87.5mm; background-image:url(http://www.xxx/Flaechenkarte.jpg)">

I convert html to pdf with ASP and i use the following strCommand:
dim strCommandLine
strCommandLine = """" + strHtmlFileName + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + strPdfFileName + """"
strCommandLine = strCommandLine + " "
strCommandLine = strCommandLine + """" + "EnableSupportApplet=yes" + ","
strCommandLine = strCommandLine + "DelayTimeForPrintApplet=1000" + ","
strCommandLine = strCommandLine + "PrintHTMLBackground=yes" + ","
strCommandLine = strCommandLine + "paperType=9" + ","
strCommandLine = strCommandLine + "margin_left=15" + ","
strCommandLine = strCommandLine + "margin_top=15" + ","
strCommandLine = strCommandLine + "margin_right=15" + ","
strCommandLine = strCommandLine + "margin_bottom=15" + ","
strCommandLine = strCommandLine + "pageWidth=595" + ","
strCommandLine = strCommandLine + "pageHeight=842" + """"

Can you tell me, what else i have to do, that this image comes to my pdf?
==================================
Can you please email to us your sample HTML file, image file and your Order ID (if you have)? after we checked your sample files, we will figure out a solution to you shortly.

VeryPDF
==================================
Here I send you a sample html-file, the css and the image, that doesn’t exist in the pdf anymore.

The Order ID I don’t know. Verypdf has been installed on our server, before I started working here.
==================================
Please look at attached PDF file, this PDF file was converted by following command line,

html2pdf.exe "D:\temp5\html_to_pdf\Pfungen.html" "D:\temp5\html_to_pdf\Pfungen.pdf" "PrintHTMLBackground=yes"

this PDF file does contain the image, please run above command line in your system to try again, can you get it work in your system?

You can also add "PrintHTMLBackground=yes" to your code to try again, the "PrintHTMLBackground=yes" parameter may solve this problem to you.

VeryPDF
VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!