ansu5555 / pdf-viewer-reactjs

A simple PDF viewer for React js
https://ansu5555.github.io/pdf-viewer-reactjs/
MIT License
139 stars 64 forks source link

[BUG] PDF does not align to the center #68

Closed tofiqquadri closed 3 years ago

tofiqquadri commented 3 years ago

Describe the bug PDF content doesn't align to the centre.

How to Reproduce Steps to reproduce the behaviour:

  1. Load the PDF using:
<PDFViewer document={{
            url: 'https://arxiv.org/pdf/quant-ph/0410100.pdf',
}} />
  1. The PDF loads with left alignment

Expected behaviour The PDF should align with the centre by default. If not there should be an option to align the pdf content.

Screenshots image

PDF File https://arxiv.org/pdf/quant-ph/0410100.pdf

Details (please complete the following information):

ansu5555 commented 3 years ago

It does... image

Use css & canvasCss props to customize...