IronOCR 操作指南 检测页面旋转 How to Detect Page Rotation Curtis Chau 已更新:八月 31, 2025 Download IronOCR NuGet 下载 DLL 下载 Windows 安装程序 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English 确定页面旋转涉及确定文档中页面的旋转程度。 该流程具体确定页面是顺时针还是逆时针旋转了 0、90、180 和 270 度。 这些信息对于准确呈现或处理文档至关重要,可确保页面以正确的方向显示或打印。 as-heading:2(快速入门:使用 DetectPageOrientation 识别页面旋转)</em 在这个快速示例中,开发人员在加载的 PDF 上使用 IronOCR 的 DetectPageOrientation,并立即访问最有信心的页面的 RotationAngle。 这是一种快速检测和纠正页面旋转的方法,只需最少的设置和代码。 Get started making PDFs with NuGet now: Install IronOCR with NuGet Package Manager PM > Install-Package IronOcr Copy and run this code snippet. var rotationResults = new IronOcr.OcrInput().LoadPdf("doc.pdf").DetectPageOrientation(); Console.WriteLine(rotationResults.First().RotationAngle); Deploy to test on your live environment Start using IronOCR in your project today with a free trial Free 30 day Trial 最小工作流程(5 个步骤)下载 C# 库以检测页面旋转导入 PDF 文档和图像以供阅读。 使用 DetectPageOrientation 方法检测所有页面的旋转使用 DetectPageOrientation 方法检测所有页面的旋转访问 RotationAngle 属性以纠正页面旋转。 访问 HighConfidence 属性以处理边缘情况。 检测页面旋转示例请注意This function performs well when the document is text dense.