react-native-pdf 7.0.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ react-native link react-native-pdf
|
|
|
85
85
|
|
|
86
86
|
### Windows installation
|
|
87
87
|
<details>
|
|
88
|
-
<
|
|
88
|
+
<summary>Windows details</summary>
|
|
89
89
|
|
|
90
90
|
- Open your solution in Visual Studio 2019 (eg. `windows\yourapp.sln`)
|
|
91
91
|
- Right-click Solution icon in Solution Explorer > Add > Existing Project...
|
|
@@ -168,7 +168,7 @@ react-native run-ios
|
|
|
168
168
|
### ChangeLog
|
|
169
169
|
<details>
|
|
170
170
|
<summary>ChangeLog details</summary>
|
|
171
|
-
v7.0.
|
|
171
|
+
v7.0.1
|
|
172
172
|
1. Fixed: not rendering on iOS
|
|
173
173
|
2. Added: Android 16 KB Page Size support
|
|
174
174
|
3. Fixed: crash issue in io.legere:pdfiumandroid that occurred due to multithreading
|
|
@@ -99,6 +99,11 @@ public class PdfManager extends SimpleViewManager<PdfView> implements RNPDFPdfVi
|
|
|
99
99
|
// NOOP on Android
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
@Override
|
|
103
|
+
public void setShowsVerticalScrollIndicator(PdfView view, boolean value) {
|
|
104
|
+
// NOOP on Android
|
|
105
|
+
}
|
|
106
|
+
|
|
102
107
|
@ReactProp(name = "enableRTL")
|
|
103
108
|
public void setEnableRTL(PdfView view, boolean enableRTL) {
|
|
104
109
|
pdfView.setEnableRTL(enableRTL);
|
|
@@ -139,11 +144,6 @@ public class PdfManager extends SimpleViewManager<PdfView> implements RNPDFPdfVi
|
|
|
139
144
|
pdfView.setEnablePaging(enablePaging);
|
|
140
145
|
}
|
|
141
146
|
|
|
142
|
-
@Override
|
|
143
|
-
public void setEnableRTL(PdfView view, boolean value) {
|
|
144
|
-
// NOOP on Android
|
|
145
|
-
}
|
|
146
|
-
|
|
147
147
|
@ReactProp(name = "fitPolicy")
|
|
148
148
|
public void setFitPolicy(PdfView pdfView, int fitPolicy) {
|
|
149
149
|
pdfView.setFitPolicy(fitPolicy);
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
package org.wonday.pdf;
|
|
10
10
|
|
|
11
11
|
import java.io.File;
|
|
12
|
+
import java.io.IOException;
|
|
12
13
|
|
|
13
14
|
import android.content.ContentResolver;
|
|
14
15
|
import android.content.Context;
|
|
15
16
|
import android.os.Handler;
|
|
16
17
|
import android.os.Looper;
|
|
18
|
+
import android.os.ParcelFileDescriptor;
|
|
17
19
|
import android.util.SizeF;
|
|
18
20
|
import android.view.View;
|
|
19
21
|
import android.view.ViewGroup;
|
|
@@ -22,7 +24,7 @@ import android.net.Uri;
|
|
|
22
24
|
import android.util.AttributeSet;
|
|
23
25
|
import android.view.MotionEvent;
|
|
24
26
|
import android.graphics.Canvas;
|
|
25
|
-
|
|
27
|
+
import android.graphics.pdf.PdfRenderer;
|
|
26
28
|
|
|
27
29
|
import com.facebook.react.uimanager.ThemedReactContext;
|
|
28
30
|
import com.facebook.react.uimanager.UIManagerHelper;
|