https://bz.apache.org/bugzilla/show_bug.cgi?id=63221

--- Comment #1 from David Gauntt <[email protected]> ---
I have refined the workaround:

        public static double getTopMargin(XSSFSheet sheet) {
                return getPageMargins(sheet).getTop();
        }

        public static double getBottomMargin(XSSFSheet sheet) {
                return getPageMargins(sheet).getBottom();
        }


        private static CTPageMargins getPageMargins(XSSFSheet sheet) {
                final CTWorksheet ctSheet = sheet.getCTWorksheet();
                if (ctSheet.isSetPageMargins()) {
                        return ctSheet.getPageMargins();
                } else {
                        return ctSheet.addNewPageMargins();
                }
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to