列印的 pdf 文件中的尺寸不正確

列印的 pdf 文件中的尺寸不正確

我的設定:TL2014,與 Debian 8 一起打包。

我正在努力解決一個嚴重的問題,當我試圖在列印文件中獲得正確的頁邊距時,這個問題開始困擾我。閱讀以下主題後

http://web.archive.org/web/20081218052428/http://www.codecomments.com/Tex/message784423.html
http://www.ntg.nl/pipermail/ntg-pdftex/2004-April/000485.html
http://www.ntg.nl/pipermail/ntg-pdftex/2004-April/000487.html
http://www.tug.org/pipermail/tex-live/2006-January/009735.html
http://tug.org/pipermail/macostex-archives/2006-May/022359.html
https://groups.google.com/forum/#!topic/comp.text.tex/xJQ2t2_OfSs

經過大量實驗,我開始意識到這不是我對如何設定邊距的誤解,而是一個更普遍的錯誤尺寸問題。因此,我將問題歸結為這個簡單的 test.tex:

\nopagenumbers
\hrule width 100mm
\bye
$ sudo paperconfig -p a4
$ tex test.tex
$ dvips test.dvi
$ dvipdfmx test.dvi

現在列印test.pstest.pdf
列印test.ps給出了 100mm 的規則。我嘗試過,在所有 3 台印表機上
列印的規則都是 91.5 毫米。test.pdf

注意:我在使用 pdftex 準備的列印文件上也得到了相同的 91.5mm。

然後在檢視器中開啟test.pdf(我使用了acroread),調整縮放以匹配實體紙張尺寸,然後將其列印test.ps在顯示器螢幕上 - 它們完美重疊,而列印的情況並非如此test.pdf

讓我們test2.pdf使用一些選項來產生(值是經驗值):

$ dvipdfmx -m 1.09 -x 0.72in -y 0.55in -o test2.pdf test.dvi

印刷test2.pdf給出100mm的規則。
列印的內容與顯示器螢幕上test2.pdf顯示的內容完全重疊,但顯示的內容與顯示的內容不同test.pdftest2.pdftest.pdf

編輯: 為什麼 pdf 文件列印時尺寸不正確?

相關內容