/** * <summary>Updates the specified trailer.</summary> * <remarks>This method has to be called just before serializing the trailer object.</remarks> */ protected void UpdateTrailer( PdfDictionary trailer, IOutputStream stream ) { // File identifier update. FileIdentifier identifier = FileIdentifier.Wrap(trailer[PdfName.ID]); if (identifier == null) { trailer[PdfName.ID] = (identifier = new FileIdentifier()).BaseObject; } identifier.Update(this); }