PDFCreator to combine multiple files

miganggarrodmiganggarrod Member Posts: 7
edited 2009-10-09 in Navision Attain
Hello everyone,

I am using PDFCreator to combine multiple files into one PDF file.
The code looks like this:

...
PDF.cOptions: = PDFOptions;
PDF.cClearCache ();
PDF.cDefaultPrinter: = 'PDFCreator';
PDF.cPrinterStop: = TRUE;
FIND ('-');
REPEAT
PDF.cPrintFile (FileName);
files: = files + 1;
END;
UNTIL NEXT = 0;
/ / Wait
REPEAT
SLEEP (1000);
UNTIL PDF.cCountOfPrintjobs = files;
PDF.cCombineAll;
PDF.cPrinterStop: = FALSE;


If Filename is: .txt .xls .doc the program works correctly.
If Filename is: .pdf and the client uses Acrobat Reader 8.0 the program works correctly.
But when the client uses as Acrobat Reader version 9.0 or Acrobat Professional 8.0 the program stops at the line PDF.cPrintFile (FileName);
waiting for the program is closed manually.

Has anyone had the same symptoms.
Sign In or Register to comment.