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.
==================================
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.
Related Posts
Related posts:
htmltools.exe doesn't support "page-break-before: always;" during HTML to PDF conversion?
Convert HTML To PDF from aspx program language
VeryPDF HTML to Any Converter CLI
Use htmltools.exe to convert long HTML file to multipage PDF file
Convert Office files to PDF files on 64bit Windows System by Doc Converter COM
Will html2pdf.exe using the conversion queue?
Free html to PDF/tiff converter by API
DocConverter COM is not able to generate PDF in 64bit machine/server