Skip to content

[Feature Request] Is it possible to open the specific page of PDF #59

@haozhutw

Description

@haozhutw
  • How did you link to the library (autolinking, manual, rn link, cocoapods)?
    autolinking

  • What version of React Native?
    0.80

  • What version of the library?
    Haven't used this library.

  • iOS/Android version?
    iOS 15.0, Android 7.0

  • New or Old architecture?
    Old, try to use New Architecture but was blocked by some dependencies.

  • Did the problem happen after updating React Native?
    N/A

  • Are you using the library for the first time?
    Yes

  • It's a bug? Provide a link to a minimal reproduction case.
    No, it's a feature request

  • Context
    I used to integrate the react-native-pdf, but its dependencies are conflict with some other libraries in my react-native app. I found react-native-pdf-renderer, which is a good solution, but this library doesn't support show specific page when click a button to switch the pages. I expect to add a property page like blow

<PdfRendererView
        page={this.state.page}
        style={{backgroundColor: 'red'}}
        source="file:///path/to/local/file.pdf"
        distanceBetweenPages={16}
        maxZoom={5}
        onPageChange={(current, total) => {
          console.log(current, total);
        }}
      />

I see the android side use PdfRenderer which has method openPage, and iOS PDFKit also supports switch page.

So is it possible to add a property like page then we can pass a page number to it to navigate to a specific page? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions