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

Suggest me, How to show PDF offline on UWP #2067

Closed
nikjohns opened this issue Feb 15, 2019 · 4 comments
Closed

Suggest me, How to show PDF offline on UWP #2067

nikjohns opened this issue Feb 15, 2019 · 4 comments
Assignees
Labels

Comments

@nikjohns
Copy link

I am developing an application of showing PDF offline in app (windows 10) using react-native-windows and get stuck,
so can you suggest me any lib for showing PDF offline in the application?

React-native: 0.57
"react-native-doc-viewer": "^2.7.8",
"react-native-fs": "^2.13.3",
"react-native-windows": "^0.57.0-rc.5"

Win10 SDK(UWP): win10 SDK-17134,
min-target SDK-15063.

Lib i have tried:
react-native-doc-viewer: facing this issue

@juhasuni
Copy link

There are commercial options, such as PSPDFKit and Foxit PDF SDK that officially support UWP. Both support React Native also.

For simple use cases, it is possible to use the classes in Windows.Data.Pdf namespace and specifically PDFPage to render the PDF as an image:
https://docs.microsoft.com/en-us/uwp/api/windows.data.pdf.pdfpage.rendertostreamasync

Another option is to load PDF.js into WebView and use it as a PDF viewer. The rendering performance of the web-only viewers is not very good.

@nikjohns
Copy link
Author

@juhasuni Thank you for your suggestions, i have convert PDF into images and load images in view solved my problem temporary.

@SelvaraniAlagumuthu
Copy link

@nikjohns, I am also trying to show pdf file in react-native-windows. Could you please tell how to do this ?.. Because i am very new in react-native and react-native-windows.

@chrisglein chrisglein added the .NET Archive Issue opened against deprecated .NET implementation, will be closed (label drives bot activity) label Mar 18, 2020
@ghost ghost removed the .NET Archive Issue opened against deprecated .NET implementation, will be closed (label drives bot activity) label Mar 24, 2020
@ghost
Copy link

ghost commented Mar 24, 2020

We are not investing in new features or lower priority bug fixes on the C# implementation of React Native for Windows (previously known as "vCurrent"). All investment moving forward is in the C++ infrastructure (previously known as "vNext") and that is the only option as of 0.61 (and was the default as of 0.60). If this issue is still relevant on the modern implementation please open a new issue. If this issue is of significant severity for a vCurrent app and vNext is not an option, re-open with justification.

@ghost ghost closed this as completed Mar 24, 2020
@ghost ghost added the Invalid Triage https://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot) label Apr 9, 2020
@jonthysell jonthysell removed the Invalid Triage https://github.com/microsoft/react-native-windows/wiki/Triage-Process (label applied by bot) label Aug 28, 2024
This issue was closed.
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

6 participants