110,536
社区成员
发帖
与我相关
我的任务
分享
public bool MergeImageFile(string file)
{
Image img = Image.GetInstance(file);
img.SetAbsolutePosition(0, 0);
Rectangle rnt = new Rectangle(img.Width, img.Height);
doc.SetPageSize(rnt);
doc.NewPage();
//img.ScaleAbsolute(img.Width, img.Height);
img.ScaleAbsolute(doc.PageSize.Width, doc.PageSize.Height);
img.Alignment = Image.ALIGN_MIDDLE;
doc.Add(img);
//pdfB.AddImage(img);
//doc.NewPage();
return true;
}