开发者

PDF:reuse setting page size

I am using the P开发者_如何学CDF::Reuse module in perl and I have my program finished.

I am using a 8.5 x 11 (US letter) template and the finished file comes out as 8.26 x 11.69 (A4 letter).

Is there a command that will change the page size or if I want to make a finished customized size?


You can use the following code:

use PDF::Reuse;                    
prFile('myFile.pdf');
prMbox(0, 0, 612, 792);
prText(100, 500, 'Hello World !');
prEnd();

prMbox takes units in points. You can use a Google Search to convert from "inches to points".


I don't use PDF::Reuse but the thing you want to grep the documentation for is "mediabox". Changing it will change the size of the paper.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜