You can use CPDFViewer
to set the PDF text alignment. The following code will show you how to do this.
objective-c
/**
* Get the alignment of the selected text.
*/
NSTextAlignment alignment = [self editingSelectionAlignment];
/**
* Set the alignment of the selected text.
*/
[self setCurrentSelectionAlignment:sender.selectedSegmentIndex];