Je voudrais savoir si quelqu'un d'entre vous a t'il deja testé l'objet com avec pdfcreator tel que
Code : Tout sélectionner
$PDFCreator = new COM("PDFCreator.clsPDFCreator");
//$PDFCreator->cVisible(FALSE);
$PDFCreator->cStart("/NoProcessingAtStartup");
$PDFCreatorOptions = new COM("PDFCreator.clsPDFCreator");
$PDFCreatorOptions = $PDFCreator->{cOptions};
$PDFCreatorOptions->{UseAutosave} = 1;
$PDFCreatorOptions->{UseAutosaveDirectory} = 1;
$PDFCreatorOptions->{AutosaveFormat} = 0;
$DefaultPrinter = $PDFCreator->cDefaultPrinter();
$PDFCreator->cDefaultPrinter = "PDFCreator";
$PDFCreator->cClearCache();
$PDFCreatorOptions->{AutosaveFilename} = $s;
//And to save all options :
$PDFCreator->{cOptions} = $PDFCreatorOptions;
$PDFCreator->cClose();
Code : Tout sélectionner
PHP Notice: Use of undefined constant cOptions - assumed 'cOptions'
PHP Notice: Use of undefined constant UseAutosave - assumed
D'autre part est c eque jepeux lors de l'instanciation utiliser OR DIE("impossible de lancer pdfcreator");
berf beaucoup de questions,
merci a tous