ArthurHub / ArthurHub/HTML-Renderer
PdfGenerator scales by 133% (or 1/3)
- 主要語言
- C#
- 星號
- 1.4k
- 分支
- 550
- 平均合併
- 14 天 9 小時
- 30 天內合併 PR
- 1
描述
I'm having issues with getting a page designed to fit on 8.5x11 Letter paper to size/position properly. So I just do a simple html with a div with a set height and width as a sanity check. First I did "width: 1in; height: 2in;" and the resulting div on the PDF was 1.33333 inches x 2.66666 inches. So I tried points of 72pt x 144pt, and the same thing. If I do 54pt x 108pt I get a box that is 1inx2in. So I have to specify sized that are 3/4 the size I really want in order to get the actual on page size I'm looking for apparently.
Is there some scaling going on that you can control? Do I need to do some reset on the body? What is the user.css that it uses. I wasn't able to find these things in the source code.
Here is the simple html I'm testing:
`
`Anyone have any thoughts on this?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
issue 中沒有指定原始檔案或測試。先重現提供的 HTML 並測量產生的 PDF 尺寸,接著追蹤 PDF 產生路徑,以查明所回報的 133% 縮放問題。當 CSS 的英吋和點尺寸能以其指定的實體尺寸進行算繪,而不需要使用 3/4 大小的值時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100