From 4ccb68ec2ea8e95b644d92d35280bcb05123ed53 Mon Sep 17 00:00:00 2001 From: canciller Date: Thu, 3 Aug 2023 17:28:07 -0600 Subject: [PATCH] fix(android): createPdf returning wrong pdf path --- android/src/main/java/com/imagespdf/ImagesPdfModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/imagespdf/ImagesPdfModule.java b/android/src/main/java/com/imagespdf/ImagesPdfModule.java index 33c84db..7a339cf 100644 --- a/android/src/main/java/com/imagespdf/ImagesPdfModule.java +++ b/android/src/main/java/com/imagespdf/ImagesPdfModule.java @@ -117,7 +117,7 @@ public void createPdf(ReadableMap optionsMap, Promise promise) { pdfDocument.close(); - promise.resolve(outputUri.getPath()); + promise.resolve(outputUri.toString()); } catch (Exception e) { Log.e("ImagesPdfModule", e.getLocalizedMessage(), e);