public PdfContentByte(PdfWriter wr) { if (wr != null) { writer = wr; pdf = writer.PdfDocument; autoControlTextBlocks = !pdf.UseSeparateCanvasesForTextAndGraphics; } }