我在腳本中使用gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dFirstPage=$2 -dLastPage=$3 -sOUTPUTFILE=$4 $1
從Ghostscript 9.07的pdf文件中提取頁面。我獲得了很多的警告(如在下面的輸出的第一行中)和一個錯誤:Ghostscript 9.07:錯誤:pdfmark的定義...超出最後一頁的點
GPL Ghostscript 9.07: **** Warning: Outline has invalid link that was discarded.
GPL Ghostscript 9.07: ERROR: A pdfmark destination page 4 points beyond the last page 3.
生成的PDF(由所提取的頁面)是好的,但是。我想知道爲什麼我會得到這個錯誤和警告,儘管我選擇-q
爲quiet
。我做了一些搜索,發現,例如,this,但該pdf文件已生成hypertexnames=false
,所以建議的解決方案在我的情況下(Ubuntu 13.04)不起作用。
我想補充:通過pdflatex從生成.pdf文件:
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{tikz}
\usepackage{hyperref}
\begin{document}
\tikz[remember picture, overlay]\node at (current page.south)[rectangle, fill, color=gray]{};
\clearpage
\section{foo}
\clearpage
\tableofcontents
\clearpage
\section{bar}
foo bar
\end{document}
Duplicate發佈:[Ghostscript 9.07:錯誤:pdfmark目的地...超出最後一頁的點數](http://tex.stackexchange.com/q/111057/5764) – Werner 2013-04-27 16:40:50
嗯,我註冊了關閉的問題'因爲我意識到這與生成pdf文件的方式有關,因此與LaTeX/tex.stackexchange相關聯。 – 2013-04-27 16:48:16
爲避免各個社區的重複工作和可能的雙重工作,您應該將其標記爲遷移或刪除它在此之前在其他地方發佈。 – Werner 2013-04-27 16:56:00