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
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
http://www.mbsonline.org/forum/topic.asp?TOPIC_ID=7799
http://www.BiloBeauty.com
http://www.autismspeaks.org