我想缩放图像是在PDF文档整版。我使用iTextSharp生成文档。图像具有正确的页面高宽比,但我最好选择图像扭曲而不是填充所有可用区域。iTextSharp的缩放图像以整版
我目前有:
Dim Document As New Document(PageSize, 0, 0, 0, 0)
...
Dim ContentImage = '''Method call to get image'
Dim Content = iTextSharp.text.Image.GetInstance(ContentImage, New BackgroundColor)
Content.SetAbsolutePosition(0, 0)
Content.ScaleToFit(Document.PageSize.Width, Document.PageSize.Height)
Document.Add(Content)
不幸的是,这并没有考虑打印机边距...
我需要的图像以适合打印区域(是最好的,可以在被定义PDF)
在此先感谢
@plinth谢谢,还没有发现一个 – Basic 2012-07-05 14:12:41