I want create a batch in VB that delete last page in a PDF file and insert in it a page from another PDF file. I've seen I could use Replace or Delete/Insert but I don't know how to do it.
I tried with :
Dim oAcroPdDOC As New AcroPDDoc
bRET1 = oAcroPdDOC.Open(App.Path & "\XXX.pdf")
bRET2 = oAcroPdDOC.DeletePages(oAcroPdDOC.GetNumPages, oAcroPdDOC.GetNumPages)
bRET3 = oAcroPdDOC.Close
but bRET2 return a false value...
can anyone help me?
I tried with :
Dim oAcroPdDOC As New AcroPDDoc
bRET1 = oAcroPdDOC.Open(App.Path & "\XXX.pdf")
bRET2 = oAcroPdDOC.DeletePages(oAcroPdDOC.GetNumPages, oAcroPdDOC.GetNumPages)
bRET3 = oAcroPdDOC.Close
but bRET2 return a false value...
can anyone help me?