Skip to content

Commit

Permalink
Release 2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
PSPDFKit committed Feb 3, 2023
1 parent 7e91b82 commit c1d809b
Show file tree
Hide file tree
Showing 114 changed files with 3,980 additions and 4,208 deletions.
3 changes: 2 additions & 1 deletion ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ OTHER DEALINGS IN THE FONT SOFTWARE.


--------------------------------------------------------------------------------
## clipper (http://www.angusj.com/delphi/clipper.php)
## clipper2 (http://www.angusj.com/delphi/clipper.php)

Boost Software License - Version 1.0 - August 17th, 2003

Expand All @@ -488,6 +488,7 @@ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.


--------------------------------------------------------------------------------
## cppformat (https://github.com/cppformat/cppformat)

Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
## Newest Release

### 2.4.2 - 01 Feb 2023
- Fixes bug issue for deleting multiple annotations (#38518)
- Bump PSPDFKit for Android version to 8.5.0
- Bump PSPDFKit for iOS version to 12.0.3
- Bump minimum SDK version compileSdkVersion to API 33

## Previous Releases

### 2.4.1 - 22 Nov 2022
- Updates for PSPDFKit 12.0.1 for iOS.
- Fixes Catalog example toolbar menu items not rendering. (#37368)
- Fixes the Annotation Processing Catalog example. (#37534)

## Previous Releases

### 2.4.0 - 25 Oct 2022

- Adds PDF generation from HTML, images and template. (#36736)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
All items and source code Copyright © 2010-2022 PSPDFKit GmbH.
All items and source code Copyright © 2010-2023 PSPDFKit GmbH.

PSPDFKit is a commercial product and requires a license to be used.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,6 @@ For Troubleshooting common issues you might encounter when setting up PSPDFKit f
## License

This project can be used for evaluation or if you have a valid PSPDFKit license.
All items and source code Copyright © 2010-2022 PSPDFKit GmbH.
All items and source code Copyright © 2010-2023 PSPDFKit GmbH.

See [LICENSE](./LICENSE) for details.
2 changes: 1 addition & 1 deletion android/.classpath
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-14/"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
6 changes: 3 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand All @@ -15,7 +15,7 @@
* Contains gradle configuration constants
*/
ext {
PSPDFKIT_VERSION = '8.4.1'
PSPDFKIT_VERSION = '8.5.0'
}

buildscript {
Expand Down Expand Up @@ -46,7 +46,7 @@ android {
versionCode 1
versionName "1.0"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
~
~ PSPDFKit
~
~ Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
~ Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
~
~ THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
~ AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/pspdfkit/react/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
2 changes: 1 addition & 1 deletion android/src/main/java/com/pspdfkit/react/RNProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
19 changes: 16 additions & 3 deletions android/src/main/java/com/pspdfkit/react/ReactPdfViewManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down Expand Up @@ -60,10 +60,11 @@ public class ReactPdfViewManager extends ViewGroupManager<PdfView> {
public static final int COMMAND_ADD_ANNOTATIONS = 7;
public static final int COMMAND_GET_FORM_FIELD_VALUE = 8;
public static final int COMMAND_SET_FORM_FIELD_VALUE = 9;
public static final int COMMAND_REMOVE_ANNOTATION = 10;
public static final int COMMAND_GET_ALL_ANNOTATIONS = 11;
public static final int COMMAND_REMOVE_ANNOTATION = 10;
public static final int COMMAND_REMOVE_FRAGMENT = 12;
public static final int COMMAND_SET_TOOLBAR_MENU_ITEMS = 13;
public static final int COMMAND_REMOVE_ANNOTATIONS = 14;

private CompositeDisposable annotationDisposables = new CompositeDisposable();

Expand Down Expand Up @@ -106,6 +107,7 @@ public Map<String, Integer> getCommandsMap() {
commandMap.put("getFormFieldValue", COMMAND_GET_FORM_FIELD_VALUE);
commandMap.put("setFormFieldValue", COMMAND_SET_FORM_FIELD_VALUE);
commandMap.put("removeAnnotation", COMMAND_REMOVE_ANNOTATION);
commandMap.put("removeAnnotations", COMMAND_REMOVE_ANNOTATIONS);
commandMap.put("getAllAnnotations", COMMAND_GET_ALL_ANNOTATIONS);
commandMap.put("removeFragment", COMMAND_REMOVE_FRAGMENT);
commandMap.put("setToolbarMenuItems", COMMAND_SET_TOOLBAR_MENU_ITEMS);
Expand Down Expand Up @@ -249,6 +251,17 @@ public void accept(List<Annotation> annotations) {
annotationDisposables.add(root.removeAnnotation(requestId, args.getMap(1)));
}
break;
case COMMAND_REMOVE_ANNOTATIONS:
if(args != null && args.size() == 2) {
final int requestId = args.getInt(0);
final ReadableArray annotations = args.getArray(1);
final int length = annotations.size();
for (int i = 0; i < length; i++) {
ReadableMap annotation = annotations.getMap(i);
annotationDisposables.add(root.removeAnnotation(requestId, annotation));
}
}
break;
case COMMAND_GET_ALL_UNSAVED_ANNOTATIONS:
if (args != null) {
final int requestId = args.getInt(0);
Expand Down Expand Up @@ -294,7 +307,7 @@ public void accept(JSONObject jsonObject) {
}
break;
case COMMAND_REMOVE_FRAGMENT:
// Removing a fragment like this is not recommended, but it can be used as a workaround
// Removing a fragment like this is not recommended, but it can be used as a workaround
// to stop `react-native-screens` from crashing the App when the back button is pressed.
root.removeFragment(true);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2022-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand All @@ -21,6 +21,7 @@
import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;
import com.pspdfkit.annotations.Annotation;
import com.pspdfkit.annotations.AnnotationType;
import com.pspdfkit.react.helper.JsonUtilities;

import org.json.JSONException;
Expand All @@ -46,6 +47,9 @@ public PdfViewDataReturnedEvent(@IdRes int viewId, int requestId, @NonNull List<
try {
List<Map<String, Object>> annotationsSerialized = new ArrayList<>();
for (Annotation annotation : annotationsToSerialize) {
if (annotation.getType() == AnnotationType.POPUP) {
continue;
}
JSONObject instantJson = new JSONObject(annotation.toInstantJson());
annotationsSerialized.add(JsonUtilities.jsonObjectToMap(instantJson));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* PSPDFKit
*
* Copyright © 2021-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2021-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* PSPDFKit
*
* Copyright © 2017-2022 PSPDFKit GmbH. All rights reserved.
* Copyright © 2017-2023 PSPDFKit GmbH. All rights reserved.
*
* THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
* AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE PSPDFKIT LICENSE AGREEMENT.
Expand Down
Loading

0 comments on commit c1d809b

Please sign in to comment.