How to override/adjust specific margin for a pdf file (A4 paper)

2008-02-16 10:19:13 by opencv1

Hi all,

I have a specific problem concerning on how to adjust/set margins for a PDF file - my paper size is A4 (i.e. how to specifically set the left, right, top, and bottom margin).

For my case, I have an e-book with 899 pages inside and they seem to be of scanned version (in other words, compilation of images).

But the contents of each page are so close to the left margin, that I am unable to bind them for the hard copy. What I would like to do is to be able to "SHIFT" or "MOVE" the whole page to right but keeping the same scaling. (In other words adding more margin/space on the left).

I have googled for solutions for the last 2 days, but obtain no answers to my specific problem. I found answers on how to scale pdf file, but by scaling the documents to a smaller size, I obtain more spaces on the left margin. But at the same time, the contents shrink down to undesired reading context, which I want to avoid. So what I would like is to keep the content of the same size, and move the content slightly to the right.

Intuitively, a couple of possible ways that I can think of are:
1. manipulating the "PDFCREAT.PPD". My aim is to override the standard A4 margins, which I believe the default margin is 0.8mm on the left, 0.5mm on the right. But I am not an expert on the syntax inside the file and couldn't find the setting for that, any help would be greatly appreciated.
- What I have tried is to change the line
*ImageableArea A4: "0 0 595 842" to
*ImageableArea A4: "25 0 570 842"
But this would only scale down the page. Changing it to something else, will return me with an error messages.

2. My second option is to write a program that does the followings:
- Read the PDF file
- Extract all the pages on the PDF file (possibly image)
- For each image
- Perform pixel-shifting to right accordingly
- Create a new one and write each content into the new PDF file
- Save the PDF file

May the experience user of PDFCreator be able to assist me with some sources on how to proceed with my problem. I would really appreciate for any helps.

If anyone/the PDFCreator developer has the solution to my problem, either first or second options, or any other possible ways, it would be great to share it with me.

Thank you.
Wilson