These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

insertPages and page size

EdGioja
Registered: Sep 26 2007
Posts: 25

I know I'm missing something simple, but I don't see it.
 
I have a document that is 8.5in x 11in. I have another document that is 8.5x11in. When I do the following:
 
trustedInsPages = app.trustedFunction( function (cFilename, docptr)
{
app.beginPriv();
docptr.insertPages({
nPage: -1,
cPath: cFilename});
app.endPriv();
})
 
I end up with the 1st page being 8.5inx11in, but the page from the inserted document is 24 x 30.56 in.
  
Any ideas what I am doing wrong?

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The inserted pages should be copied over to the document exactly as they exist in the source document. The sizes of other pages in the destination document are irrelevant. If Acrobat is changing the page size, then there is a bug.

Try specifiying a page range and see if this makes a difference. It shouldn't, but if it does then at least you have a work around.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script