-
Notifications
You must be signed in to change notification settings - Fork 1
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
Orientation: Landscape, Rendering behaviour #24
Comments
hmm, could you please try to implement that layout with PageOverlay ? |
That would work. But also means that only the layout is used for the whole report. Would be nice to be able to have different PageOverlays for different pages. |
yes, but the overlay will apply to the section's page, you could have multiple sections to limit the PageOverlay. I'll create a feature request for a page-specific PageOverlay component |
The pageMargin.None forces puppeteer to generator a blank page at the end of the pdf. Setting the margin to pageMargin.Narrow, only the pages with some content get generated. The problem might be the margin-bottom of the jikji page and/or jikji section |
Ignore my comment above. If the variable 'orientation' within the |
I think it is related to page size, could you use a custom page size? something like
|
Setting the page size to custom values, doesn't affect anything. However, if the orientation gets set to "portrait" no blank page gets rendered. Also, when using "landscape" as section orientation, the always gets render on a new page expect a margin-bottom of 20px is set. |
can you decrease the height and width by 1 mm in each try and test? I believe the issue is happening with different page sizes in chromium with standard page sizes. |
I tried to reduce the dimension by 0.1mm from height: '296.8mm', width: '210mm' to height: '296.0mm', width: '209.0mm' with no effect. Then I tried to reduce the dimension by 1mm from '296.8mm', width: '210mm' to '285.8mm', width: '200.0mm' with no effect. |
ok, thank you. so it should be a bug in the lib layout system, I'll take a look |
Could you please test with version |
@PejmanNik your recent commit or ver 0.4.1 has caused few issues. On website it looks good but when pdf is generated it creates space in bottom and affects the footer as well... Below 2 images in bottom looks good in website. Below 2 images in bottom from PDF file. PDF File with issues Below is the github repo link which can be used for testing purpose.
Sample code setup is done in codesandbox... |
@sharathm89 he tried to reduce the width & height by -2px:
In order to fix your table, you could translate your footer component by 2px |
@PejmanNik The bug was fixed with version 0.4.1. |
@sharathm89 it seems i overcorrected the page dimensions, will try to find something in the middle |
Sure will be waiting... |
Any update on the issue @PejmanNik |
I'm working on it but why do you need to use the version? Just downgrade to the previous version |
ok just taught of keeping the latest version... But yes will downgrade for now |
I want to achieve this kind of effect:
However, when generating the output, the right side of the site gets pushed within the correct format, I guess:
I don't think, that this might be a bug. But might it be possible to render objects that reach above the correct format on all sides of the pdf?
The text was updated successfully, but these errors were encountered: