메인 콘텐츠로 건너뛰기
이 메서드는 문서 내 모든 페이지에 대해 문서 합성을 수행합니다.

구문

C++

HRESULT Synthesize( ISynthesisParamsForDocument* SynthesisParamsForDocument );

C#

void Synthesize( ISynthesisParamsForDocument SynthesisParamsForDocument );

Visual Basic .NET

Sub Synthesize([SynthesisParamsForDocument As ISynthesisParamsForDocument = Nothing])

Parameters

SynthesisParamsForDocument [in] 문서 합성의 매개변수를 저장하는 SynthesisParamsForDocument 객체입니다. 이 Parameter는 0이 될 수 있습니다. 이 경우, 문서는 기본 매개변수로 합성되며, profile이 로드된 경우에는 해당 profile에서 설정한 매개변수가 사용됩니다.

Return values

합성(synthesis)이 사용자에 의해 중단된 경우 이 메서드는 E_ABORT를 반환합니다. 또한 ABBYY FineReader Engine 함수의 표준 반환 코드도 반환합니다.

비고

  • 다음과 같은 경우에는 document synthesis 단계를 생략할 수 있습니다:
    • 인식된 텍스트를 TXT 형식으로 내보낼 예정인 경우. 이 형식으로 내보낼 때는 synthesis 정보가 사용되지 않습니다.
    • 문서를 PDF ImageOnly 형식으로 내보낼 예정인 경우. 이 모드에서는 인식된 텍스트와 Layout 정보가 사용되지 않습니다.
그 외의 모든 경우에는 document synthesis를 반드시 수행해야 합니다. document synthesis를 생략하면 오류가 발생합니다.
  • 이름에 “Process”라는 단어가 포함된 메서드(예: IFRDocument::Process)는 document synthesis 단계를 포함합니다. FRPage 객체의 처리 메서드에는 이 단계가 포함되지 않으므로, 해당 메서드 사용 후 내보내기 전에 document synthesis를 수행하는 메서드를 명시적으로 호출해야 합니다.
  • document synthesis 단계의 속도를 높이고 메모리 사용량을 줄일 수 있습니다. page synthesis 중에 ISynthesisParamsForPage::DetectFontFormattingAtPageLevel 속성을 TRUE로 설정하면, document synthesis 중 폰트 Parameter 감지 및 문서 구조 감지를 비활성화할 수 있습니다(ISynthesisParamsForDocument::DetectFontFormattingISynthesisParamsForDocument::DetectDocumentStructure). 단, 이 경우 품질이 저하될 수 있습니다.
  • 이 메서드는 FRDocument 객체의 IConnectionPointContainer 인터페이스에 연결된 리스너에 이벤트를 보고할 수 있습니다.

참조

FRDocument SynthesizePages 프로필 작업