PdfDocument.WriteTo(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the document to an output stream.
[Android.Runtime.Register("writeTo", "(Ljava/io/OutputStream;)V", "GetWriteTo_Ljava_io_OutputStream_Handler")]
public virtual void WriteTo (System.IO.Stream? out);
[<Android.Runtime.Register("writeTo", "(Ljava/io/OutputStream;)V", "GetWriteTo_Ljava_io_OutputStream_Handler")>]
abstract member WriteTo : System.IO.Stream -> unit
override this.WriteTo : System.IO.Stream -> unit
Parameters
- out
- Stream
The output stream. Cannot be null.
- Attributes
Exceptions
If an error occurs while writing.
Remarks
Writes the document to an output stream. You can call this method multiple times.
<strong>Note:</strong> Do not call this method after #close()
. Also do not call this method if a page returned by #startPage( PageInfo)
is not finished by calling #finishPage(Page)
.
Java documentation for android.graphics.pdf.PdfDocument.writeTo(java.io.OutputStream)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.