@tecnavia/react-native-pdf (5.2.0)

Published 2024-08-06 15:13:48 +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

Pdf

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 1.3.0
babel-jest ^26.6.3
babel-plugin-module-resolver ^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 *
prop-types *
react *
react-native *

Keywords

react-component react-native android ios pdf view viewer
Details
npm
2024-08-06 15:13:48 +00:00
4
Tecnavia
latest
43 MiB
Assets (1)
Versions (1) View all
5.2.0 2024-08-06