/** * Returns the PDF representation of this <CODE>PdfOutline</CODE>. * * @param writer the encryption information * @return an array of <CODE>byte</CODE> */ public override byte[] toPdf(PdfWriter writer) { if (parent != null) { put(PdfName.PARENT, parent.IndirectReference); } if (destination != null && destination.hasPage()) { put(PdfName.DEST, destination); } if (action != null) { put(PdfName.A, action); } if (count != 0) { put(PdfName.COUNT, new PdfNumber(count)); } return(base.toPdf(writer)); }