简体   繁体   English

我可以在 Spire.PDF 中为 .Net Standard 设置 DPI 吗?

[英]Can I set the DPI in Spire.PDF for .Net Standard?

We are updating a package we have from.Net Framework to.Net Standard.我们正在将 package 从 .Net Framework 更新到 .Net Standard。 We are able to use the Spire.DPF SaveAsImage() call with DPI specified.我们可以使用指定 DPI 的 Spire.DPF SaveAsImage() 调用。 However, when downloading the Standard package, the DPI cannot be set using this call.但是,当下载标准 package 时,无法使用此调用设置 DPI。 Is there another way around?还有其他办法吗?

It turns out that this is NOT possible.事实证明这是不可能的。 I ended up using ABCPDF.我最终使用了 ABCPDF。

From Ice-Blue:来自冰蓝:

  1. For.Net Standard project, you can directly install Spire.Officefor.NETStandard 7.3.2 via nuget, then the corresponding dlls will matched automatically.对于.Net Standard项目,可以直接通过nuget安装Spire.Officefor.NETStandard 7.3.2,会自动匹配对应的dll。
  2. About the DPI issue, kindly note that the.Net Standard library of our Spire.Pdf depends on the SkiaSharp, however, the SkiaSharp library itself does not support setting DPI.关于DPI问题,请注意我们Spire.Pdf的.Net Standard库依赖于SkiaSharp,但是SkiaSharp库本身不支持设置DPI。 Thus, specifying the DPI is no longer available.因此,指定 DPI 不再可用。 What is your using scenario?你的使用场景是什么? Whether your project can use.Netcore to create?您的项目是否可以使用.Netcore来创建? If so, you can install Spire.PDF via nuget to use our.Netcore dlls.如果是这样,您可以通过 nuget 安装 Spire.PDF 以使用我们的 .Netcore dll。 It also supports setting the DPI.它还支持设置 DPI。 Look forward to your further feedback.期待您的进一步反馈。

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

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