User login

Who's online

There are currently 1 user and 130 guests online.

Online users

Advertisements


SourceForge.net Logo

PHP - URL to PDF - using cPrintURL

Submitted by whquilo on Tue, 2008-08-05 03:18.

I've run the next script:

cStart("/NoProcessingAtStartup", true); $options = $PDFCreator->cOptions;
$options->UseAutoSave = 1;
$options->UseAutoSaveDirectory = 1;
$options->AutoSaveFormat = 0;
$options->AutosaveDirectory = "C:\\";
$options->AutosaveFilename = "test";
$PDFCreator->cSaveOptions($options);
$defaultPrinter = $PDFCreator->cDefaultprinter;
$PDFCreator->cDefaultprinter = "PDFCreator";
$PDFCreator->cClearCache();
$PDFCreator->cPrinterStop = false;
$htmlx = "'http://www.google.com.ar/'";
$PDFCreator->cPrintURL($htmlx, 2000);
$PDFCreator->cWriteToLogfile("c:\\log_pdfcreator.log");
$PDFCreator->cDefaultprinter = $defaultPrinter; $PDFCreator->cClearCache();
$PDFCreator->cClose();
?>

And only get PDF file with this contents:

******************************************
Internet Explorer no puede mostrar la página web Causas más probables:
 No está conectado a Internet.
 Hay un problema con el sitio web.
 Es posible que la dirección no se haya escrito correctamente.
Puede intentar lo siguiente:
Diagnosticar problemas de conexión
Más información
Internet Explorer no puede mostrar la página web Page 1 of 1
********************************************

Don't understand my error y this script.

You can help me?

Thank you

© 2006 by pdfforge.org :: Contact us

Validate XHTML or CSS.