wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 549 forks source link

Digital signature is not showing on the pdf #862

Open Fares-sghaier opened 1 month ago

Fares-sghaier commented 1 month ago

I am experiencing an issue where PDFs that contain a timestamp signature are rendered correctly on iOS, but the signature is not visible when the same PDF is rendered on Android. The problem persists across different Android devices and OS versions.

Environment Library Version: [Specify the version of react-native-pdf you are using] React Native Version: [Specify the version of React Native you are using] Platforms: Android Devices/OS Versions: [List some of the Android devices/versions you have tested this on] Expected Behavior The timestamp signature within the PDF should be rendered and visible on Android devices, just as it is on iOS devices.

Observed Behavior On iOS: The PDF, including the timestamp signature, is rendered correctly. On Android: The PDF renders, but the timestamp signature is not visible.

Code: <Pdf trustAllCerts={false} scale={1.1} source={PdfResource} enableAntialiasing={true} style={{ width: Dimensions.get('window').width / 1.1, height: !imageContract ? Dimensions.get('window').height / 1.63 : imageContract.includes("https://storage.googleapis.com") ? Dimensions.get('window').height / 1.63 : Dimensions.get('window').height / 2.3, paddingTop: moderateScale(3), backgroundColor: "#fff" }} onLoadComplete={(numberOfPages, filePath) => { console.log(number of pages: ${numberOfPages}); }} onError={(error) => { console.log('PDF Rendering Error: ', error); }} />

hfarhanahmed commented 2 weeks ago

I am facing the same issue in Android. @Fares-sghaier have you found any solution to it?

Fares-sghaier commented 2 weeks ago

@hfarhanahmed , nope i didnt found a solution and no one helps me in it!

hfarhanahmed commented 2 weeks ago

@Fares-sghaier Which digital signature are you using?