File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 14
14
#include < odr/document_element.hpp>
15
15
#include < odr/file.hpp>
16
16
#include < odr/html.hpp>
17
- #include < odr/html_service.hpp>
18
17
#include < odr/odr.hpp>
19
18
#include < odr/exceptions.hpp>
20
19
#include < odr/global_params.hpp>
@@ -94,9 +93,21 @@ - (bool)translate:(NSString *)inputPath cache:(NSString *)cachePath into:(NSStri
94
93
95
94
NSMutableArray *pageNames = [[NSMutableArray alloc ] init ];
96
95
NSMutableArray *pagePaths = [[NSMutableArray alloc ] init ];
97
- for (auto &&page : html->pages ()) {
96
+ for (const auto &page : html->pages ()) {
97
+ std::cout << " !!!!!!!!!!! " << (int )file.document_file ().document_type () << std::endl;
98
+ std::cout << " !!!!!!!!!!! " << (int )document->document_type () << std::endl;
99
+ std::cout << " !!!!!!!!!!! " << page.name << std::endl;
100
+
101
+ if (file.is_document_file () && (
102
+ (((file.document_file ().document_type () == odr::DocumentType::presentation) ||
103
+ (file.document_file ().document_type () == odr::DocumentType::drawing)) &&
104
+ (page.name != " document" )) ||
105
+ ((file.document_file ().document_type () == odr::DocumentType::spreadsheet) &&
106
+ (page.name == " document" )))) {
107
+ continue ;
108
+ }
109
+
98
110
[pageNames addObject: [NSString stringWithCString: page.name.c_str () encoding: [NSString defaultCStringEncoding ]]];
99
-
100
111
[pagePaths addObject: [NSString stringWithCString: page.path.c_str () encoding: [NSString defaultCStringEncoding ]]];
101
112
}
102
113
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class Pkg(ConanFile):
10
10
"odrcore/*:with_pdf2htmlEX" : False ,
11
11
"odrcore/*:with_wvWare" : False ,
12
12
}
13
- requires = "odrcore/5.0.0-pre12 "
13
+ requires = "odrcore/5.0.0-pre14 "
14
14
15
15
def generate (self ):
16
16
xcode = XcodeDeps (self )
You can’t perform that action at this time.
0 commit comments