Open cjlotz opened 4 months ago
@cjlotz What is the size of the generated PDF file page?
On my Windows environment.
Generated page size is displayed as 373 x 288 mm
.
And it's not match A4 landscape
(297 x210mm).
I've confirmed same issues when using Playwright 1.4.0
and without PreferCSSPageSize
setting.
So I suspect environment-specific problems.
@filzrev I had an issue with the version of the docfx tool that was still 2.76.0. Once updated, the page scaling issue has been resolved, but the footer is still not positioned at the right side of the page being printed in A4 landscape
orientation. I can confirm that my page size is correct (i.e. 297x210mm) for A4
Thanks for your confirmation.
Page size problem is not related reported issues. I've confirmed It's occurred on Edge PDF Viewer and not occurred on Chrome/Acrobat Reader.
the footer is still not positioned at the right side of the page being printed in A4 landscape orientation.
It seems PDF header/footer rendering is not using PreferCSSPageSize
settings currently.
So default letter size setting is used for header/footer.
https://github.com/dotnet/docfx/blob/main/src/Docfx.App/PdfBuilder.cs#L203-L208
If manually set following properties. PDF footer is rendered correctly.
Format = "A4",
Landscape = true,
It would be necessary to add an implementation of either of the following logics.
Wrong PDF footer location problem should be fixed by PR(#10100
)
Another reported issue (Table layout is corrupted on some condition) seems to be content-dependent problems.
Is is able to provide following information? (if it can be reproduceable on docfx v2.77.0)
@filzrev just confirming from my side that the table layout issues I reported initially in the bug report was related to the version of my docfx still being 2.76.0. Once I fixed that to 2.77.0 the table layout scaling issues were fixed with only the footer issue - which should now be resolved with PR #10100, remaining.
Describe the bug Using the new #9850 feature to specify a custom layout, the footer containing page numbers is not positioned correctly. The page content is also not scaled correctly to fit onto the page
To Reproduce Steps to reproduce the behavior:
globalMetadata
Generated output
Notice that the page content is not scaled to fix onto the page (nr 2) and that the footer is not positioned correctly (nr 1) as illustrated above
Context (please complete the following information):