Romain
Romain

Reputation: 11

8.1 Universal App C# : how open pdf file in specific page

I develop a windows universal app (8.1) in C# and i want to open a local pdf file at a specific page with using Adobe Pdf Reader (not rendering pdf in my application).

Someone has already do that ? After some hours of search it seems to be impossible :(

Upvotes: 1

Views: 765

Answers (2)

Kashif
Kashif

Reputation: 3034

try this

Option 1 to read in app. Use third party PDF reader controls. enter link description here

Option 2: to open pdf in pdf reader app.

  var StorageFile= get you pdf here...;

  await Launcher.LaunchFileAsync(StorageFile);

Upvotes: -1

CodeCaster
CodeCaster

Reputation: 151720

According to this PDF, found through Adobe Reader Command Line Reference, it's the command line

Acrobat.exe /A "page=123" "C:\example.pdf"

But that's for the Desktop executable. It may work for mobile as well.

Upvotes: 0

Related Questions