Skip to content

Commit 9891604

Browse files
committed
Merge branch 'fix-ci-conan-core' of github.com:opendocument-app/OpenDocument.droid into fix-ci-conan-core
2 parents deddc05 + 3795a27 commit 9891604

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_CXX_EXTENSIONS OFF)
77

8-
# make sure "which conan" points to a version of 1.x
8+
# create virtual environment in project root and "pip install conan==1.*"
9+
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}/bin")
10+
# or make sure "which conan" points to a version of 1.x
11+
912
# TODO: call FIND_PROGRAM(conan) here manually so the location is cached for later
1013
# TODO: use proper virtual environment
1114

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Feel free to use it in your own project too, but please don't forget to tell us
1111
height="80">](https://play.google.com/store/apps/details?id=at.tomtasche.reader)
1212

1313
More information at http://reader.tomtasche.at/ and in the app itself.
14+
15+
## Setup
16+
17+
- `conan remote add odr https://artifactory.opendocument.app/artifactory/api/conan/conan`

app/src/main/java/at/tomtasche/reader/background/PdfLoader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public void loadSync(Options options) {
4747
File cacheDirectory = AndroidFileCache.getCacheDirectory(cacheFile);
4848

4949
pdf2htmlEX pdfConverter = new pdf2htmlEX(context).setInputPDF(cacheFile);
50+
pdfConverter.setProcessOutline(false);
51+
pdfConverter.setBackgroundImageFormat(pdf2htmlEX.BackgroundImageFormat.JPG);
5052
pdfConverter.setDRM(false);
5153
pdfConverter.setProcessAnnotation(true);
5254
if (options.password != null) {

0 commit comments

Comments
 (0)