Merging pdf documents using Amyuni

fweeeefweeee Member Posts: 14
edited 2006-02-08 in Navision Attain
Hello,

I'm trying to merge two pdf documents (both saved on a hdd) from within Navision, using the API provided by Amyuni. For the life of me I cant get the Syntax right.

I have tried the following (where Amyuni is a automation variable of type 'Amyuni PDFCreactiveX Component'.IPDFCreactiveX):
create(Amyuni);
Amyuni.Open('C:\Docs\temp\doc1.pdf','');
Amyuni.Append('C:\Docs\temp\doc2.pdf','');
Amyuni.Save('C:\Docs\temp\merged.pdf',????);

But for the life of me I cant work out what goes where the ???? is, and it wont compile without something there.

I have also tried (where PDFDoc is an automation variable of type 'CDIntf'.Document):
CREATE(PDFDoc);
PDFDoc.Open('C:\Docs\temp\doc1.pdf');
PDFDoc.Append('C:\Docs\temp\doc3.pdf');
PDFDoc.Save('C:\Docs\temp\testing.pdf');

Which creates a new document, but unfortunatly this new document is blank.

Can anyone help me out here?

Comments

Sign In or Register to comment.