-
Notifications
You must be signed in to change notification settings - Fork 37
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
Margin/empty page when generating pdf #28
Comments
If there is no quick fix, is there a "logic" what dimensions (and margin) there will be, when generating a pdf. i.e. 1.5 times viewport or similar. This would make it easier to cut the image afterwards? |
I'm not sure offhand exactly what the problem is. It might have something to do with this: |
When I open the .pdf file in Chrome and hit Ctrl-P, it also wants to print two pages, even though it uses a completely different rendering engine from PhantomJS. I wonder if there are some hidden elements that are making plotly graphs want a second page when printed. If so, it may be fixable with |
Sorry, I won't be much help here, but @timelyportfolio might know more, or could suggest a way to take advantage of the native plotlyjs snapshot support |
hi, I just came accross this issue again. Unfortunately this does not seem to be a plotly issue. It seems to happen with pdf-outputs in general. The following mre shows
If this could be fixed that'd be great. |
Bump. Thanks! |
I also got this problem in my work. Can it be resolved? Thank You. |
Use the new |
I am also having this problem. I have tried to specify
and either I have chosen these numbers to produce a PDF with A4 pages at 96dpi. Is there some way to force webshot to not create PDF pages larger than a certain size? |
When using webshot to generate a pdf from a plotly (using latest CRAN 3.6.0) diagram I get a margin right and at the bottom and a second empty page. I don't get the margin nor the empty page when creating a png. A pdf is preferred since it's vectorised. This has direct implications when using knitr reports. The margin makes it difficult to size the diagram within the report. Png is no alternative here because of worse quality.
I wasn't able to suppress the margin with current dev. If there are possibilities, I'd glad to know. If there's none it would help a lot if this could be implemented.
The text was updated successfully, but these errors were encountered: