我正在尝试将绘图添加到word文档。我希望当页面大小设置为合法时,绘图最大限度地扩大可用区域。我可以设置fig.width和fig.height,但似乎绘图会自动调整大小,以适应具有正常边距的默认页面大小(信纸)。
下面是一个生成相同结果的示例.rmd文件:
---
title: "plot-resize"
output: word_document
---
Plot with the height set to 3" and the width to 7.5":
```{r, echo = FALSE, fig.height=3, fig.width=7.
目前,我正在使用dompdf生成PDF,但它不会呈现超过10页,每当我尝试超过10页时,它会返回空白页并给出以下错误。
致命错误:Allowed memory size of 33554432 bytes exhausted (tried to allocate 2358 bytes) in /home/my_file_path/dompdf/vendor/dompdf/dompdf/lib/Cpdf.php on line 4927
下面是使用dompdf生成pdf的PHP脚本
<?php
require '../dompdf/vendor/autoload.php'