Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital signature is not showing on the pdf #862

Open
Fares-sghaier opened this issue Aug 29, 2024 · 3 comments
Open

Digital signature is not showing on the pdf #862

Fares-sghaier opened this issue Aug 29, 2024 · 3 comments

Comments

@Fares-sghaier
Copy link

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
Copy link

hfarhanahmed commented Oct 2, 2024

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

@Fares-sghaier
Copy link
Author

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

@hfarhanahmed
Copy link

@Fares-sghaier Which digital signature are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants