asp.net 4.0在数据库中显示pdf文件中的图像 [英] asp.net 4.0 display image in pdf file from database

查看:76
本文介绍了asp.net 4.0在数据库中显示pdf文件中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在pdf文件中设置图像高度和宽度属性我正在使用Gios.pdf库

how to set a image height and width property in pdf file i''m using Gios.pdf library

推荐答案

您无法使用设置图像高度和宽度 Gios.pdf 库。



我在代码中提到示例2 文章中提供的示例 - Gios PDF .NET库 [ ^ ],我发现以下代码创建了一个pdf图像要添加到pdf文档中。

You cannot set the image height and width using Gios.pdf library.

As I referred the Example 2 in the code samples provided in the article - Gios PDF .NET library[^], I found that the following code creates one pdf image to be added to the pdf document.
PdfImage image = myPdfDocument.NewImage("FileName.jpg");



之后你可以得到身高 width ,但无法设置这些。


And after that you can get the height and width of image by the following code, but cannot set these.

int height  = image.Height;
int width = image.Width;





所以,您只能在插入时显示设置了预定义属性的图像。



谢谢......



So, you can only display image with its predefined properties set while insertion.

Thanks...


这篇关于asp.net 4.0在数据库中显示pdf文件中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆