@tecnavia/react-native-pdf (5.2.0)
Published 2024-12-20 14:37:46 +00:00 by naquilini
Installation
@tecnavia:registry=
npm install @tecnavia/react-native-pdf@5.2.0
"@tecnavia/react-native-pdf": "5.2.0"
About this package
React Native Pdf
this library provides all views to render high quality page components
Views
render a single pdf page with specific quality based on scale factor;
- android pdf render is based on google pdfium
- ios pdf render uses builtin solution
Pdf box
extract a specific box from pdf by coordinates
Hr box
this component has different behavior on both platform
- ios simply render a box
- android has more complex behavior, check if hr file is available inside a zipgraph, or if file exists otherwise download the image and render it
Graph box
this component extract a box from graph.jpg by coordinates
Image
render png component
Throubleshooting
- Premultiplied alpha on pdf render, see Document
Dependencies
Development Dependencies
ID | Version |
---|---|
@babel/core | ^7.12.9 |
@babel/runtime | ^7.12.5 |
@react-native-community/eslint-config | ^2.0.0 |
@tecnavia/react-native-utils | git+https://ussvc01.newsmemory.com:3000/tecnavia/react-native-tecnavia-utils.git#1.4.0 |
babel-jest | ^26.6.3 |
babel-plugin-module-resolver | ^5.0.0 |
deprecated-react-native-prop-types | ^5.0.0 |
eslint | 7.14.0 |
metro-react-native-babel-preset | ^0.66.2 |
prop-types | ^15.5.10 |
react | 17.0.2 |
react-native | 0.67.5 |
react-native-builder-bob | ^0.20.0 |
Peer Dependencies
ID | Version |
---|---|
@tecnavia/react-native-utils | * |
deprecated-react-native-prop-types | * |
prop-types | * |
react | * |
react-native | * |
Keywords
react-component
react-native
android
ios
pdf
view
viewer