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:
Three ways to print html to pdf
Convert documents of HTML to PDF and set PDF keywords by command line
Questions about programmatic PDF printing from MFC CHtmlView, convert from CHtmlView to PDF file, pr...
Which product is a good choice to convert HTML file to PDF file? htmltools.exe or docPrint Pro softw...
How to convert HTML files to PDF files and use PDF Split-Merge COM/SDK to split and merge PDF files?
VeryPDF Web to PDF Converter Cloud API - Convert HTML to PDF and image with cloud server API
How to generate a single PDF file from a whole HTML site?
How to buy your HTML to PDF Converter Command Line software?