2
ITextSharp의 표 셀 내에서 이미지 위치를 오프셋하려고합니다. 아래는 내 시도의 개요를 보여주는 의사 코드이며, 어느 것도 이미지의 위치에 영향을 미치지 않는 것 같습니다. 특별히 이미지의 가운데를 셀의 왼쪽 경계선과 정렬하고 싶지만 이미지를 움직이는 방법을 파악할 수는 없습니다.ITextSharp Image 셀 내에서의 위치 지정
doc.Open();
var table = new PdfPTable(1);
var cell = new PdfPCell();
var image = Image.GetInstance(); //etc
image.SetAbsolutePosition(-10, 0); //no effect
image.Left -= 10; //no effect
image.IndentationRight = 10; // no effect
cell.AddElement(image);
table.Rows.Add(new PdfPRow(new PdfPCell[] { cell }));
doc.Add(table);