I have a somewhat weird behavior with stamps. The notable method which returns the rectangle in which the stamp should be placed is:
Code: Select all
private PXC_Rect GetRectByPoint(int breite, int hoehe, int x, int y, uint pageNum) // breite = width, hoehe = height
{
IPXC_Page page = pdfCtl.Doc.CoreDoc.Pages[pageNum];
var rect = page.get_Box(PXC_BoxType.PBox_PageBox);
PXC_Rect pRect2 = new PXC_Rect
{
bottom = y - (hoehe),
left = x,
right = (breite),
top = y
};
return pRect2;
}
Code: Select all
stampRect = GetRectByPoint(stempel.Width, stempel.Height, 5, Convert.ToInt32(pageHeight) - 5, pageNum);
Am i assuming it correclty? If yes, can i somehow make the pdf control treat the paper as if its in the usual alignment?
Thanks in advance!
Greetings,
Dennis