Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple-page PDF Insertion

Status
Not open for further replies.

bcpelkey

Technical User
Sep 4, 2013
2
US
Hi,

I have been able to use the Adobe Acrobat Doc.InsertPages method successfully to insert single page PDF's into another PDF document, but I can't get that same method to accomodate a multiple-page PDF document insertion - in my case a 3 page PDF. In the VBA script below, the variable numbackPages = 3, but the IF evaluates to False, so the 3 page PDF named "backup" is not inserted into the target PDF named "cover". That method does work, however, when the variable in the place that numbackpages occupies is equal to 1.

If cover.InsertPages(numPages - 1, backup, 0, numbackPages, True) = False Then
MsgBox "Can't merge backup of line " & i & "!"
End If

Can you offer any help? I have not been able to find any source on the web that delas with this issue.

Thanks.

Brian
 
Hello
After reading your question.I'd like to offer some help.I know there is a pdf processing add-on.wihch can inser multipage pdf files.
I have used it to insert single pdf files.You can have a try.Here is the method:
public override BasePage CreateEmptyPage();
 
Thanks Abigail.

I apologize, I should have added to this Thread after I discovered that the apparent reason the multipage pdf would not add was because it has security added to it that prevents data extraction. If we can obtain the password, it should then be possible.

Thanks,

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top