Android.Graphics.Pdf.PdfDocument.WriteTo Method
Writes the document to an output stream.

Syntax

[Android.Runtime.Register("writeTo", "(Ljava/io/OutputStream;)V", "GetWriteTo_Ljava_io_OutputStream_Handler")]
public virtual void WriteTo (System.IO.Stream out)

Parameters

out
The output stream. Cannot be null.

Exceptions

TypeReason
Java.IO.IOExceptionIf an error occurs while writing.

Remarks

Writes the document to an output stream. You can call this method multiple times.

Note: Do not call this method after PdfDocument.Close. Also do not call this method if a page returned by PdfDocument.StartPage(.PageInfo) is not finished by calling PdfDocument.FinishPage(.Page).

[Android Documentation]

Requirements

Namespace: Android.Graphics.Pdf
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0