THotPDF.GetLoadedPageLayout Method
Reads the page layout name defined in the Catalog of the loaded PDF document
Declaration
function GetLoadedPageLayout: AnsiString;
Unit
HPDFDoc
Return value
Returns a PageLayout name string, such as 'SinglePage', 'OneColumn', 'TwoColumnLeft', 'TwoColumnRight', 'TwoPageLeft', or 'TwoPageRight'; returns an empty string if this key is absent
Usage notes
- PageLayout 控制阅读器打开文档时的页面排列方式,常与 PageMode 配合使用
- The default value is 'SinglePage', meaning one page is displayed at a time; to modify this, please use SetLoadedPageLayout
- Ensure the document has been successfully loaded before calling, otherwise returns an empty string