/** Returns the PDF representation of this <CODE>PdfContentByte</CODE>-object. * * @param writer the <CODE>PdfWriter</CODE> * @return a <CODE>byte</CODE> array with the representation */ public byte[] toPdf(final PdfWriter writer) { sanityCheck(); return content.toByteArray(); }
/** Returns the PDF representation of this <CODE>PdfContentByte</CODE>-object. * * @param writer the <CODE>PdfWriter</CODE> * @return a <CODE>byte</CODE> array with the representation */ public byte[] toPdf(final PdfWriter writer) { sanityCheck(); return content.toByteArray(); }
/** * Makes this <CODE>PdfContentByte</CODE> empty. * @param validateContent will call <code>sanityCheck()</code> if true. * @since 2.1.6 */ public void reset( final boolean validateContent ) { content.reset(); markedContentSize = 0; if (validateContent) { sanityCheck(); } state = new GraphicState(); stateList = new ArrayList<GraphicState>(); }
/** * Makes this <CODE>PdfContentByte</CODE> empty. * @param validateContent will call <code>sanityCheck()</code> if true. * @since 2.1.6 */ public void reset( final boolean validateContent ) { content.reset(); markedContentSize = 0; if (validateContent) { sanityCheck(); } state = new GraphicState(); stateList = new ArrayList<GraphicState>(); }