PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Document viewer and bookmarks(document internal hyperlinks) https://forum.pdfsharp.net/viewtopic.php?f=2&t=3607 |
Page 1 of 1 |
Author: | MariusIonut [ Tue Jun 20, 2017 1:18 pm ] | ||
Post subject: | Document viewer and bookmarks(document internal hyperlinks) | ||
Hello everyone, I'm using DocumentPreview to quickly preview the document. And what I want is when I press a button, the document viewer position should move to a specific bookmark. I tried to put the document preview in a frame and use URI to move it but nothing happends. XAML Code: <Frame x:Name="DocFrame"> <Frame.Content> <Grid x:Name="gridTest"> <md:DocumentPreview x:Name="Preview"/> </Grid> </Frame.Content> </Frame> C# Code: viewer.DocFrame.Navigate(new Uri("#3__sda", UriKind.Relative)); I also added the DDL. Is there any way to navigate in preview window by using bookmarks? (or to navigate in preview window to go to a specific paragraph?) If its not possible in migradoc document preview, is there anything else that I can use to preview and navigate in a WPF application?
|
Author: | Thomas Hoevel [ Wed Jun 21, 2017 8:16 am ] |
Post subject: | Re: Document viewer and bookmarks(document internal hyperlin |
Hi! MariusIonut wrote: Is there any way to navigate in preview window by using bookmarks? I don't know. But since MigraDoc is open source I think there are many ways, but I guess you have to modify MigraDoc Preview to get that.You call "Navigate" for "DocFrame", not for "Preview". I don't know if "Preview" is prepared to navigate to DDL bookmarks (but I'm afraid it is not). |
Author: | MariusIonut [ Mon Jun 26, 2017 5:19 pm ] |
Post subject: | Re: Document viewer and bookmarks(document internal hyperlin |
Thank you Thomas, it seems that it is possible to navigate within the frame only if the document is a XPS one, that will allow to navigate via package links. Thomas Hoevel wrote: Hi!
MariusIonut wrote: Is there any way to navigate in preview window by using bookmarks? I don't know. But since MigraDoc is open source I think there are many ways, but I guess you have to modify MigraDoc Preview to get that.You call "Navigate" for "DocFrame", not for "Preview". I don't know if "Preview" is prepared to navigate to DDL bookmarks (but I'm afraid it is not). |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |