編譯速度與輸出:\includegraphics 與 \includepdf - 有什麼不同?

編譯速度與輸出:\includegraphics 與 \includepdf - 有什麼不同?

我製作了一個 .tex 文件,並在兩種情況下透過 pdfLatex 編譯它:

1.(1200頁)

\includegraphics*[scale=1]{example.pdf} 

added some text here and there

\newpage

(對 example2.pdf、example3.pdf、example4.pdf 等重複此操作)

2.(1200頁)

\includepdf[scale=1]{example.pdf}

added some text here and there

\newpage

(對 example2.pdf、example3.pdf、example4.pdf 等重複此操作)

在第一個場景中,編譯大約需要 5 秒(輸出約 650 kb)。在第二種情況下,花費了大約 60 秒(輸出約 373 kb)。 (-> 較小的尺寸需要更多的時間)

我的問題是:為什麼會有差異?

我的目標是以盡可能最好的品質列印 1200 頁文件。其中一種方法是否會受到品質影響(例如清晰度、色彩、整體、細節等)?

答案1

includegraphics將在文字中放置一個空格,並將向量化 PDF 圖像疊加到該空格上。會將includepdfPDF 中的向量放入文件中,這意味著要處理更大的資料結構。

但就品質而言,它們應該是相同的。

相關內容