Пример #1
0
        private static float GetPageRotationAngle(PdfLibWrapper pdf, int fileHandle, int page)
        {
            var objtype = pdf.pcos_get_string(fileHandle, $"type:pages[{page}]/Rotate");

            if (objtype == "number")
            {
                return((float)pdf.pcos_get_number(fileHandle, $"pages[{page}]/Rotate"));
            }

            return(0.0f);
        }