/** * 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>(); }
/** * @see Graphics#dispose() */ @Override public void dispose() { if (kid) return; if (!disposeCalled) { disposeCalled = true; cb.restoreState(); cb.restoreState(); if (dg2 != null) { dg2.dispose(); dg2 = null; } if (kids != null) { ByteBuffer buf = new ByteBuffer(); internalDispose(buf); ByteBuffer buf2 = cb.getInternalBuffer(); buf2.reset(); buf2.append(buf); } } }
if (lit == null) throw new IllegalArgumentException(MessageLocalization.getComposedMessage("the.key.1.didn.t.reserve.space.in.preclose", key.toString())); bf.reset(); obj.toPdf(null, bf); if (bf.size() > lit.getPosLength())
if (lit == null) throw new IllegalArgumentException(MessageLocalization.getComposedMessage("the.key.1.didn.t.reserve.space.in.preclose", key.toString())); bf.reset(); obj.toPdf(null, bf); if (bf.size() > lit.getPosLength())
stream.flateCompress(compressionLevel); ar.addFirst(addToBody(stream).getIndirectReference()); out.reset(); if (ps.over != null) { out.append(' ');
stream.flateCompress(compressionLevel); ar.addFirst(addToBody(stream).getIndirectReference()); out.reset(); if (ps.over != null) { out.append(' ');
PdfIndirectReference ref1 = cstp.addToBody(stream).getIndirectReference(); ar.addFirst(ref1); out.reset(); if (over != null) { out.append(' ');
PdfIndirectReference ref1 = cstp.addToBody(stream).getIndirectReference(); ar.addFirst(ref1); out.reset(); if (over != null) { out.append(' ');