Skip to content

Commit

Permalink
Add pdf2htmlEX and wvWare password support
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliusSutkus89 committed Aug 25, 2024
1 parent 067abac commit e9cc120
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/main/cpp/CoreWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,10 @@ Java_at_tomtasche_reader_background_CoreWrapper_parseNative(JNIEnv *env, jobject
}

if (pdf2htmlEX) {
// @TODO: pass password
html = odr::OpenDocumentReader::pdf2htmlEX(inputPathCpp, outputPathCpp, config);
html = odr::OpenDocumentReader::pdf2htmlEX(inputPathCpp, outputPathCpp, config, passwordCpp);
}
else if (wvWare) {
// @TODO: pass password
html = odr::OpenDocumentReader::wvHtml(inputPathCpp, outputPathCpp, config);
html = odr::OpenDocumentReader::wvHtml(inputPathCpp, outputPathCpp, config, passwordCpp);
}
else {
html = odr::OpenDocumentReader::html(inputPathCpp, [&passwordCpp]() -> std::string {
Expand Down

0 comments on commit e9cc120

Please sign in to comment.