-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well, it's the same bad design as the Poppler qt4 frontend uses.
But really, just consider it part of the description of "Page::size": "returns the size of the page at 72 DPI". (So the declaration of Page::size is the single of definition. Documentation is really bad though. :-\) It is completely equivalent to assuming some physical unit and returning the physical page size. I wouldn't call it magical, just convention on what is meant by size. Am 11.01.2013 14:38, schrieb ????????? ??????: > Well, I think it's bad design if the plugins should know some > magical constant from the core. At least it has to be defined in a > single place. > >> 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) iQEcBAEBAgAGBQJQ8Bk2AAoJEPSSjE3STU34NnUH/iyU50M6WDjnpJBf9MLdlnng PqQ8k4TC6i9NfKprYmWAqRdX6GrscCiwBJBNWyNkWAJE8/iRHLTQC6LZx6Jjs46T A82T1rlxjAVT5bTy9J6QruLC1coIfTf1oCDYbAZ6z7uX071WIxQlwEqalxWQ3wXO q1ANqNfAkaWoB2bkapiVh8Zi0RSbC+BU6hJ+XUzude1Gz7a4QXSRxILJVu+4TKWz 6yqEAP2D+YTvsp07Upgfzd6r55Xt5bmKVufSVt7+B7/I7BRsr6+TJFBXmfpH7Zb0 w2aP6WT/IrhZdXLbjMIw5QJtLjpxp0KQL7AAqE4qjOWzymh5tFNxfSwSdIpxfyY= =ao+l -----END PGP SIGNATURE----- -- Mailing list: https://launchpad.net/~qpdfview Post to : [email protected] Unsubscribe : https://launchpad.net/~qpdfview More help : https://help.launchpad.net/ListHelp

