PDF overlay with image (transparent mask) header/footer

Draw text on image (with mask=auto for transparent images) and creating a PDF and overlay existing PDF.