Gets the security handler.
The function sets a new SecurityHandler as the current security handler.
Sometimes it is desirable to modify all indirect references to a given
indirect object. It would be inefficient to manually search for all
indirect references to a given indirect object.
A more efficient and less error prone method is to replace the indirect
object in the cross reference table with a new object. This way the object
that is referred to is modified(or replaced) and indirect references do
not have to be changed.
Namespace:
pdftron.SDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public void Swap(
int objNum1,
int objNum2
)
Public Sub Swap (
objNum1 As Integer,
objNum2 As Integer
)
public:
virtual void Swap(
[InAttribute] int objNum1,
[InAttribute] int objNum2
) sealed
function Swap(objNum1, objNum2);
Parameters
- objNum1
- Type: SystemInt32
The object number of the 1st Obj to swap with.
- objNum2
- Type: SystemInt32
The object number of the 2nd Obj to swap with.
Return Value
Type:
Currently selected SecurityHandler.
Remarks
InitSecurityHandler() should be called before GetSecurityHandler() in order to initialize the handler.
Returned security handler can be modified in order to change the security settings of the exisitng
document. Changes to the current handler will not invalidate the access to the original file and will
take effect during document Save.
Remarks
Setting a new security handler will not invalidate the access to the original file and will take effect
during document Save.
If the security handler is modified, document will perform a full save even if e_incremental was given
as a flag in SaveAsync() method.
See Also