pdf_rect function

Add a rectangle to a PDF doc