wonday / react-native-pdf

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

Digital signature is not showing on the pdf #862

Open Fares-sghaier opened 2 months ago

Fares-sghaier commented 2 months 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 1 month ago

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

Fares-sghaier commented 1 month ago

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

hfarhanahmed commented 1 month ago

@Fares-sghaier Which digital signature are you using?

rajivchaulagain commented 1 month ago

Same here in android there is no support for that digital signature so I created a custom field and attached to the pdf for android platform for signature

Fares-sghaier commented 1 day ago

@Fares-sghaier Which digital signature are you using?

timeStamp