简体   繁体   English

在 latex #2 中插入 pdf 文件

[英]Inserting a pdf file in latex #2

Referring to a previous question Inserting a pdf file in latex I'd like to ask how to insert a PDF page into a latex document by filling exactly one page.参考之前的问题Inserting a pdf file in latex我想问一下如何通过恰好填写一页将PDF页面插入到latex文档中。

If I include a page with design elements that extent to zero margin off the page edges, the solution provided in the link will result in the following, adding white margins of different sizes to the included page:如果我包含一个页面,其设计元素的范围为页面边缘的边距为零,则链接中提供的解决方案将导致以下结果,即向包含的页面添加不同大小的白边距: 在此处输入图像描述 how do do this propably?如何做到这一点? i did workaround-solve it by我做了解决方法 - 解决它

\includepdf[noautoscale = true,scale=1.03 ]{<file>}

but this dos not precisely match the old page edges with the new ones.但这并不能使旧页面边缘与新页面边缘精确匹配。 is there a clean version?有没有干净的版本

Solutions that did not bring the desired results: https://tex.stackexchange.com/questions/105589/insert-pdf-file-in-latex-document没有带来预期结果的解决方案: https ://tex.stackexchange.com/questions/105589/insert-pdf-file-in-latex-document

Thanks!谢谢!

To adjust the width and height for your pdf pages.调整 pdf 页面的宽度和高度。 First you should use noautoscale to be able to use width and height.首先,您应该使用noautoscale才能使用宽度和高度。

Remark: don't use fitpaper=true or trim=Left Bottom Right Top because they are for geometry page not to adjust your pdf pages.备注:不要使用fitpaper=truetrim=Left Bottom Right Top因为它们用于几何页面而不是调整您的 pdf 页面。

\documentclass[]{book}
\usepackage[]{pdfpages}
 
\begin{document}
\includepdf[pages={1},noautoscale,width=5cm,height=10cm]{your.pdf}
\end{document}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM