MonobjcMonobjc Documented Class Library
UnlockWithPassword Method (document, password)
NamespacesMonobjc.ApplicationServicesCGPDFDocumentUnlockWithPassword(IntPtr, String)

Unlocks an encrypted PDF document, if a valid password is supplied.

Original signature is 'bool CGPDFDocumentUnlockWithPassword ( CGPDFDocumentRef document, const char *password );'

Available in Mac OS X version 10.2 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static bool UnlockWithPassword(
	IntPtr document,
	string password
)
Public Shared Function UnlockWithPassword ( _
	document As IntPtr, _
	password As String _
) As Boolean
public:
static bool UnlockWithPassword(
	IntPtr document, 
	String^ password
)
Parameters
document (IntPtr)
MISSING
password (String)
MISSING
Return Value
A Boolean that, if true, indicates that the document has been successfully unlocked. If the value is false, the document has not been unlocked.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)