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 usingGios.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");
之后你可以得到身高$ 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...