2011-03-07 78 views
0

您能幫我解決這個問題嗎?如何使用perl將頁碼添加到現有PDF中

我想使用perl將頁碼添加到PDF。我嘗試過使用PDF :: Reuse模塊,但是這樣做效果不佳。請檢查並做要緊......

+6

做必要的嗎? – Spaceghost 2011-03-07 18:54:49

+0

@Spaceghost:這是新的舞蹈熱潮。做需要的事情! – CanSpice 2011-03-07 18:59:44

回答

1

我找到了一個不錯的ARTICAL這裏: http://www.perl.com/pub/2007/09/20/pdf-processing-with-perl.html

和這裏是有關exapmle:

# file: examples/sample-numbers.pl 
    use PDF::Reuse; 
    use strict; 

    my $n = 1; 

    prFile('examples/sample-numbers.pdf'); 

    while (1) { 
    prText(550, 40, $n++); 
    last unless prSinglePage('sample-letters.pdf'); 
    } 

    prEnd(); 

如果這是你所採取的方式它不起作用,添加你的代碼可能會有所幫助。

希望我幫了忙。

利奧爾

0

模塊PDF::API2::Simple,您還可以編輯PDF文件。您可以選擇所需的字體,並通過反覆試驗找出結果頁面上的位置。

相關問題