本文介绍了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
推荐答案
PdfImage image = myPdfDocument.NewImage("FileName.jpg");
之后你可以得到身高$ c $通过以下代码获取图像的c>和
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文件中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!