Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/render_resultsからPDFを返す #198

Open
7 of 20 tasks
Cj-bc opened this issue Sep 11, 2018 · 3 comments
Open
7 of 20 tasks

/render_resultsからPDFを返す #198

Cj-bc opened this issue Sep 11, 2018 · 3 comments
Labels
enhancement New feature or request investigation required Further investigation is requested

Comments

@Cj-bc
Copy link
Member

Cj-bc commented Sep 11, 2018

Step 1: 目的

  • /render_resultsは、都合上HTMLで返す仕様になっています。
  • が、PDFで返せると何かと楽なので対応したいです。

Step 2: 概要

  • /render_results?type=pdf等でpdfで結果を返すようにする。

タスク:

@Cj-bc Cj-bc added enhancement New feature or request investigation required Further investigation is requested labels Sep 11, 2018
@Cj-bc
Copy link
Member Author

Cj-bc commented Sep 12, 2018

参考になりそうなURLs:
wkhtmltopdf on apline: https://gist.github.com/akihiromukae/288b163d538d45a197b3f1b54ef385e8
generate PDF from python: https://nsmr.tk/pythonpdf.html

@Cj-bc Cj-bc changed the title /render-resultsからPDFを返す /render_resultsからPDFを返す Sep 12, 2018
@shino16
Copy link
Member

shino16 commented Sep 14, 2018

A0サイズををCSSで表現するとき
仕様では841mmですが、それだとはみ出たので
825mmにします

@shino16 shino16 self-assigned this Sep 14, 2018
@shino16
Copy link
Member

shino16 commented Sep 14, 2018

おっと
フォントサイズ変えるとこっちのサイズ(「825mm」)も変わってしまうみたいです
まあ本来A0ぴったりに印刷とかCSSの出番では本来ないですし多少はしょうがないですかね

@shino16 shino16 removed their assignment Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigation required Further investigation is requested
Projects
None yet
Development

No branches or pull requests

2 participants