Ok I understood how to do.
When I just make the same example as you, it works fine, and I get the red page with margin on top, bottom and right.
But when I take my file it does not work, I have no margin ...
How can I resize a PDF and keep a right blank margin
Re: How can I resize a PDF and keep a right blank margin
The problem is on the temporary file. Even I mention exactly as you the dimensions 6300x8420 for the file, after creating this one, it has only 5950x8420 (?!)
Re: How can I resize a PDF and keep a right blank margin
Of course, I only created a simple demo PDF file for myself, because you didn't provide one to play with....michellux wrote:Why should I do Phase 1 "Creating demo.pdf" if in phase 2 I use my pdf file ?

Re: How can I resize a PDF and keep a right blank margin
Can you post (a link to) a sample PDF file of yours?michellux wrote:The problem is on the temporary file. Even I mention exactly as you the dimensions 6300x8420 for the file, after creating this one, it has only 5950x8420 (?!)
Re: How can I resize a PDF and keep a right blank margin
The 6300x8420 (as I explained in my post) are the pixels. Ghostscript by default works with a resolution 720 PPI when creating PDF files. That means that the output PDF dimensions are 630x842 points, wheremichellux wrote:The problem is on the temporary file. Even I mention exactly as you the dimensions 6300x8420 for the file, after creating this one, it has only 5950x8420 (?!)
Code: Select all
1 inch == 72 points