开发者

PDF:reuse setting page size

开发者 https://www.devze.com 2023-02-10 10:16 出处:网络
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).

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

精彩评论

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