private void createTemplate() { ContentByte.SaveState(); _template = ContentByte.CreateTemplate(ChartWidth, _chartHeight); _chartHeight -= Margin; ChartWidth -= _maxValueWidth; _template.SaveState(); }