diegomura / diegomura/react-pdf

Request to add the ability to set PDF version 2.0

Open
#2,657 0 comments 0 reactions 0 assignees View on GitHub
new feature
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

**Is your feature request related to a problem? Please describe.**
Currently, the react-pdf library uses PDF version 1.3 as the default. However, as the technology evolves, PDF version 2.0 is becoming more common and offers a number of security benefits.

Now when I set 2.0 in pdfVersion prop, Typescript displays an error and I see the default value of 1.3 in the generated PDF

**Describe the solution you'd like**
Extend type with 2.0 version:
![SCR-20240226-kyew](https://github.com/diegomura/react-pdf/assets/7600593/5cb55d3c-6976-41d7-8e68-04cfb45ea918)

SCR-20240226-kyft

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.