html图像转换为pdf(图像不显示)-选择pdf
我使用PdfSelect从生成的html文件创建pdf文件,问题是图像不会显示在pdf上,而是生成在html上html图像转换为pdf(图像不显示)-选择pdf,html,vb.net,pdf,selectpdf,Html,Vb.net,Pdf,Selectpdf,我使用PdfSelect从生成的html文件创建pdf文件,问题是图像不会显示在pdf上,而是生成在html上 Dim converter As New HtmlToPdf() ' set converter options converter.Options.PdfPageSize = PdfPageSize.A4 converter.Options.PdfPageOrientation = PdfPageOrientation.Portr
Dim converter As New HtmlToPdf()
' set converter options
converter.Options.PdfPageSize = PdfPageSize.A4
converter.Options.PdfPageOrientation = PdfPageOrientation.Portrait
' create a new pdf document converting an url
Dim doc As SelectPdf.PdfDocument = converter.ConvertUrl(htmlFilePath)
' get image path
Dim imgFile As String = "C:\Users\Stefan\Desktop\Acczone General\statements\leda.jpg"
' save pdf document
doc.Save(pdfFilePath)
' close pdf document
doc.Close()
我尝试了一些编码,但它不工作,有人能帮我,使图像显示在pdf上吗
我的html 100%可用。它只是pdf,我正在使用SelectPdf使用以下格式:
Dim imgFile As String = "file:///C:\Users\Stefan\Desktop\Acczone General\statements\leda.jpg"
imgFile
应该是相关的吗?您从不使用变量。