Skip to content

slack q and a 2019 12 11

akabeko edited this page Dec 15, 2019 · 1 revision

2019-12-11

Time Icon Name Message
04:51 youchan savepdf 出力されるPDFのサイズ(縦横比)がおかしいのですが、ブラウザの問題ですかねー?
04:51 Kiara Translation 🇬🇧: savepdf The output PDF size (aspect ratio) is strange. Is it a browser problem?
04:52 youchan a4指定してもこうなる
https://vivliostyle.slack.com/files/UJDF99V2S/FRJDT5X7S/output.pdf
04:52 Kiara Translation 🇬🇧: Even if you specify a4
04:53 U yarn testで出力されるoutput.pdfの縦横比をチェックしてみてください。そちらでもおかしかったら環境固有かもしれないです。
04:53 Kiara Translation 🇬🇧: Check the aspect ratio of output.pdf output by yarn test. If it is funny there, it may be environment specific.
04:54 shinyu この問題ではないですか?
https://github.com/vivliostyle/vivliostyle-savepdf/issues/14
When @page { size } is not specified (or auto) in CSS, the output PDF pages become landscape regardless the --size option. e.g.,

savepdf --size A4 sample.html
savepdf --size 210mm,297mm sample.html
savepdf --size 297mm,210mm sample.html


The results are same for the above three cases: the output.pdf page size is width: 297mm, height: 210mm. And when --size option is not specified, the output.pdf page size is width: 11in, height: 8.5in. It seems to be always landscape orientation (width > height).
04:54 Kiara Translation 🇬🇧: Isn't this a problem?
https://github.com/vivliostyle/vivliostyle-savepdf/issues/14
Clone this wiki locally