All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReflowProcessor.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 
6 #ifndef PDFTRON_H_CPPPDFReflowProcessor
7 #define PDFTRON_H_CPPPDFReflowProcessor
8 
9 #include <C/PDF/TRN_ReflowProcessor.h>
10 #include <PDF/JobRequest.h>
11 #include <PDF/Page.h>
12 #include <Common/UString.h>
13 
14 namespace pdftron {
15  namespace PDF {
16 
17 /************************************************************************/
18 /* ReflowProcessor */
19 /************************************************************************/
38 {
39 public:
45  static void Initialize();
49  static bool IsInitialized();
57  static void GetReflow(const Page & page, JobRequest::ProcHandler proc, void * custom_data);
61  static void CancelAllRequests();
65  static void CancelRequest(const Page & page);
69  //static void CancelRequest(const string & doc_id);
73  static void ClearCache();
77  static void SetNoReflowContent(const UString & utf8_content);
81  static void SetReflowFailedContent(const UString & utf8_content);
82 };
83 
84 #include <Impl/ReflowProcessor.inl>
85 
86  } // namespace PDF
87 } // namespace pdftron
88 
89 #endif // PDFTRON_H_CPPPDFReflowProcessor
static void CancelRequest(const Page &page)
void(* ProcHandler)(ResultState state, const char *utf8_filepath, void *custom_data)
Definition: JobRequest.h:39
static void SetNoReflowContent(const UString &utf8_content)
static void GetReflow(const Page &page, JobRequest::ProcHandler proc, void *custom_data)
static void SetReflowFailedContent(const UString &utf8_content)