# Upgrade to Latest Version

Learn how to upgrade a DsPdf license from v1 to v2 through some easy steps.

## Content

To upgrade a DsPdf license from a previous major version to the current major version, you will need to obtain a new license key from the sales team. Once you have received a new license key through email, follow these steps:

1. Open an existing application created using DsPdf license.
2. Right-click the project in **Solution Explorer** and choose **Manage NuGet Packages**.
3. In the **Package source** on top right, select **nuget.org**.
4. Click **Updates** tab on the top. A list of all the installed NuGet packages is displayed.
5. On the left panel, select the **Select all packages** checkbox and click **Update**.
6. In the **Preview Changes** dialog, click **OK** and choose **I Accept** in the next screen.
7. Switch to the code view and replace the old key with new key received through email.
    1. To upgrade the license of a particular instance:

        ```auto
        var doc = new GcPdfDocument("new key")
        ```
    2. To upgrade the license of all the instances:

        ```auto
        GcPdfDocument.SetLicenseKey("new key");
        ```

> !type=note
> **Note:** With v7.0, GrapeCity.Documents.Pdf (GcPdf) package is renamed to DS.Documents.Pdf (DsPdf). The namespaces and classes within DS.Documents.Pdf remain the same, which provide the same functionality and are backwards compatible with GrapeCity.Documents.Pdf, ensuring minimal impact on your existing projects.
> 
> To upgrade GcPdf package to DsPdf package in your existing projects, follow one of the below options:
>
> * Update package using Migration tool:
>     1. The migration tool is present in the package downloaded from the website. Follow the instructions displayed in the UI when using the tool for a seamless migration from GcPdf to DsPdf.
> * Update package manually from NuGet package manager:
>     1. In **Solution Explorer**, right-click either **Dependencies** or a project and select **Manage NuGet Packages**.
>     2. In **Installed** tab, click on **GrapeCity.Documents.Pdf** package and click **Uninstall** to remove it and its dependencies from the project.
>     3. In **Browse** tab, type "ds.documents" or "DS.Documents" in the search text box at the top and find the package "DS.Documents.Pdf".
>     4. Click Install to add the **DS.Documents.Pdf** package and its dependencies to the project.