Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
open a pdf at a special page |
Post Reply |
Author | |
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
Posted: 19 Jan 07 at 3:28AM |
Hi!
From time to time this question appears again ... How to start a linked file ... That's easy: ShellExecute(hinstance,'open',PChar('c:\temp\test.pdf'), nil, nil,SW_SHOWNORMAL); You can use it in Delphi and (a bit modificated) in any other language. I want to open the pdf-file at a special page. It should be temporarely (so i can't use SetOpenActionDestination). I know that there are special parameters from adobe to do this? How should i modify my ShellExecute to use this additional parameter? Thanks a lot in advance! Ingo Edited by Ingo - 19 Jan 07 at 3:29AM |
|
ukobsa
Senior Member Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
Post Options
Thanks(0)
|
Ingo,
this works for me on commandline: "c:\Programme\Adobe\Acrobat 7.0\Reader\acrord32.exe" /a page=4 "d:\temp\RDF Primer.pdf" Have also a look on this document HTH, Ulrich |
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Thanks Ingo,
I recently was asked this question both two different people. Now I have an answer other than "I am sure there must be a way, but I don't know how."
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Uli!
Thanks a lot! Like Ken said: I was one who told there is a parameter but i don't know how and where ;-) ...and now it's so easy ... but hard to find. Best regards, Ingo |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hello!
I want to use ShellExecute having a universal call for the main readers ;-) With Uli's help i've made this calls (Delphi): In my test i wanted to open the document on page 4. s := GetProgramAssociation('pdf'); s := PathGetLongName(s); // example Foxit Reader s := '"' + s + '"'; c := '"' + 'c:\temp\test.pdf' + '"' + ' -n 4'; ShellExecute(hinstance,'open',PChar(s), PChar(c), nil,SW_SHOWNORMAL); // example Acrobat Reader s := '"' + s + '"'; c := '/a page=4 ' + '"' + 'c:\temp\test.pdf' + '"'; ShellExecute(hinstance,'open',PChar(s), PChar(c), nil,SW_SHOWNORMAL); You see each reader has its own parameter syntax for things like opening with pagenumbers. So if you want to open a pdf on a special page with all main readers you have to use "SetOpenActionDestination" with a copied version of the relevant pdf... Best regards, Ingo Edited by Ingo - 22 Jan 07 at 3:00PM |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store