1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include "stdafx.h" #using <mscorlib.dll> #import "PDFmerge.tlb" no_namespace named_guids using namespace System; int _tmain() { IPDFsplitPtr NVSplit; ::CoInitialize(NULL); NVSplit.CreateInstance(__uuidof(PDFsplit)); NVSplit->SplitPDF("c:\\1.pdf", "c:\\out\\"); Console::WriteLine(S"Done."); return 0; } |