Results 1 to 2 of 2

Thread: QProcess + Adobe Reader+ go to page

  1. #1
    Join Date
    Nov 2010
    Posts
    30
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QProcess + Adobe Reader+ go to page

    hi
    in Adobe Reade we can open pdf files and go to page 100 with command prompt with this code :

    Qt Code:
    1. <path to Adobe Reader> /A "page=100" "<Path To PDF file>"
    To copy to clipboard, switch view to plain text mode 

    but wen i use QProcess dont work..

    Qt Code:
    1. QString adobeReade ="C://Program Files//Adobe//Reader 9.0//Reader//AcroRd32.exe";
    2. QString fileName = "C://Users//yy//Desktop//About.pdf";
    3. QStringList arguments;
    4. arguments <<"//a page=10 "+fileName;
    5. QProcess myProcess ;
    6. myProcess.start(adobeReade,arguments,QIODevice::ReadOnly);
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QProcess + Adobe Reader+ go to page

    How many forward slashes do you get passed to Acrobat Reader with this?
    Qt Code:
    1. arguments <<"//a page=10 "+fileName;
    To copy to clipboard, switch view to plain text mode 
    You escape backslashes with backslashes. Forward slashes do not require escaping.

Similar Threads

  1. Qt GUI interface like Adobe Acrobat Reader
    By indianinside in forum Qt Programming
    Replies: 14
    Last Post: 28th June 2012, 18:32
  2. Exported PDF Drawing Error in Adobe Reader
    By BettaUseYoNikes in forum Qwt
    Replies: 0
    Last Post: 15th November 2011, 16:58
  3. link to a pdf for opening it wit adobe reader
    By szisziszilvi in forum Newbie
    Replies: 1
    Last Post: 29th August 2011, 12:31
  4. QT + VS2008 + Adobe API
    By angelo in forum Qt Programming
    Replies: 1
    Last Post: 27th April 2011, 14:22
  5. Runing inline evice/adobe reader
    By deimus in forum Qt Programming
    Replies: 2
    Last Post: 30th June 2010, 07:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.