2012-02-07 34 views
0

我想將pdf頁面複製4次,並生成一個包含4個小頁面的單頁(較大)頁面。有一個名爲AutoPagex的Acrobat插件,它可以重複頁面內容並生成其他頁面,但我需要這樣才能讓第2頁下面的內容翻轉(請參閱圖像)。有人能幫助我嗎?哪個應用程序可以這樣做?如何在一頁中重複PDF內容鏡像

這將是還不錯,如果我能合併兩個成一個網頁...

Mirrored content duplication

回答

1

多價

你可以做的伎倆

java -cp path....to/Multivalent.jar tool.pdf.Impose -dim 2x2 -paper 2widhtx2heightin -layout 1,1,1u,1u file.pdf 

single pdf page repeated and 2 times mirrored

解釋:

如果您Multivalent.jar的副本駐留在的/ mnt /家庭/那麼你的路徑將是java命令/mnt/home/Multivalent.jar

-Paper參數指示寬度高度的頁面包含4倍您的原始pdf頁面,所以,它的尺寸,需要是 計算加倍寬度和高度的原始頁面尺寸

在 =英寸[其他允許單元PT(點)或釐米(釐米)]

筆記:這個工作流程旨在被工作,如果你有一個單一源的PDF頁。 如果你有一個多頁源pdf,那麼做這個技巧的方式是不同的;請給我們在這種情況下的進一步細節

例如,

多頁源PDF格式,其需要重複每一頁4倍**(* 2次旋轉180度*)**一個相同的頁面,...利用這個腳本依賴pdfinfo多價。罐子

#!/bin/sh 
# a dingo's script to repeat one same page 4 times in another page (once rotated by 0 degrees, and twice, at bottom, rotated by 180 degrees) 
# usage (it asks for 3 arguments): 
# 
# nameofscript file.pdf number of pages Multivalent.jar path 
# 
#example: rotatepdfpage4times file.pdf 16 /mnt/home 
# 
pdfname=$1 
pages=$2 
multivalentpath=$3 
xfactor=x 
ptunit=pt 
u="u" 
rep="$(for ((a=1, b=1; a <= $pages; a++, b++)); do echo -n "$a $b $a$u $b$u "; done |xargs | tr ' ' ',')" 
origsizewidth="$(pdfinfo -box 1.pdf| grep MediaBox | cut -d : -f2 | awk '{print x $3 FS $4}' | tr ' ' 'x' | cut -d x -f1 | cut -d . -f1)" 
origsizeheight="$(pdfinfo -box 1.pdf| grep MediaBox | cut -d : -f2 | awk '{print x $3 FS $4}' | tr ' ' 'x' | cut -d x -f2 | cut -d . -f1)" 
doublewidth="`let MULTIPLICATION=$origsizewidth*2; echo $MULTIPLICATION`" 
doubleheight="`let MULTIPLICATION=$origsizeheight*2; echo $MULTIPLICATION`" 
echo $pdfname 
echo $pages 
echo $rep 
echo $doublewidth 
echo $doubleheight 
echo "$doublewidth$xfactor$doubleheight$ptunit" 
java -cp $multivalentpath/Multivalent.jar tool.pdf.Impose -dim 2x2 -paper "$doublewidth$xfactor"$doubleheight$ptunit -layout "$rep" "$pdfname" 
exit 0 

http://ifile.it/m7tr4g0(樣品源pdf文件 - A5大小 - 595x841 PT)

http://ifile.it/rscpoxi(施加4次-Paper 1190x1682pt,在一個頁面相同的源PDF)

+0

非常感謝! – buzoganylaszlo 2012-02-08 11:22:57