Hi Eric,
Thank you for your interest in Essential PDF.
We can fill the rectangle with lines using template.
Template has various features .It is more flexible. It has lot of different settings.It allows to set background for all the pages,even or odd pages,single page.
Here are some code snippets to fill the rectangle with lines.
//Create a PDF document
PDFDocument doc = new PDFDocument();
// Adding the template area.
PDFTemplateArea template = doc.Templates.Add(rect);
//Draw lines in the created template
template.Graphics.DrawLine(new PointF(x,0),new PointF(0,y));
Here is the sample for your reference:
Background (line).zip
Please take a look into it and let me know if you have any queries.
Regards,
Dhivya.