简体   繁体   English

未找到请求的值“1px”。 PDF 夏普。 这是格式错误吗?

[英]Requested value '1px' was not found. PDF Sharp. Is this a format error?

I have successfully generated a PDF using PDF Sharp, but it throws a few exceptions and the style is off.我已经使用 PDF Sharp 成功生成了 PDF,但它引发了一些异常并且样式关闭。

I need some help interrupting this exception.我需要一些帮助来中断这个异常。

    Exception thrown: 'System.ArgumentException' in mscorlib.dll

    Additional information: Requested value '1px' was not found.

No where in my .css or my html guide do I reference '1px', but I do reference '1pt'.在我的 .css 或我的 html 指南中,我没有引用“1px”,但我确实引用了“1pt”。 Are they the same thing?它们是一样的吗?

It also throws an exception regarding the (tag?) inset, but I do not reference this either.它还会引发关于(标签?)插图的异常,但我也没有引用它。

Have I set up the library incorrectly, or does it not support these items?我是否错误地设置了库,或者它不支持这些项目?

I have seen this issue with Visual Studio Debugging.我在 Visual Studio 调试中看到过这个问题。 Generally the application runs with out throwing this error.通常,应用程序运行时不会抛出此错误。 You can tell Visual Studio to ignore and everything works as expected.您可以告诉 Visual Studio 忽略,一切都按预期工作。

It still does it with versions 2019 Visual Studio and version 1.5.1.0 of HtmlRenderer.PdfSharp as of 2020-10-29截至 2020 年 10 月 29 日,它仍然使用版本 2019 Visual Studio 和版本 1.5.1.0 的 HtmlRenderer.PdfSharp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM