Skip to content

\magscale and PDF paper size #137

@mattiasmarka

Description

@mattiasmarka

Consider the following example:

\fontfam[LMfonts]
\margins/ b5 (,,,)mm
\magscale[1193]\margins/ a4 (,,,)mm

\input knuth

\bye

If I comment out the first or second line with the \margins command, the output does not change visually. This is to expected as the dimensions of a4 paper are roughly 1.193 times that of b5 paper.

Now, what is curious is that, the example above produces a PDF for which the page dimensions listed in the metadata are those of b5 paper. For the example above, shouldn't the paper dimensions of the PDF be those of a4 paper?

This behavior is not specific to one PDF reader. I tested Gnome Document Viewer, Firefox and Okular.

Also, it does not seem to make a difference if one of the lines with the \margins command is commented out.

As I said the output is visually the same in any case. That being said, I haven't tried printing the PDF produced by the example above to see if the paper size listed in the metadata is actually correct.

Perhaps I just don't understand what \magscale is supposed to do. What do you think?

I'm on version 1.09.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions