i tested following code to generate grid as each form, and using Chrome open fine.
private DocForm new_form_grid()
{
DocForm form = m_doc.NewForm();
PageContent cs = new PageContent();
cs.Create();
cs.SetStrokeColor(0xffc6deff);
cs.SetStrokeWidth(1);
Path path = new Path();//just draw a rectangle, bounding form area.
path.MoveTo(0, 0);
path.LineTo(32, 0);
path.LineTo(32,32);
path.LineTo(0, 32);
path.ClosePath();
cs.StrokePath(path);
path.Destroy();
form.SetContent(cs, 0, 0, 32, 32);
cs.Destroy();
return form;
}
private void test_grid(Page page)
{
DocForm dform = new_form_grid();
ResForm rform = page.AddResForm(dform);
PageContent content = new PageContent();
content.Create();//create content, do not forget.
float y = 0;
while(y < 800)
{
float x = 0;
while(x < 600)
{
Matrix mat = new Matrix(10.0f/32, 10.0f/32, x, y);
content.GSSave();
content.GSSetMatrix(mat);
content.DrawForm(rform);//repeat draw this form.
content.GSRestore();
x += 10;
}
y += 10;
}
page.AddContent(content, true);
content.Destroy();
}
i think u'd better to avoid to set very short line, chrome may not work perfectly.
i saw your form draw scan line with x delta 1, it is too small i think.
as i saw, u draw a line from (0, 95) to (1, 95)