Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
Getting filename and path from OpenButton / PdfToolBarMain
Rank: Newbie
Groups: Registered
Joined: 10/24/2016(UTC) Posts: 4  Location: Stockholm Thanks: 1 times
|
Hi, I have added an XAML instance of the PdfToolBarMain and bound it to my PdfViewer-control. This lets me open and view a PDF file without writing any code for the opendialog etc. However, I need the directory/filename of the PDF (from the open file dialog). How do I get to this information? I have not succeded to invoking the OnOpenClick-method (which I hoped could give me some clues). Thanks. Edited by user Friday, November 25, 2016 6:22:10 AM(UTC)
| Reason: Clarified/corrected my question.
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 10/24/2016(UTC) Posts: 4  Location: Stockholm Thanks: 1 times
|
Update: After posting my question I have decided to just use the .NET common open file dialog and then pass the filename to the PdfViewer.LoadDocument-method.
|
|
|
|
|
|
Rank: Guest
Groups: Guests
Joined: 1/5/2016(UTC) Posts: 162
Was thanked: 5 time(s) in 5 post(s)
|
That's the right decision. Due to the fact that the document can be loaded not only from the file, but also from the stream, or byte array, there is no a standard way to determine the path to the document.
|
 1 user thanked Guest for this useful post.
|
|
|
|
Patagames Software Support Forum
»
Pdfium.Net SDK
»
Common Questions
»
Getting filename and path from OpenButton / PdfToolBarMain
Forum Jump
You can post new topics in this forum.
You can reply to topics in this forum.
You can delete your posts in this forum.
You can edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close