0

I am using react-pdf [version 4.1.0] in react based application to display the PDF documents as SVG by setting render mode to SVG.

<Document id="some-id" renderMode="svg" file="some-url" className="document-pdf">

Currently, the issue I am facing is that for some of the PDFs, the text is getting upside down. As we can see in the below attached image that the text is not clear or distorted.

enter image description here

On changing render mode from SVG to Canvas it's working fine but as per requirement I have to use SVG only.

I am using following versions of the below packages:

react: 16.12.0
react-dom: 16.12.0
react-pdf: 4.1.0
typescript: 3.7.2

Any suggestions or help will be appreciated.

Asif Iqbal
  • 502
  • 6
  • 24

0 Answers0