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

Preview PDF after creating #286

Open
Shivani12345 opened this issue Dec 14, 2022 · 4 comments
Open

Preview PDF after creating #286

Shivani12345 opened this issue Dec 14, 2022 · 4 comments
Labels

Comments

@Shivani12345
Copy link

can we preview PDF with this library with file path?

@tarekhassan410
Copy link

I have the same question

@BraveEvidence
Copy link

This will help https://www.youtube.com/watch?v=4CBUXv8d0I0

@zoobibackups
Copy link

cannot find the file in iOS

@timothytripp
Copy link

You can use something like this:

import FileViewer from 'react-native-file-viewer';

let file = await RNHTMLtoPDF.convert({
    html: html,
    fileName: 'My PDF File',
    directory: 'Documents',
  });

if(file?.filePath) {
  FileViewer.open(filePath);

@stale
Copy link

stale bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants