qpdfview team mailing list archive
-
qpdfview team
-
Mailing list archive
-
Message #00243
Re: Support other file formats
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Alexander,
Am 11.01.2013 13:21, schrieb ????????? ??????:
> Hello Adam,
>
> I've noticed that you are using 72.0 as default page DPI
> everywhere. This is true for PDF and PS, but Djvu pages may have
> 300 dpi or more. I suppose there have to be methods in Page class
> to get resolutions.
>
> Best regards, Alexander.
>
The idea is that 72.0 DPI is just the logical/reference resolution of
dimensions that are returned by Page::size, it is independent of the
actual resolution of any data in the document files. If the dimension
in a document/page use a different reference resolution, I would say
we transform them accordingly and transparently in the back-end
itself. (Links and stuff use a different scheme where their
coordinates are inside [0,1] x [0,1] describing position w.r.t. to
page dimension.)
The resolution at which the data should be rendered is always passed
to Page::render explicitly and depends on the physical resolution of
the monitor (or possibly printer) used. (So I think typically, if you
have a 300 DPI image in a DjVu file, you would scale it down to
monitor resolution times scale factor for rendering.)
Best regards, Adam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBAgAGBQJQ8Aa7AAoJEPSSjE3STU34K+UIAJmR5t1uWAfj1OFqKLjeyDxh
lNwnFAvU0xx4QANmaXRurxfaoJsOVWxysc881Je4KbgC4wLPc1Wv2w5RnIZIC8s9
tI8Rz/lYwIgpRp3yRxVi0jiYQNJPfJOIEv25Cr78Kmogrf6T9d8IvYnBjYFfKOw3
m1VnPyoEiDTibiT/8dVu9sgB+97bvymWGWw1FkaUKAyR8DJoWl384G+gTt7+HH4g
8iIvUOfuWv3LdRKv9Q8EFFpEBNE5156mYx1lzqLJq+KePWvAFdSSTXAM+0MMPO7X
ZxDQcEg9HFIZm2RLW7xHsPSV2PvkPD7sDgWSFtoTewIu4tJ2Iqp2N9ei74KXw7w=
=tv79
-----END PGP SIGNATURE-----
Follow ups
References
-
Support other file formats
From: Александр Волков, 2012-12-13
-
Re: Support other file formats
From: Adam Reichold, 2012-12-13
-
Re: Support other file formats
From: Adam Reichold, 2012-12-16
-
Re: Support other file formats
From: Александр Волков, 2012-12-17
-
Re: Support other file formats
From: Adam Reichold, 2012-12-17
-
Re: Support other file formats
From: Александр Волков, 2012-12-21
-
Re: Support other file formats
From: Adam Reichold, 2013-01-08
-
Re: Support other file formats
From: Adam Reichold, 2013-01-08
-
Re: Support other file formats
From: Adam Reichold, 2013-01-08
-
Re: Support other file formats
From: Adam Reichold, 2013-01-08
-
Re: Support other file formats
From: Александр Волков, 2013-01-10
-
Re: Support other file formats
From: Adam Reichold, 2013-01-10
-
Re: Support other file formats
From: Adam Reichold, 2013-01-10
-
Re: Support other file formats
From: Adam Reichold, 2013-01-11
-
Re: Support other file formats
From: Александр Волков, 2013-01-11
-
Re: Support other file formats
From: Adam Reichold, 2013-01-11
-
Re: Support other file formats
From: Александр Волков, 2013-01-11