PdfRenderer.Write(ParcelFileDescriptor, Boolean) Method

Definition

Saves the current state of the loaded PDF document to the given writable ParcelFileDescriptor.

[Android.Runtime.Register("write", "(Landroid/os/ParcelFileDescriptor;Z)V", "", ApiSince=35)]
public void Write (Android.OS.ParcelFileDescriptor destination, bool removePasswordProtection);
[<Android.Runtime.Register("write", "(Landroid/os/ParcelFileDescriptor;Z)V", "", ApiSince=35)>]
member this.Write : Android.OS.ParcelFileDescriptor * bool -> unit

Parameters

destination
ParcelFileDescriptor

The writable ParcelFileDescriptor

removePasswordProtection
Boolean

If true, removes password protection from the PDF before saving.

Attributes

Remarks

Saves the current state of the loaded PDF document to the given writable ParcelFileDescriptor. If the document is password-protected then setting removePasswordProtection removes the protection before saving. The PDF document should already be decrypted with the correct password before writing. Useful for printing or sharing. <strong>Note:</strong> This method closes the provided file descriptor.

Java documentation for android.graphics.pdf.PdfRenderer.write(android.os.ParcelFileDescriptor, boolean).

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.

Applies to