Page 1 of 1

Offline vdr pdf generator problem

PostPosted: Wed Nov 26, 2008 9:47 pm
by Guest
When you try to create a pdf of your vehicle using the offline version of the VDR generator, it gives an error that "datafax.php" can't be found. When I looked at the files that are downloaded, datafax.php wasn't included. It included datafax.html, but not datafax.php.

Is there a way to package that php file with the download so people can use it offline?

PostPosted: Thu Nov 27, 2008 7:07 am
by Spack
The offline ZIP download doesn't include a way to create PDF files - the PDF handling is purely online. What browser did you load the offline generator into? It should never call the .php file as that only works online, there is no way that can be provided to run offline because it requires a php enabled webserver and some PDF plugins to run.

So long as your browser has javascript enabled it will load the correct .html file template and never try to call the .php file. I can only assume that there is a problem with your browser configuration. While the form references the datafax.php file, it doesn't actually load it - the Generate HTML button causes the javascript code referenced by the page to pull up and fill out either the datafax.html or ccdatafax.html files depending on if the Close Combat Vehicle option is ticked. The Generate PDF button was deliberately commented out in the offline version of the index file because it won't allow a PDF to be generated offline - if you edited the HTML file and uncommented this button then you have tampered with the file and that is not a bug, was never intended for that feature to be used offline.

As you didn't leave an email address or post from a registered user account I have no way of contacting you either, I can only hope that you see this reply and respond.