PDA

View Full Version : QProcess + Adobe Reader+ go to page



solook
25th July 2013, 02:34
hi
in Adobe Reade we can open pdf files and go to page 100 with command prompt with this code :


<path to Adobe Reader> /A "page=100" "<Path To PDF file>"

but wen i use QProcess dont work..



QString adobeReade ="C://Program Files//Adobe//Reader 9.0//Reader//AcroRd32.exe";
QString fileName = "C://Users//yy//Desktop//About.pdf";
QStringList arguments;
arguments <<"//a page=10 "+fileName;
QProcess myProcess ;
myProcess.start(adobeReade,arguments,QIODevice::Re adOnly);

ChrisW67
25th July 2013, 03:15
How many forward slashes do you get passed to Acrobat Reader with this?


arguments <<"//a page=10 "+fileName;

You escape backslashes with backslashes. Forward slashes do not require escaping.