0 票
374 次瀏覽

(Malachi James writes)

According to this page adding the line \def\PageBorder{mywatermark.pdf} should add a pdf to our PrintDraft file as a watermark. I have tried adding this line to ‘PrintDraft-mods.tex’ but when I do that PrintDraft fails after creating about 2 pages and the resulting pdf is corrupted. And yes, I do have a pdf in the directory which should be being used as a watermark.

舊文章 - 以原文顯示
Paratext 由 提出 | 374 次瀏覽

1 個回答

0 票

(Malachi James answers)

I’ll answer my own question for the benefit of others searching for the same issue:

You can indeed add a border to PrintDraft by adding

\def\PageBorder{mywatermark.pdf}

to PrintDraft-mods.tex. Furthermore, you should be able to manipulate your pdf using the same options that can be passed to \XeTeXpdffile

Along with the example here:

\def\PageBorder{mywatermark.pdf scaled 2000 rotated 45}

you should also be able to use xscaled, yscaled, width and height (untested).

The issue I had was caused by my pdf being version 1.5 while PrintDraft will only deal with pdfs up to version 1.4. I was able to adjust the options in my pdf print driver and create a usable pdf for my border.

If your border is a picture file you can also use it, but it takes slightly more work. You must find the ptx-cropmarks.tex file in your Paratext installation folder and edit the line

\global\setbox\b@rder=\hbox{\XeTeXpdffile \PageBorder \relax}%

to read

\global\setbox\b@rder=\hbox{\XeTeXpicfile \PageBorder \relax}%

Which picture formats you can use is determined by your operating system.

舊文章 - 以原文顯示
由 提出

相關問題

0 票
1 個回答 358 次瀏覽
PrintDraft uses xetex (which in turn uses ptx2pdf macros) to do the printing to pdf in Paratext. Presumably, PT ... be able to run nice looking drafts straight from PrintDraft.
mnjames 1.9k 提出 已提問 5月 7, 2015
0 票
3 個回答 585 次瀏覽
Now and then I've encountered an issue where I can't use Export to PDF for a particular project, where the ... not installed for all users will also effect users of PTXPrint.
[Expert]
sewhite
3.3k 提出
已提問 2月 27, 2020
0 票
1 個回答 242 次瀏覽
我使用 PTXprint 產生了一個 PDF 檔案 當我在桌面上用 Firefox 開啟它時,Firefox 會在瀏覽器介面(即分頁標題處)顯示該 PDF 檔案的標題 在我的情況下,它顯示的分頁標題是 "[Unknown] - ... 在瀏覽器或 PDF 閱讀器中開啟該 PDF 檔案時,就不會看到這個令人困惑且語言錯誤的標題
bit 496 提出 已提問 11月 17, 2025
0 票
3 個回答 671 次瀏覽
Making small changes to the text printed by Print Draft is easy but only if you or someone you know speaks ... replace it with an empty string (effectively deleting it).
匿名 提出 已提問 6月 3, 2015
+2 票
1 個回答 406 次瀏覽
有使用者在另一個論壇回報,他們在 Windows 10 上安裝的字型無法在 PrintDraft 中正常運作 Windows 10 最近已更改設定,允許非管理員使用者安裝字型 然而,這類由使用者安裝的字型存放位置與管理員 ... 在由 XeTeX 呼叫時找不到使用者安裝的字型,那麼如果 Paratext 呼叫 fontconfig,也可能會遇到相同的問題
Bobby 185 提出 已提問 5月 29, 2019
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For where two or three gather in my name, there am I with them.
Matthew 18:20
3,079 個問題
6,045 個回答
5,708 則評論
2,045 位使用者