PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Annotation rotation provides rotation functionality for standard stamp annotations, custom stamp annotations, image annotations, and electronic signature annotations.
When you select a stamp or signature annotation in the CPDFReaderView, you can obtain the annotation object through the context menu and enable the rotation feature to manually rotate the annotation.
public class CPDFContextMenuHelper extends CPDFContextMenuShowHelper {
@Override
public View getStampContentView(CPDFPageView cpdfPageView, CPDFBaseAnnotImpl cpdfBaseAnnot, LayoutInflater layoutInflater{
((CPDFStampAnnotImpl) cpdfBaseAnnot).setEnableRotate(true);
return view;
}
} class CPDFContextMenuHelper(p0: CPDFReaderView?) : CPDFContextMenuShowHelper(p0) {
override fun getStampContentView(
cpdfPageView: CPDFPageView?,
cpdfBaseAnnot: CPDFBaseAnnotImpl<*>?,
layoutInflater : LayoutInflater?
): View {
(cpdfBaseAnnot as CPDFStampAnnotImpl).setEnableRotate(true)
return view
}
}