Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.
When you work with analysis, recognition, or synthesis results, you may need to iterate document pages and blocks on them. In this case, you should take into account that when you request a document element (e.g., a page or a block) for viewing or editing, the data is loaded into memory and stays there until it is unloaded explicitly. This may lead to an “out of memory” error. To prevent it, follow the recommendations below.
Iterating document pages
When you use the processing methods of the FRDocument object, layouts and image documents in Linux and macOS will be unloaded to disk automatically. In Windows, layouts and image documents can be saved to disk automatically; however, this behavior is based on the selected value of the PageFlushingPolicy property.But if you request a page of a document and its blocks for viewing or editing, the data is not unloaded or saved automatically. If you are viewing or editing a number of pages, you should unload the data after you have finished working with each page. It means that you should call the Flush method of the FRPage object.
Windows users working with .NET should also call GC.Collect and GC.WaitForPendingFinalizers.
On the other hand, if you make some changes while iterating through pages, you need to call the Flush method to save these changes. Otherwise, if you call, for example, the SaveToFolder or one of the export methods of the corresponding FRDocument, your changes will be saved to the folder (or the exported document) but will be cleared from the object you are working with.In Windows, the behavior of the Flush method depends on the value of the IFRDocument::PageFlushingPolicy property. If the value of PageFlushingPolicy is PFP_FlushToDisk, a call to the method unloads layout and image documents to disk. If it is PFP_Auto, a call to the method unloads the data to disk, if there are more than 30 pages in the document; otherwise, the data is kept in memory. If it is PFP_KeepInMemory, the data is not unloaded. This is convenient when you process both small and large documents in one solution, as you can use the same code for processing.
Windows Samples
C# code
FREngine.IFRPages pages = document.Pages;int pagesCount = pages.Count;for (int i = 0; i < pagesCount; i++){ FREngine.IFRPage page = pages.Item(i); // Iterate pages – work with blocks, paragraphs, characters iteratePage(page); // Force Garbage Collector to free all unreferenced objects from page GC.Collect(); GC.WaitForPendingFinalizers(); // Unload unused page data // If the page was changed in iteratePage(), call Flush(true) to keep changes page.Flush(true); // If there is no need to keep changes, call Flush(false) // page.Flush(false);}
C++ (COM) code
FREngine::IFRPagesPtr pages = document->Pages;int pagesCount = pages->Count;for( int i = 0; i < pagesCount; i++ ) { FREngine::IFRPagePtr page = pages->Item( i ); // Iterate pages – work with blocks, paragraphs, characters iteratePage( page ); // Unload unused page data // If the page was changed in iteratePage(), call Flush( true ) to keep changes page->Flush( true ); // If there is no need to keep changes, call Flush(false) // page->Flush( false );}
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"ABBYY Documentation","description":"Public documentation for ABBYY products","colors":{"primary":"#ff2038","light":"#ff2038","dark":"#ff2038"},"logo":{"light":"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822","dark":"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822","href":"/home"},"favicon":"https://mintcdn.com/abbyy/Bmjdl5TjCaidPxKi/favicon.png?fit=max\u0026auto=format\u0026n=Bmjdl5TjCaidPxKi\u0026q=85\u0026s=a48bd110e79a8b2cca62fe532aae9ad7","appearance":{"default":"system"},"navbar":{"links":[{"href":"https://www.abbyy.com","label":"Website"}],"primary":{"type":"button","label":"Get Started","href":"/vantage/getting-started/overview"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/abbyy","x":"https://x.com/ABBYY_Software"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://www.abbyy.com/privacy"},{"label":"Legal","href":"https://www.abbyy.com/legal"},{"label":"Cookie Policy","href":"https://www.abbyy.com/cookie-policy"},{"label":"Do Not Sell","href":"https://abbyy-privacy.my.onetrust.com/webform/89584c5c-03d1-431e-81d2-37c2205d3b5b/a1068ab4-f849-4a25-8b80-c65119915ec3"}]}]},"search":{"prompt":"Search documentation..."},"integrations":{"gtm":{"tagId":"GTM-PC7TQHPL"}},"contextual":{"options":["copy","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"home"},{"language":"de","href":"de/home"},{"language":"es","href":"es/home"},{"language":"fr","href":"fr/home"},{"language":"ja","href":"ja/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"abbyy","hasAudioNarration":false,"actualSubdomain":"abbyy","customDomains":["docs.abbyy.com"],"gitSource":{"type":"github","owner":"abbyyproduct","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"edits":false,"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b073eb185868f7caba2ef10","clientVersion":"0.0.4336","searchFilterCounts":[{"language":"en","tag":"FlexiCapture","count":2069},{"language":"de","tag":"FlexiCapture","count":2068},{"language":"es","tag":"FlexiCapture","count":2068},{"language":"fr","tag":"FlexiCapture","count":2068},{"language":"ja","tag":"FlexiCapture","count":2068},{"language":"de","tag":"FineReader Engine","count":1541},{"language":"es","tag":"FineReader Engine","count":1541},{"language":"en","tag":"FineReader Engine","count":1541},{"language":"fr","tag":"FineReader Engine","count":1541},{"language":"ja","tag":"FineReader Engine","count":1541},{"language":"de","tag":"API Reference","count":1155},{"language":"es","tag":"API Reference","count":1155},{"language":"en","tag":"API Reference","count":1155},{"language":"fr","tag":"API Reference","count":1155},{"language":"ja","tag":"API Reference","count":1155},{"language":"de","tag":"Vantage","count":846},{"language":"es","tag":"Vantage","count":846},{"language":"en","tag":"Vantage","count":846},{"language":"fr","tag":"Vantage","count":846},{"language":"ja","tag":"Vantage","count":846},{"language":"de","tag":"Developer \u0026 Integrations","count":799},{"language":"es","tag":"Developer \u0026 Integrations","count":799},{"language":"en","tag":"Developer \u0026 Integrations","count":799},{"language":"fr","tag":"Developer \u0026 Integrations","count":799},{"language":"ja","tag":"Developer \u0026 Integrations","count":799},{"language":"de","tag":"Project Setup \u0026 Design","count":741},{"language":"es","tag":"Project Setup \u0026 Design","count":741},{"language":"en","tag":"Project Setup \u0026 Design","count":741},{"language":"fr","tag":"Project Setup \u0026 Design","count":741},{"language":"ja","tag":"Project Setup \u0026 Design","count":741},{"language":"de","tag":"Programmer's Guide","count":606},{"language":"es","tag":"Programmer's Guide","count":606},{"language":"en","tag":"Programmer's Guide","count":606},{"language":"fr","tag":"Programmer's Guide","count":606},{"language":"ja","tag":"Programmer's Guide","count":606},{"language":"de","tag":"Advanced Designer","count":520},{"language":"es","tag":"Advanced Designer","count":520},{"language":"en","tag":"Advanced Designer","count":520},{"language":"fr","tag":"Advanced Designer","count":520},{"language":"ja","tag":"Advanced Designer","count":520},{"language":"de","tag":"Skills","count":516},{"language":"es","tag":"Skills","count":516},{"language":"en","tag":"Skills","count":516},{"language":"fr","tag":"Skills","count":516},{"language":"ja","tag":"Skills","count":516},{"language":"de","tag":"Connectors","count":365},{"language":"es","tag":"Connectors","count":365},{"language":"en","tag":"Connectors","count":365},{"language":"fr","tag":"Connectors","count":365},{"language":"ja","tag":"Connectors","count":365}],"searchSettings":{"isFiltersEnabled":true,"maxResults":10}},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"footer{margin-top:auto;padding:2rem 0;border-top:1px solid var(--border-color);width:100%;clear:both;position:relative;z-index:1}body{display:flex;flex-direction:column;min-height:100vh}main{flex:1}footer a{color:var(--text-secondary);text-decoration:none;transition:color 0.2s ease}footer a:hover{color:var(--primary);text-decoration:underline}footer>div{max-width:100%;margin-left:auto;margin-right:auto;padding-left:1rem;padding-right:1rem}footer .footer-links{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:1rem}@media (min-width: 1024px){footer{margin-left:0;padding-left:1rem}}.abbyy-stripe{background-image:linear-gradient(45deg, #dfebfd, #dfebfd 10px, #ecf3fe 10px, #ecf3fe 20px)}.dark .abbyy-stripe{background-image:linear-gradient(45deg, rgb(30 41 59 / 0.45), rgb(30 41 59 / 0.45) 10px, rgb(15 23 42 / 0.45) 10px, rgb(15 23 42 / 0.45) 20px)}.abbyy-btn-primary{background-color:#ff2038}.abbyy-btn-primary:hover{background-color:#e01c32}.abbyy-btn-primary:focus{--tw-ring-color: rgb(255 32 56 / 0.35)}.abbyy-link-primary{color:#ff2038}.abbyy-link-primary:hover{color:#e01c32}.dark .abbyy-link-primary{color:#ff4d60}.abbyy-eyebrow{color:#0b4aaa}.dark .abbyy-eyebrow{color:#93b8ec}.docs-home{max-width:80rem;margin:0 auto;padding:2.5rem 1.25rem 8rem}@media (min-width: 1024px){.docs-home{padding-left:2.5rem;padding-right:2.5rem}}.docs-home h1{font-size:2rem;font-weight:800;margin-top:1.5rem;margin-bottom:0.75rem;color:#0f172a;letter-spacing:-0.025em}@media (min-width: 640px){.docs-home h1{font-size:2.5rem}}.docs-home>p:first-of-type{color:#374151;font-size:1.0625rem;line-height:1.75;margin-bottom:2rem}.docs-home h2{font-size:1.375rem;font-weight:700;margin-top:2.5rem;margin-bottom:0.5rem;color:#0f172a}.docs-home a.link,.docs-home p a,.docs-home [data-as=\"p\"] a{color:#0f172a!important;text-decoration:underline!important;text-decoration-thickness:1.5px!important;text-underline-offset:3px!important}.dark .docs-home a.link,.dark .docs-home p a,.dark .docs-home [data-as=\"p\"] a{color:#f1f5f9!important}.docs-home>p{color:#374151;font-size:1rem;line-height:1.75;margin-bottom:1.75rem}.docs-home .card-group{gap:0.75rem!important;margin-top:0.75rem!important;max-width:64rem}.docs-home .card [data-component-part=\"card-content-container\"]{padding:1.25rem 1.5rem!important}.docs-home .card [data-component-part=\"card-title\"]{margin-top:0.5rem!important;font-weight:600!important;font-size:0.9375rem!important;color:#0f172a}.docs-home .card [data-component-part=\"card-content\"]{font-size:0.8125rem!important;line-height:1.5!important;color:#475569}.docs-home .card [data-component-part=\"card-cta\"]{margin-top:0.75rem!important}.docs-home .learn-more{display:block;margin-top:0.5rem;font-size:0.8125rem;color:var(--primary);font-weight:500}.dark .docs-home h1,.dark .docs-home h2{color:#f1f5f9}.dark .docs-home>p,.dark .docs-home .card [data-component-part=\"card-content\"]{color:#94a3b8}.dark .docs-home .card [data-component-part=\"card-title\"]{color:#f1f5f9}@media (max-width: 768px){footer .footer-links{flex-direction:column;gap:0.75rem}footer{padding:1.5rem 1rem}}"}]}
{"page":{"pagePath":"fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","slug":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","pageMetadata":{"title":"Iterating Document Pages","description":"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.","keywords":["FineReader Engine iterate document pages","FRPage Flush method","PageFlushingPolicy","out of memory OCR","FRDocument page iteration","GC.Collect FineReader Engine","FineReader Engine 12","FRE"],"href":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,..._provideComponents(),...props.components},{Accordion,CodeBlock,Heading,Note}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`When you work with analysis, recognition, or synthesis results, you may need to iterate document pages and blocks on them. In this case, you should take into account that when you request a document element (e.g., a page or a block) for viewing or editing, the data is loaded into memory and stays there until it is unloaded explicitly. This may lead to an “out of memory” error. To prevent it, follow the recommendations below.`}),`\n`,_jsx(Heading,{level:`2`,id:`iterating-document-pages`,children:`Iterating document pages`}),`\n`,_jsxs(_components.p,{children:[`When you use the processing methods of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument`,children:`FRDocument`}),` object, layouts and image documents in Linux and macOS will be unloaded to disk automatically. In Windows, layouts and image documents can be saved to disk automatically; however, this behavior is based on the selected value of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument#pageflushingpolicy`,children:`PageFlushingPolicy`}),` property.`]}),`\n`,_jsxs(_components.p,{children:[`But if you request a page of a document and its blocks for viewing or editing, the data is not unloaded or saved automatically. If you are viewing or editing a number of pages, you should unload the data after you have finished working with each page. It means that you should call the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frpage/flush-method`,children:`Flush`}),` method of the FRPage object.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Windows users working with .NET should also call GC.Collect and GC.WaitForPendingFinalizers.`})}),`\n`,_jsxs(_components.p,{children:[`On the other hand, if you make some changes while iterating through pages, you need to call the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frpage/flush-method`,children:`Flush`}),` method to save these changes. Otherwise, if you call, for example, the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument/savetofolder-method`,children:`SaveToFolder`}),` or one of the export methods of the corresponding `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument`,children:`FRDocument`}),`, your changes will be saved to the folder (or the exported document) but will be cleared from the object you are working with.`]}),`\n`,_jsxs(_components.p,{children:[`In Windows, the behavior of the Flush method depends on the value of the `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument#pageflushingpolicy`,children:`IFRDocument::PageFlushingPolicy`}),` property. If the value of PageFlushingPolicy is `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/enumerations/pageflushingpolicyenum#pfp_flushtodisk`,children:`PFP_FlushToDisk`}),`, a call to the method unloads layout and image documents to disk. If it is `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/enumerations/pageflushingpolicyenum#pfp_auto`,children:`PFP_Auto`}),`, a call to the method unloads the data to disk, if there are more than 30 pages in the document; otherwise, the data is kept in memory. If it is `,_jsx(_components.a,{href:`/fine-reader/engine/api-reference/enumerations/pageflushingpolicyenum#pfp_keepinmemory`,children:`PFP_KeepInMemory`}),`, the data is not unloaded. This is convenient when you process both small and large documents in one solution, as you can use the same code for processing.`]}),`\n`,_jsx(Heading,{level:`3`,id:`windows-samples`,children:`Windows Samples`}),`\n`,_jsx(Accordion,{title:`C# code`,id:`c-code`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IFRPages`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` pagesCount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pagesCount`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IFRPage`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`i`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Iterate pages – work with blocks, paragraphs, characters`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` iteratePage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Force Garbage Collector to free all unreferenced objects from page`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` GC`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Collect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` GC`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WaitForPendingFinalizers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Unload unused page data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // If the page was changed in iteratePage(), call Flush(true) to keep changes`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Flush`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // If there is no need to keep changes, call Flush(false)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // page.Flush(false);`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(Accordion,{title:`C++ (COM) code`,id:`c-com-code`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`cpp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`cpp`,children:_jsxs(_components.code,{language:`cpp`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IFRPagesPtr pages `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pagesCount `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Count`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`int`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; i `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` pagesCount; i`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`++`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FREngine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`::IFRPagePtr page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pages`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( i );`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Iterate pages – work with blocks, paragraphs, characters`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` iteratePage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( page );`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Unload unused page data`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // If the page was changed in iteratePage(), call Flush( true ) to keep changes`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` page`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Flush`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`( `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // If there is no need to keep changes, call Flush(false)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // page->Flush( false );`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})}),`\n`,_jsx(_components.p,{children:`See also`}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/fine-reader/engine/api-reference/document-related-objects/frdocument`,children:`FRDocument`})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`/fine-reader/engine/guided-tour/advanced-techniques/working-with-text`,children:`Working with Text`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Iterating Document Pages","description":"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.","keywords":["FineReader Engine iterate document pages","FRPage Flush method","PageFlushingPolicy","out of memory OCR","FRDocument page iteration","GC.Collect FineReader Engine","FineReader Engine 12","FRE"],"href":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Iterating document pages","slug":"iterating-document-pages","depth":2,"children":[{"title":"Windows Samples","slug":"windows-samples","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/abbyy/1facc084b5289853/images/vantage/scanning-station/breadcrumbs.js"],"subdomain":"abbyy","siteName":"ABBYY Documentation","title":"Iterating Document Pages - ABBYY Documentation","relatedPagesConfig":{"enabled":false,"limit":5,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","matchLevel":0},"de":{"href":"/de/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","matchLevel":1},"es":{"href":"/es/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","matchLevel":1},"fr":{"href":"/fr/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","matchLevel":1},"ja":{"href":"/ja/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages","matchLevel":1}},"searchTabScopes":[{"language":"en","product":"Vantage","tab":"Getting Started"},{"language":"en","product":"Vantage","tab":"Skills"},{"language":"en","product":"Vantage","tab":"Operations"},{"language":"en","product":"Vantage","tab":"Administration"},{"language":"en","product":"Vantage","tab":"Developer"},{"language":"en","product":"Vantage","tab":"Release Notes"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"en","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"en","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"en","product":"FineParser","tab":"Basic"},{"language":"en","product":"FineParser","tab":"Enterprise"},{"language":"en","product":"FineParser","tab":"Release Notes"},{"language":"en","product":"FineReader Engine","tab":"Introduction"},{"language":"en","product":"FineReader Engine","tab":"Guided Tour"},{"language":"en","product":"FineReader Engine","tab":"API Reference"},{"language":"en","product":"FineReader Engine","tab":"Visual Components"},{"language":"en","product":"FineReader Engine","tab":"Licensing"},{"language":"en","product":"FineReader Engine","tab":"Installation"},{"language":"en","product":"FineReader Engine","tab":"Distribution"},{"language":"en","product":"FineReader Engine","tab":"Specifications"},{"language":"en","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"en","product":"FineReader Engine","tab":"Release Notes"},{"language":"en","product":"FlexiCapture","tab":"Get Started"},{"language":"en","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"en","product":"FlexiCapture","tab":"Operator Guides"},{"language":"en","product":"FlexiCapture","tab":"Administration"},{"language":"en","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"en","product":"FlexiCapture","tab":"Release Notes"},{"language":"de","product":"Vantage","tab":"Getting Started"},{"language":"de","product":"Vantage","tab":"Skills"},{"language":"de","product":"Vantage","tab":"Operations"},{"language":"de","product":"Vantage","tab":"Administration"},{"language":"de","product":"Vantage","tab":"Developer"},{"language":"de","product":"Vantage","tab":"Release Notes"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"de","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"de","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"de","product":"FineParser","tab":"Basic"},{"language":"de","product":"FineParser","tab":"Enterprise"},{"language":"de","product":"FineParser","tab":"Release Notes"},{"language":"de","product":"FineReader Engine","tab":"Introduction"},{"language":"de","product":"FineReader Engine","tab":"Guided Tour"},{"language":"de","product":"FineReader Engine","tab":"API Reference"},{"language":"de","product":"FineReader Engine","tab":"Visual Components"},{"language":"de","product":"FineReader Engine","tab":"Licensing"},{"language":"de","product":"FineReader Engine","tab":"Installation"},{"language":"de","product":"FineReader Engine","tab":"Distribution"},{"language":"de","product":"FineReader Engine","tab":"Specifications"},{"language":"de","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"de","product":"FineReader Engine","tab":"Release Notes"},{"language":"de","product":"FlexiCapture","tab":"Get Started"},{"language":"de","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"de","product":"FlexiCapture","tab":"Operator Guides"},{"language":"de","product":"FlexiCapture","tab":"Administration"},{"language":"de","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"de","product":"FlexiCapture","tab":"Release Notes"},{"language":"es","product":"Vantage","tab":"Getting Started"},{"language":"es","product":"Vantage","tab":"Skills"},{"language":"es","product":"Vantage","tab":"Operations"},{"language":"es","product":"Vantage","tab":"Administration"},{"language":"es","product":"Vantage","tab":"Developer"},{"language":"es","product":"Vantage","tab":"Release Notes"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"es","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"es","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"es","product":"FineParser","tab":"Basic"},{"language":"es","product":"FineParser","tab":"Enterprise"},{"language":"es","product":"FineParser","tab":"Release Notes"},{"language":"es","product":"FineReader Engine","tab":"Introduction"},{"language":"es","product":"FineReader Engine","tab":"Guided Tour"},{"language":"es","product":"FineReader Engine","tab":"API Reference"},{"language":"es","product":"FineReader Engine","tab":"Visual Components"},{"language":"es","product":"FineReader Engine","tab":"Licensing"},{"language":"es","product":"FineReader Engine","tab":"Installation"},{"language":"es","product":"FineReader Engine","tab":"Distribution"},{"language":"es","product":"FineReader Engine","tab":"Specifications"},{"language":"es","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"es","product":"FineReader Engine","tab":"Release Notes"},{"language":"es","product":"FlexiCapture","tab":"Get Started"},{"language":"es","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"es","product":"FlexiCapture","tab":"Operator Guides"},{"language":"es","product":"FlexiCapture","tab":"Administration"},{"language":"es","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"es","product":"FlexiCapture","tab":"Release Notes"},{"language":"fr","product":"Vantage","tab":"Getting Started"},{"language":"fr","product":"Vantage","tab":"Skills"},{"language":"fr","product":"Vantage","tab":"Operations"},{"language":"fr","product":"Vantage","tab":"Administration"},{"language":"fr","product":"Vantage","tab":"Developer"},{"language":"fr","product":"Vantage","tab":"Release Notes"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"fr","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"fr","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"fr","product":"FineParser","tab":"Basic"},{"language":"fr","product":"FineParser","tab":"Enterprise"},{"language":"fr","product":"FineParser","tab":"Release Notes"},{"language":"fr","product":"FineReader Engine","tab":"Introduction"},{"language":"fr","product":"FineReader Engine","tab":"Guided Tour"},{"language":"fr","product":"FineReader Engine","tab":"API Reference"},{"language":"fr","product":"FineReader Engine","tab":"Visual Components"},{"language":"fr","product":"FineReader Engine","tab":"Licensing"},{"language":"fr","product":"FineReader Engine","tab":"Installation"},{"language":"fr","product":"FineReader Engine","tab":"Distribution"},{"language":"fr","product":"FineReader Engine","tab":"Specifications"},{"language":"fr","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"fr","product":"FineReader Engine","tab":"Release Notes"},{"language":"fr","product":"FlexiCapture","tab":"Get Started"},{"language":"fr","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"fr","product":"FlexiCapture","tab":"Operator Guides"},{"language":"fr","product":"FlexiCapture","tab":"Administration"},{"language":"fr","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"fr","product":"FlexiCapture","tab":"Release Notes"},{"language":"ja","product":"Vantage","tab":"Getting Started"},{"language":"ja","product":"Vantage","tab":"Skills"},{"language":"ja","product":"Vantage","tab":"Operations"},{"language":"ja","product":"Vantage","tab":"Administration"},{"language":"ja","product":"Vantage","tab":"Developer"},{"language":"ja","product":"Vantage","tab":"Release Notes"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Getting Started"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Installation"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Administration"},{"language":"ja","product":"Vantage Self-Hosted","version":"2.7","tab":"Operations"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Introduction"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Providers"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Operations"},{"language":"ja","product":"Vantage Self-Hosted","version":"3.0","tab":"Reference"},{"language":"ja","product":"FineParser","tab":"Basic"},{"language":"ja","product":"FineParser","tab":"Enterprise"},{"language":"ja","product":"FineParser","tab":"Release Notes"},{"language":"ja","product":"FineReader Engine","tab":"Introduction"},{"language":"ja","product":"FineReader Engine","tab":"Guided Tour"},{"language":"ja","product":"FineReader Engine","tab":"API Reference"},{"language":"ja","product":"FineReader Engine","tab":"Visual Components"},{"language":"ja","product":"FineReader Engine","tab":"Licensing"},{"language":"ja","product":"FineReader Engine","tab":"Installation"},{"language":"ja","product":"FineReader Engine","tab":"Distribution"},{"language":"ja","product":"FineReader Engine","tab":"Specifications"},{"language":"ja","product":"FineReader Engine","tab":"Frequently Asked Questions"},{"language":"ja","product":"FineReader Engine","tab":"Release Notes"},{"language":"ja","product":"FlexiCapture","tab":"Get Started"},{"language":"ja","product":"FlexiCapture","tab":"Project Setup \u0026 Design"},{"language":"ja","product":"FlexiCapture","tab":"Operator Guides"},{"language":"ja","product":"FlexiCapture","tab":"Administration"},{"language":"ja","product":"FlexiCapture","tab":"Developer \u0026 Integrations"},{"language":"ja","product":"FlexiCapture","tab":"Release Notes"}]},"lastModified":"2026-11-13T20:53:45.104Z","originalFileLocation":"fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Iterating Document Pages - ABBYY Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://abbyy.mintlify.site/_mintlify/api/og/v2?division=Advanced+Techniques\u0026amp;title=Iterating+Document+Pages\u0026amp;description=Iterate+document+pages+and+blocks+in+ABBYY+FineReader+Engine+without+running+out+of+memory%3A+call+FRPage.Flush%2C+use+PageFlushingPolicy%2C+and+%28on+.NET%29+GC.Collect.\u0026amp;theme=4f2d1c712ddc27b116468484\u0026amp;signature=224039b939f5354fa9df3489abe3481764c9c30bee4962e7f041ee6c9bbc79ee\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Iterating Document Pages - ABBYY Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://abbyy.mintlify.site/_mintlify/api/og/v2?division=Advanced+Techniques\u0026amp;title=Iterating+Document+Pages\u0026amp;description=Iterate+document+pages+and+blocks+in+ABBYY+FineReader+Engine+without+running+out+of+memory%3A+call+FRPage.Flush%2C+use+PageFlushingPolicy%2C+and+%28on+.NET%29+GC.Collect.\u0026amp;theme=4f2d1c712ddc27b116468484\u0026amp;signature=224039b939f5354fa9df3489abe3481764c9c30bee4962e7f041ee6c9bbc79ee\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/abbyy/qG6QlNTVUcFt7aek/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ABBYY Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff2038\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://docs.abbyy.com/de/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://docs.abbyy.com/es/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.abbyy.com/fr/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.abbyy.com/ja/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.abbyy.com/#organization\",\"name\":\"ABBYY Documentation\",\"url\":\"https://docs.abbyy.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/abbyy/jZX7kaKQgdxaDiIT/logo/ABBYY.png?fit=max\u0026auto=format\u0026n=jZX7kaKQgdxaDiIT\u0026q=85\u0026s=22a894b7aa77d1a21a7cea6a2484f822\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.abbyy.com#website\",\"name\":\"ABBYY Documentation\",\"url\":\"https://docs.abbyy.com\",\"publisher\":{\"@id\":\"https://docs.abbyy.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages#webpage\",\"url\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\",\"name\":\"Iterating Document Pages\",\"description\":\"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\",\"dateModified\":\"2026-11-13T20:53:45.104Z\",\"isPartOf\":{\"@id\":\"https://docs.abbyy.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Advanced Techniques\",\"item\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Iterating Document Pages\",\"item\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages#article\",\"headline\":\"Iterating Document Pages\",\"name\":\"Iterating Document Pages\",\"description\":\"Iterate document pages and blocks in ABBYY FineReader Engine without running out of memory: call FRPage.Flush, use PageFlushingPolicy, and (on .NET) GC.Collect.\",\"url\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages\",\"mainEntityOfPage\":{\"@id\":\"https://docs.abbyy.com/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages#webpage\"},\"dateModified\":\"2026-11-13T20:53:45.104Z\",\"keywords\":\"FineReader Engine iterate document pages, FRPage Flush method, PageFlushingPolicy, out of memory OCR, FRDocument page iteration, GC.Collect FineReader Engine, FineReader Engine 12, FRE\",\"publisher\":{\"@id\":\"https://docs.abbyy.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.abbyy.com#website\"}}]}\u003c/script>","agentPointerHref":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages.md","siteName":"ABBYY Documentation","nav":{"languages":[{"language":"en","products":[{"product":"Home","description":"ABBYY Documentation Portal","pages":[{"title":"Home","href":"/home"}]},{"product":"Vantage","description":"AI-powered Intelligent Document Processing","pages":[{"title":"Vantage","href":"/vantage/introduction"}]},{"product":"Vantage Self-Hosted","description":"Customer-hosted deployment of ABBYY Vantage on Kubernetes","versions":[{"version":"2.7"},{"version":"3.0"}],"pages":[{"title":"Vantage Self-Hosted","href":"/vantage/self-hosted/v3.0/introduction"}]},{"product":"FineParser","description":"Docker-native document parsing for AI pipelines","pages":[{"title":"FineParser","href":"/fine-parser/getting-started/introduction"}]},{"product":"FineReader Engine","description":"OCR SDK for developers","tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/fine-reader/engine/introduction"}]},{"tab":"Guided Tour","groups":[{"group":"Overview","pages":[{"title":"Guided Tour","href":"/fine-reader/engine/guided-tour"}]},{"group":"Basic Usage Scenarios Implementation","pages":[{"title":"Scenario Implementation","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation"},{"title":"Data Extraction","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/data-extraction"},{"title":"Document Conversion","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-conversion"},{"title":"Document Archiving","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-archiving"},{"title":"Text Extraction","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/text-extraction"},{"title":"Field-Level Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/field-level-recognition"},{"title":"Barcode Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/barcode-recognition"},{"title":"Business Card Recognition","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/business-card-recognition"},{"title":"Machine-Readable Zone Capture","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/machine-readable-zone-capture"},{"title":"Document Classification","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-classification"},{"title":"Scanning","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/scanning"},{"title":"Document Comparison","href":"/fine-reader/engine/guided-tour/basic-usage-scenarios-implementation/document-comparison"}]},{"group":"Advanced Techniques","pages":[{"title":"Overview","href":"/fine-reader/engine/guided-tour/advanced-techniques"},{"group":"Programming Aspects","pages":[{"title":"Programming Aspects","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects"},{"title":"Different Ways to Load the Engine Object","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/different-ways-to-load-engine"},{"title":"Use FineReader Engine in Multi-Threaded Server Applications","sidebarTitle":"Using ABBYY FineReader Engine in","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-server-applications"},{"title":"Error Handling","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/error-handling"},{"title":"Handling Errors During PDF/XPS Export","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/handling-errors-during-pdfxps-export"},{"title":"Working with Properties","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties"},{"title":"Working with Collections","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections"},{"title":"Working with Connectable Objects","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-connectable-objects"},{"title":"Working with COM Interfaces from a Scripting Language","sidebarTitle":"Working with COM Interfaces from a","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-scripting-languages"},{"title":"Using ABBYY FineReader Engine in Java","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java"},{"title":"Using Java with FRE for Windows","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java/using-fre-in-java-in-windows"},{"title":"Using Java with FRE for Linux","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-java/using-fre-in-java-in-linux"},{"title":"Cross-platform development in Java","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/cross-platform-development-in-java"},{"title":"Using ABBYY FineReader Engine in .NET Core","sidebarTitle":"Using ABBYY FineReader Engine in","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-net-core"},{"title":"Using ABBYY FineReader Engine in C (Objective-C)","sidebarTitle":"Using ABBYY FineReader Engine in C","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/using-in-cobjective-c"},{"title":"Out-of-Process Server Implementation","href":"/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/out-of-process-server-implementation"}]},{"title":"Working with Profiles","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles"},{"title":"Tune Preprocessing, Analysis, Recognition, and Synthesis","sidebarTitle":"Tuning Parameters of Page","href":"/fine-reader/engine/guided-tour/advanced-techniques/tuning-parameters-of-preprocessing-analysis-recognition-and-synthesis"},{"title":"Tuning Export Parameters","href":"/fine-reader/engine/guided-tour/advanced-techniques/tuning-export-parameters"},{"group":"Parallel Processing","pages":[{"title":"Parallel Processing with ABBYY FineReader Engine","sidebarTitle":"Parallel Processing with ABBYY","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing"},{"title":"Parallel Processing in Windows","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing/parallel-processing-in-windows"},{"title":"Parallel Processing in Linux","href":"/fine-reader/engine/guided-tour/advanced-techniques/parallel-processing/parallel-processing-in-linux"}]},{"title":"Working with Images","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-images"},{"title":"Working with Languages","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-languages"},{"title":"Working with Layout and Blocks","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-layout-and-blocks"},{"title":"Working with Text","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-text"},{"title":"Working with Fonts","description":"Set up fonts for ABBYY FineReader Engine when running on systems with limited or no fonts (Windows Server Core in Docker, headless Linux): required for PDF opening, synthesis, and export.","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-fonts"},{"title":"Iterating Document Pages","href":"/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"},{"title":"Using Voting API","description":"Use the ABBYY FineReader Engine Voting API to access character and word recognition hypotheses (WordRecognitionVariants, CharacterRecognitionVariants) with their confidence weights.","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-voting-api"},{"title":"Using Text Type Autodetection","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-text-type-autodetection"},{"title":"Recognizing Checkmarks","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-checkmarks"},{"title":"Recognizing Barcodes","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-barcodes"},{"title":"Recognizing Handwritten Texts","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-handwritten-texts"},{"title":"Recognizing Handprinted Arabic Digits","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-handprinted-arabic-digits"},{"title":"Recognizing Chinese, Japanese, and Korean Languages","sidebarTitle":"Recognizing Chinese, Japanese, and","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-cjk-languages"},{"title":"Working with Dictionaries","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-dictionaries"},{"title":"Working with ABBYY FineReader Engine Regular Expressions","sidebarTitle":"Working with ABBYY FineReader","href":"/fine-reader/engine/guided-tour/advanced-techniques/working-with-regular-expressions"},{"title":"Recognizing Words with Spaces","href":"/fine-reader/engine/guided-tour/advanced-techniques/recognizing-words-with-spaces"},{"title":"ZUGFeRD-compliant electronic invoices","href":"/fine-reader/engine/guided-tour/advanced-techniques/zugferd-compliant-electronic-invoices"},{"group":"Using GUI Elements","pages":[{"title":"Using Graphical User Interface Elements","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements"},{"title":"Creating an Application with a Graphical User Interface","sidebarTitle":"Creating an Application with a","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/creating-an-application-with-gui"},{"title":"Customize the Context Menu and Toolbar of a Visual Component","sidebarTitle":"Customizing the Context Menu and","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/customizing-the-context-menu-and-toolbar-of-a-visual-component"},{"title":"How Component Synchronizer Works","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/how-component-synchronizer-works"},{"title":"Visual Components Localization","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/visual-components-localization"},{"title":"Recognizing with Training","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/recognizing-with-training"},{"title":"Training User Patterns","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/training-user-patterns"},{"title":"Pattern Training Dialog Box","href":"/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/training-user-patterns/pattern-training-dialog-box"}]},{"title":"Description of the ABBYY FineReader Engine Samples","sidebarTitle":"FineReader Engine Samples","href":"/fine-reader/engine/guided-tour/samples"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/fine-reader/engine/api-reference"}]},{"tab":"Visual Components","pages":[{"title":"Visual Components","href":"/fine-reader/engine/visual-components-reference"}]},{"tab":"Licensing","pages":[{"title":"Licensing","href":"/fine-reader/engine/licensing"}]},{"tab":"Installation","pages":[{"title":"Installation","href":"/fine-reader/engine/installation"}]},{"tab":"Distribution","pages":[{"title":"Distribution","href":"/fine-reader/engine/distribution"}]},{"tab":"Specifications","pages":[{"title":"Specifications","href":"/fine-reader/engine/specifications"}]},{"tab":"Frequently Asked Questions","pages":[{"title":"Frequently Asked Questions","href":"/fine-reader/engine/frequently-asked-questions"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/fine-reader/engine/release-notes/12.8"}]}]},{"product":"FlexiCapture","description":"ABBYY FlexiCapture: design, capture, scan, process, verify, administer, and integrate intelligent document processing.","pages":[{"title":"FlexiCapture","href":"/flexi-capture/overview/hub"}]}]},{"language":"de","pages":[{"title":"de","href":"/de/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"}]},{"language":"es","pages":[{"title":"es","href":"/es/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/fine-reader/engine/guided-tour/advanced-techniques/iterating-document-pages"}]}]},"basePath":"","title":"Iterating Document Pages - ABBYY Documentation","deploymentId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","buildId":"dpl_9bQLTw9nc2h9csDGYcKwWenPcQWn","dynamics":[],"chunks":[]}