Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting width/height degrades the quality of the PDF on 1080p screens #152

Open
samiashi opened this issue Sep 24, 2024 · 2 comments
Open

Comments

@samiashi
Copy link

samiashi commented Sep 24, 2024

When using width/height or fit-parent on 1920/1080 screens, the quality of the PDF is degraded and becomes blurry.

Using the playground, you can reproduce using the following:

<script setup lang="ts">
import pdf14 from '@samples/issue126.pdf';
import { VuePDF, usePDF } from '@tato30/vue-pdf';

const { pdf } = usePDF(pdf14)
</script>

<template>
  <div>
    <VuePDF :pdf="pdf" :width="450" :height="250" />
  </div>
</template>

<!-- OR  -->

<template>
  <div style="width: 450px; height: 250px;">
    <VuePDF :pdf="pdf" fit-parent />
  </div>
</template>

Screenshot 2024-09-24 at 4 02 21 PM

Additional context

  • vue-pdf: 1.11.1
  • vue: 3.4.38
@TaTo30
Copy link
Owner

TaTo30 commented Oct 18, 2024

I have been trying to reproduce this issue on different devices but I am getting a nice readable page in all cases.

What is the result if you run this command on the browser's console where you are trying?
imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@samiashi @TaTo30 and others