Adam,

 

Actually I have

 

//REQUIRED: Ghostscript binary

define('GS_BIN', "C:\Program Files\gs\gs8.60\bin\gswin32c.exe");

 

//OCR requires CONVERT_BIN (imagemagick convert binary) and TESSERACT_BIN (tessearct binary) to be enabled

define('OCR_ENABLED', true);

define('CONVERT_BIN', "C:\projroot\ImageMagick\convert.exe");

define('TESSERACT_BIN', "C:\projroot\FreeOCRnet23\tesseract\tesseract.exe");

but for some reason the strings are empty and moreover they are skipped by the debugger. I do not know why it is happening because without that nothing gets done.

I tried to put them as environment variable and also as relative to the website root but none worked

 

Norry

 





> Date: Wed, 12 Mar 2008 09:17:10 +1100
> From: azammit@deakin.edu.au
> To: bz120@hotmail.com
> CC: quexf-discuss@lists.sourceforge.net
> Subject: Re: queXML - Banding
>
> Hi Norry,
>
> The Ghostscript problem seems to be occurring because the entire path to
> the ghostscript executable is not included in the config file. You
> currently have this:
>
> //REQUIRED: Ghostscript binary
> define('GS_BIN', "C:\Program Files\gs\gs8.60\bin");
>
> But it should look something like this:
>
> //REQUIRED: Ghostscript binary
> define('GS_BIN', "C:\Program Files\gs\gs8.60\bin\gswin32c.exe");
>
> (If the gs exe file is named gswin32c.exe)
>
> See if that solves the problem by modifying the config file and running
> testconfig again.
>
> If testconfig succeeds with finding the GS binary and version, you will
> then have to start from the beginning of the documentation for importing
> a sample file - as without ghostscript to begin with, a questionnaire
> could not have been imported successfully.
>
> Thank you for your patience, this is the first time I have heard of
> queXF running on Windows so it is good to see it getting there!
>
> Regards,
> Adam Zammit
>
>
> A. D. wrote:
> >
> > Hi Adam,
> >
> > I have resolved the database problem, it was just a misspelling in the
> > name of the database (quefx instead of quexf). Now the output from
> > testconfig is
> >
> > Database connection succeeded Passed Configuration Test,
> >
> > notice that I don't get any information that it had found
> > Ghostscipt, TESSERAT_BIN or CONVERT_BIN even though I have put it as
> > an environment variable and it is a defined variable with the path
> > data but for some reason the string empty when I echo it.
> >
> > When I run
> >
> > SELECT qid,description FROM questionnaires
> >
> > I get an empty row.
> >
> >
> >
> >
> > Something is not right. I am including testconfig.php and config.inc.php
> >
> > Thanks
> >
> > Norry
> >
> >
> > ------------------------------------------------------------------------
> >
> > > Date: Mon, 10 Mar 2008 09:20:25 +1100
> > > From: azammit@deakin.edu.au
> > > To: bz120@hotmail.com
> > > Subject: Re: queXML - Banding
> > >
> > > Hi Norry,
> > >
> > > Can you tell me what version of PHP, mySQL and AdoDB you are using?
> > >
> > > To avoid the AdoDB session error try commenting out the following in
> > > config.inc.php to look like this:
> > >
> > > //if
> > >
> > (!(include_once(dirname(__FILE__).'/../adodb/session/adodb-session2.php')))
> > > //{
> > > // print "<p>ERROR: Please modify config.inc.php to point to your
> > > ADODb installation</p>";
> > > //}
> > >
> > > and
> > >
> > > //ADOdb_Session::config(DB_TYPE, DB_HOST, DB_USER, DB_PASS,
> > > DB_NAME,$options=false);
> > >
> > > This will let PHP handle the sessions instead of AdoDB.
> > >
> > > The error you are getting in band.php suggests that there is either a
> > > problem reading the database, or the PDF file did not get imported
> > properly.
> > >
> > > Using mysql administrator, try running this SQL statement and see what
> > > result you get:
> > >
> > > SELECT qid,description
> > > FROM questionnaires
> > >
> > > It should return at least one row.
> > >
> > > Also, can you send me the output of when you run /admin/testconfig.php
> > >
> > > Regards,
> > > Adam Zammit
> > >
> > >
> > >
> > > AD wrote:
> > > > Hi Adam,
> > > >
> > > > I am using the sample files provided within the example. I am ok
> > up to import a new form from a PDF file but I cannot do Banding, I
> > always get
> > > >
> > > > Session: connection failed
> > > >
> > > > Warning: Invalid argument supplied for foreach() in C:\Program
> > Files\Apache Software Foundation\Apache2.2\htdocs\QueXF\admin\band.php
> > on line 347 which is
> > > >
> > > > foreach($qs as $q)
> > > > {
> > > > print "<a
> > href=\"band.php?zoom=$zoom&qid={$q['qid']}#boxGroup\">Band:
> > {$q['description']}</a> <a
> > href=\"band.php?reorder=reorder&zoom=$zoom&qid={$q['qid']}\">Reorder
> > variables: {$q['description']}</a>";
> > > > print "<br/>";
> > > > }
> > > > At which time $qs is NULL
> > > >
> > > > It goes next to adodb-session2.php and get session connection failed
> > > >
> > > > I have QueXF and adodb folder at the same level under htdocs and I
> > am including config.inc.php and adodb-session2.php along
> > > >
> > > > I am also using PhpEd trying to debug through the code and it does
> > these steps (from PhpED log file
> > > >
> > > > Action Debug session finished 12:44:42 PM
> > > > Action navigating: http://localhost:8080/QueXF/config.inc.php
> > 12:44:45 PM
> > > > Action Debug session (ID=395155310833700002) started 12:44:47 PM
> > > >
> > > > I have created the queXF database and I can connect through mySQL
> > administrator.
> > > >
> > > > Thank
> > > >
> > > > Norry
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Adam Zammit [mailto:azammit@deakin.edu.au]
> > > > Sent: Thursday, February 28, 2008 4:30 PM
> > > > To: AD
> > > > Subject: Re: queXML
> > > >
> > > > Hello again Norry,
> > > >
> > > > The latest development version of limesurvey has the ability to
> > output questionnaire structure to a queXML file.
> > > >
> > > > If you are able to download that version and run it: you can
> > design your questionnaire in limesurvey, then output it to a queXML
> > file which you can then convert to a PDF form.
> > > >
> > > > Regards,
> > > > Adam Zammit
> > > >
> > > > AD wrote:
> > > >
> > > >> Hi Adam,
> > > >>
> > > >>
> > > >>
> > > >> I have installed queXML to create forms to use with queXF or
> > > >> limesurveyor but because there is no tutorial on queXML, I am
> > kind of
> > > >> stuck. What I have is one XML file test_questionnaire.xml and 3
> > ddi_to
> > > >> and 9 to_xxxxx, xslt files and etc… and the barcode folder. How
> > would
> > > >> I use the xslt file to transform the test_questionnaire.xml to FO or
> > > >> other format. A tutorial should explain how to do that in XMLSpy or
> > > >> Dreamweaver for example.
> > > >>
> > > >> Lastly what is the output from queXML that get consumed by queXF.
> > > >>
> > > >> Basically I am trying to use this application to create forms and
> > > >> test/verify then scanned filled forms.
> > > >>
> > > >>
> > > >>
> > > >> Your comments and directions are very well appreciated. Thanks
> > > >>
> > > >>
> > > >>
> > > >> Norry
> > > >>
> > > >>
> > > >
> > > > --
> > > > Adam Zammit, DCARF Technical Officer
> > > >
> > > > Deakin University 221 Burwood Hwy, Burwood Australia.
> > > > Phone: 03 9251 7290 International: +61 3 9251 7290
> > > > Fax: 03 9244 6370 International: +61 3 9244 6370
> > > > Email: adam.zammit@deakin.edu.au
> > > > Website: http://www.deakin.edu.au/buslaw/dcarf/
> > > > Deakin University CRICOS Provider Code 00113B (Vic)
> > > >
> > > > Important Notice: The contents of this email are intended solely
> > for the named addressee and are confidential; any unauthorised use,
> > reproduction or storage of the contents is expressly prohibited. If
> > you have received this email in error, please delete it and any
> > attachments immediately and advise the sender by return email or
> > telephone.
> > > >
> > > > Deakin University does not warrant that this email and any
> > attachments are error or virus free.
> > > >
> > > >
> > > >
> > >
> > > --
> > > Adam Zammit, DCARF Technical Officer
> > >
> > > Deakin University 221 Burwood Hwy, Burwood Australia.
> > > Phone: 03 9251 7290 International: +61 3 9251 7290
> > > Fax: 03 9244 6370 International: +61 3 9244 6370
> > > Email: adam.zammit@deakin.edu.au
> > > Website: http://www.deakin.edu.au/buslaw/dcarf/
> > > Deakin University CRICOS Provider Code 00113B (Vic)
> > >
> > > Important Notice: The contents of this email are intended solely for
> > the named addressee and are confidential; any unauthorised use,
> > reproduction or storage of the contents is expressly prohibited. If
> > you have received this email in error, please delete it and any
> > attachments immediately and advise the sender by return email or
> > telephone.
> > >
> > > Deakin University does not warrant that this email and any
> > attachments are error or virus free.
> > >
> > >
> >
> >
> > ------------------------------------------------------------------------
> > Snap and Share. From your phone to your space. Post your pics here.
> > <http://g.msn.ca/ca55/210>
>
> --
> Adam Zammit, DCARF Technical Officer
>
> Deakin University 221 Burwood Hwy, Burwood Australia.
> Phone: 03 9251 7290 International: +61 3 9251 7290
> Fax: 03 9244 6370 International: +61 3 9244 6370
> Email: adam.zammit@deakin.edu.au
> Website: http://www.deakin.edu.au/buslaw/dcarf/
> Deakin University CRICOS Provider Code 00113B (Vic)
>
> Important Notice: The contents of this email are intended solely for the named addressee and are confidential; any unauthorised use, reproduction or storage of the contents is expressly prohibited. If you have received this email in error, please delete it and any attachments immediately and advise the sender by return email or telephone.
>
> Deakin University does not warrant that this email and any attachments are error or virus free.
>
>


Snap and Share.  From your phone to your space.  Post your pics here.