Some test text!

menu
search

Get started integrating PDFTron UWP SDK

Welcome to PDFTron. This guide will help you integrate a free trial of the PDFTron UWP SDK into your Visual Studio projects for UWP applications. You can either integrate PDFTron packages automatically using NuGet Package Manager, or install them manually by downloading the SDK. Pick whichever option you prefer, but integrating with NuGet is the recommended approach. Your free trial includes unlimited trial usage and support from solution engineers.

Manual Integration

linkPrerequisites

  • Visual Studio.

    Make sure the Universal Windows Platform development workload is part of your installation.

  • PDFTron SDK for UWP
    Download

linkSetup

  1. Extract the folder from the .zip file.

    This article uses PDFNET_BASE as the path into the PDFNetUWPApps folder that you extracted.

    PDFNET_BASE = path/to/extraction/folder/PDFNetUWPApps/
  2. Navigate to PDFNET_BASE/Lib/ and execute the PDFNetUWPApps.vsix file by double clicking it. When the dialog prompts, click on Install. The Global Location installation is required.

    Wait for the installation to finish and close the dialog.

  3. Open a new instance of Visual Studio and create a new Project (File -> New -> Project...). In the new project dialog, select the language of your choice for UWP development. Call the application myapp-uwp.

    New Project

linkIntegrate PDFTron into your UWP Application

  1. Find your project in the Solution Explorer. Right Click on the project and in the menu click on Properties. In the Configuration manager, select the Build tab. Make sure that the Build target is not Any CPU.
  2. Find the References item in the solution explorer. Right click on it and select Add Reference.... In the left pane of the dialog, select Universal Windows. Then select Extensions and in the list that appears, check the box next to PDFNet SDK for UWP.

    Add reference manually

    This will allow you to use PDFTron related namespaces. If you cannot find this option, see FAQ

  3. Open MainPage.xaml. Replace the contents of the <Grid></Grid> tag with:

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
    
        <Border x:Name="PDFViewBorder" Grid.Row="0"/>
    
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
            <Button x:Name="OpenButton">Open</Button>
        </StackPanel>
    </Grid>

linkNext step

View a document

linkTroubleshooting

Unable to use Any CPU

Unable to see SDK in Reference Manager

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close