[Bug] size property does not support all "Media Standarized Names"

12 views
Skip to first unread message

Andreas Jung

unread,
Nov 10, 2015, 3:03:14 AM11/10/15
to Vivliostyle Project
The 'size' property is supposed to support the "Media Standardized Names". However something like


size: a6

is not working. However

size: a4

is working.

Looks as if only a subset of "Media Standardized Names" is implemented.

Andreas

P.S. could you please document where to report bugs? Since you are on Github it would make sense to use
the Github issue tracker...using the mailing list for reporting bugs is not optimal.

Florian Rivoal

unread,
Nov 10, 2015, 4:33:30 AM11/10/15
to vivli...@googlegroups.com
Hi,

The size property supports the value specified in the "CSS Paged Media" standard:
http://www.w3.org/TR/css3-page/#page-size-prop

This means the following names:
- A5, Equivalent to the size of ISO A5 media: 148mm wide and 210 mm high
- A4, Equivalent to the size of ISO A4 media: 210 mm wide and 297 mm high
- A3, Equivalent to the size of ISO A3 media: 297mm wide and 420mm high
- B5, Equivalent to the size of ISO B5 media: 176mm wide by 250mm high
- B4, Equivalent to the size of ISO B4 media: 250mm wide by 353mm high
- letter, Equivalent to the size of North American letter media: 8.5 inches wide and 11 inches high
- legal, Equivalent to the size of North American legal: 8.5 inches wide by 14 inches high
- ledger, Equivalent to the size of North American ledger: 11 inches wide by 17 inches high

This list is rather short, but that's what the standard defines. Formats not in the list
can be specified explicitely using their size rather than their name:
@page {
size: 105mm 148mm; /* A6 */
}

I am curious, were you trying A6 just for testing reasons, or actually wanted to use this format?

As for reporting bugs, this is the place: https://github.com/vivliostyle/vivliostyle.js/issues

Best regards,
- Florian
> --
> You received this message because you are subscribed to the Google Groups "Vivliostyle Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vivliostyle...@googlegroups.com.
> To post to this group, send email to vivli...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/vivliostyle/74416da2-cb46-4fad-a797-be57872a46b0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

filtered

unread,
Nov 10, 2015, 4:48:12 AM11/10/15
to vivli...@googlegroups.com
They specs refer to  


-> 


Other converters like PDFreactor also support a broader variety of names as defined in DIN 476/ISO 216.

...oh well, minor issue :-)

Andreas

Reply all
Reply to author
Forward
0 new messages