Replies: 1 comment
-
I too am having the PDF render much longer than the original. Can't seem to find any docs that reference why this happens. EDIT: I figured out why this was happening, it was adding text and annotations layers underneath the original PDF. Because I'm not using any of the default CSS imports, these were displaying as big chunks of white underneath and cause a long scrollable area of nothingness. I just disabled both layers with the appropriate props on the page element, like The down side to this approach however is that you do lose the text and annotations layers which are almost definitely going to be needed. So the better option here is to import the CSS, which is what I've done instead, and again fixes the issue.
|
Beta Was this translation helpful? Give feedback.
-
Currently having two issues right now using this package. The first one being I can't seem to set a custom width and height that's ideal for my usecase.
I want the width and height to be akin to the
upload a new document
component. Similar to how google docs preview works.But based on the documentation, setting width and height will ignore the height property. In that case, how can I make the PDF wider?
Secondly, the PDF being displayed is longer than it should be.
As you can see, there's a horizontal line at the end of the first page then a long white page. How do I fix this?
Beta Was this translation helpful? Give feedback.
All reactions