/// <summary> /// Saves the <see cref="PdfDocument"/> to a <paramref name="stream"/>. /// </summary> /// <param name="version"> /// The new PDF file version of the saved file. /// 14 for 1.4, 15 for 1.5, etc. Values smaller than 10 are ignored. /// </param> public bool Save(Stream stream, SaveFlags flags = SaveFlags.None, int version = 0) { return(PDFium.FPDF_SaveAsCopy(Handle, stream, flags, version)); }