Looking to center the PDF in the PDF viewer #1468
-
Wondering if there is an attribute for the PDF viewer to center the pages in the viewer? Right now they are left-aligned. Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
stephanrauh
Jul 28, 2022
Replies: 1 comment 1 reply
-
They're only left-aligned in single-page mode. This is a bug, but I'm not sure I want to fix it because it'd break compatibility. Maybe you're right, I should add an attribute. In the meantime, you can use a global CSS rule in your ngx-extended-pdf-viewer .pdfViewer.singlePageView .page {
margin-right: auto;
margin-left: auto; Maybe you'll have to add |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wjmack
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They're only left-aligned in single-page mode. This is a bug, but I'm not sure I want to fix it because it'd break compatibility. Maybe you're right, I should add an attribute. In the meantime, you can use a global CSS rule in your
styles.css
to fix the bug:Maybe you'll have to add
!important
, but I don't think so.