Hello, I need some help on the usage of a script i wrote, but cannot finger out the second parameter. Its needed for the batch conversion of several hundred PDF's to import the data in a Table.
This is the script adopted from delinierize.qs <---code // Console: Pdftoxml // Description: pdftoxml input file // Parameters: [input file] [output file] /* * PDFedit - free program for PDF document manipulation. * Copyright (C) 2006-2009 PDFedit team: Michal Hocko, * Jozef Misutka, * Martin Petricek * Former team members: Miroslav Jahoda * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (in doc/LICENSE.GPL); if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA * * Project is hosted on http://sourceforge.net/projects/pdfedit */ /** Print help for pdftoxml */ function pdftoxml_help() { print(tr("Usage:")); print("pdftoxml ["+tr("input file")+"] ["+tr("selected pages")+"] ["+tr("output file")+"]"); print(" "+tr("Input file must exist")); print(" "+tr("Output file must not exist")); exit(1); } function pdftoxml_fail(err) { print(tr("PDFtoXML failed!")); print(err); exit(2); } p=parameters(); if (p.length!=3) { pdftoxml_help("PDFtoXML "+tr("is expecting three parameters")); } inFile=p[0]; selPages=p[1] outFile=p[2]; if (!exists(inFile)) pdftoxml_fail(tr("Input file '%1' does not exist").arg(inFile)); if (exists(outFile)) pdftoxml_fail(tr("Output file '%1' already exist").arg(outFile)); if (inFile==outFile) pdftoxml_fail(tr("Input and output files must be different")); if (pdftoxml(inFile,selPages,outFile)) { print(tr("pdftoxmld")+" :"+inFile+" -> "+outFile); } else { pdftoxml_fail(error()); } code--> As you can see, I alredy found out, than there must be a third parameter (selPages) but I don't know what exactly this should be. Thanks in advance Klaus ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Pdfedit-support mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pdfedit-support
