Q: Is there an easy way to get the current clip rectangle? I found
references on how to set it, but not how to get it.
-----
A: Are you looking for page clip rectangle (page.GetCropBox() etc) or
for the current (element) clip path?
In case you need to determine the clip path for the current element
you would need to track the current clipping path. You can find more
information on this in PDFNet Knowledge Base (
http://groups.google.com/
group/pdfnet-sdk/topics ; search for "How are clipping paths handled
by PDFNet"). Since you are interested in the current clip rectangle,
the task is simpler since you only need to store the bounding box for
each clip path (path.GetBBox(clip_box)); to intersect two clipping
rectangles on the clip stack use pdftron.PDF.Rect.IntersectRect(r1,
r2).