PDFtoImage icon indicating copy to clipboard operation
PDFtoImage copied to clipboard

pdftoimage部分文字丢失

Open jmx-brain opened this issue 1 year ago • 1 comments

Question

转image格式时,如果pdf中有签字内容, 转成的图片中会丢失签字的内容,有解决办法吗?

jmx-brain avatar Jan 09 '25 07:01 jmx-brain

Hello @jmx-brain,

I am using machine translation to answer you. By default the annotations are not rendered into the image. I think your missing signature might be an annotation in the PDF file. You should try to enable WithAnnotations in the options (see example below).

Please let me know if this worked.

Greetings, David


你好 @jmx-brain、

我正在使用机器翻译回答您的问题。默认情况下,注释不会呈现在图像中。我认为您丢失的签名可能是 PDF 文件中的注释。您应该尝试在选项中启用 "带注释"(见下面的示例)。

如果有效,请告诉我。

您好、

大卫

PDFtoImage.Conversion.ToImage(pdfStream, options = new(WithAnnotations = true));

sungaila avatar Jan 09 '25 10:01 sungaila

Hello @jmx-brain,

I am using machine translation to answer you. By default the annotations are not rendered into the image. I think your missing signature might be an annotation in the PDF file. You should try to enable WithAnnotations in the options (see example below).

Please let me know if this worked.

Greetings, David

你好 @jmx-brain

我正在使用机器翻译回答您的问题。默认情况下,注释不会呈现在图像中。我认为您丢失的签名可能是 PDF 文件中的注释。您应该尝试在选项中启用 "带注释"(见下面的示例)。

如果有效,请告诉我。

您好、

大卫

PDFtoImage.Conversion.ToImage(pdfStream, options = new(WithAnnotations = true));

Thanks, David. You saved my day. As for this question, I think he needs to set options to be "WithFormFill: true".

cindoralla avatar Apr 27 '25 07:04 cindoralla