我在 UWP 中使用 PSPDFKit 阅读了几个 pdf。在看pdf的时候遇到了一个问题,就是:标注特征出现了,有的没有出现。所以在阅读 pdf 时注释功能并不总是出现。
如下图所示:
XAML:
<ui:PdfView
x:Name="pdfViewer"
Grid.Row="0"
License="{StaticResource PSPDFKitLicense}"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ShowAnnotations="True"/>
代码:
var document = DocumentSource.CreateFromStorageFile(file);
await pdfViewer.Controller.ShowDocumentAsync(document);
var toolbarItems = pdfViewer.GetToolbarItems();
toolbarItems.RemoveAt(toolbarItems.IndexOf(new PanToolbarItem()));
toolbarItems.RemoveAt(toolbarItems.IndexOf(new PrintToolbarItem()));
toolbarItems.RemoveAt(toolbarItems.IndexOf(new DocumentEditorToolbarItem()));
await pdfViewer.SetToolbarItemsAsync(toolbarItems);
await pdfViewer.Controller.SetZoomModeAsync(ZoomMode.FitToViewPort);
如何让阅读pdf时始终出现注释功能?
这里是我使用的一些 pdf,如图所示:https://1drv.ms/u/s!Av6G8Zq_Px8WhGfhm59Fxd7LWNWa?e=6yNOB9
我是 PSPDFKit 团队的支持工程师之一。您介意通过 support.pspdfkit.com/hc/en-us/requests/new 联系我们的客户支持吗?通过这种方式,我们将能够提供更高效和个性化的支持体验。谢谢!