使用 ExpertPdf HtmlToPdf Converter 将 html 转换为 pdf

convert html to pdf with ExpertPdf HtmlToPdf Converter

我需要使用 base64 和 ephtmltopdf.dll 将 html 转换为 pdf。转换进行得很顺利。但是我不能select 转换后的PDF内容保存为图片文件。我需要能够在转换后 select 文本。我已尝试更改其他帖子中建议的配置,但仍然无法正常工作。

PDF 有两种类型。 Raster pdf,本质上是图像,vector pdf。您需要创建矢量 pdf。而您使用的软件是 html-to-pdfdocumentation 关于它

pdfConverter.PdfDocumentOptions.GenerateSelectablePdf = true;

你可以看到 example. Also, see if you are not falling victim of this situation