public boolean setMargins ( float left , float right , float top , float bottom ) { rtfDoc . getDocumentHeader ( ) . getPageSetting ( ) . setMarginLeft ( ( int ) ( left * RtfElement . TWIPS_FACTOR ) ) ; rtfDoc . getDocumentHeader ( ) . getPageSetting ( ) . setMarginRight ( ( int ) ( right * RtfElement . TWIPS_FACTOR ) ) ; rtfDoc . getDocumentHeader ( ) . getPageSetting ( ) . setMarginTop ( ( int ) ( top * RtfElement . TWIPS_FACTOR ) ) ; rtfDoc . getDocumentHeader ( ) . getPageSetting ( ) . setMarginBottom ( ( int ) ( bottom * RtfElement . TWIPS_FACTOR ) ) ; return true ; }
Sets the page margins