Installing and Using Aspose.Pdf for IntelliJ IDEA - Maven

Installing

How to Install Aspose.PDF Java for IntelliJ IDEA (Maven)

Steps below demonstrates how to install Aspose.PDF Java for IntelliJ IDEA (Maven) plugin.

The  plugin is listed on IntelliJ IDEA’s CE official plugin website - plugin repository as Aspose.PDF Java for IntelliJ IDEA Maven, so you don’t need to download it manually and install it from disk, but this extra option still exists in IntelliJ IDEA.

Aspose.PDF Java for IntelliJ IDEA (Maven) plugin can be easily installed (without manual downloading) from within IntelliJ IDEA. To do it:

  1. Select Settings from the File menu.
  2. Click Plugins, then browse the repositories in IntelliJ IDEA.

todo:image_alt_text

Aspose.PDF Maven Project Wizard

Aspose.PDF Maven Project – into IntelliJ IDEA, which will enable you to create Aspose.PDF Maven based project for using Aspose.PDF for Java API..

todo:image_alt_text

Aspose.PDF Example Wizard

An option for creating Example Source Codes for using Aspose.PDF for Java API in the project, will also appear after the installation under “New” menu (using Right Click -> New OR File menu->New)

Aspose.PDF Example

todo:image_alt_text

Using

Aspose.PDF Maven Project Wizard

To create Aspose.PDF Maven project for using Aspose.PDF for Java API within IntelliJ IDEA, you need to have internet connection.

Then follow the steps below:

  1. Select New Project.
  2. Select Aspose.PDF Maven Project.
  3. Click Next.

todo:image_alt_text

  1. Provide a GroupId, ArtifactId and Version for your maven project and click Next.

todo:image_alt_text

  1. You can select “Also Download Examples Source Code” checkbox to download the sample usage examples of the API (as shown in above snapshot)

  2. Provide a Project Name and Location just like when creating any Java application

todo:image_alt_text

  1. Click Finish.

This will retrieve the Aspose.PDF for Java API latest maven dependency reference from Aspose Cloud Maven Repository and configure it in pom.xml If you have selected “Also Download Examples Source Code” checkbox. Downloading of the examples will also begin from the Aspose.PDF for Java API GitHub Repository

todo:image_alt_text

todo:image_alt_text

Congratulations ! You have successfully created Aspose.PDF Maven project for using Aspose.PDF for Java API.

todo:image_alt_text

The created Aspose.PDF for Java API Maven project is ready to be modified as per your project’s requirements.

If you have opted to download Example Source Codes.

Aspose.PDF Examples Wizard

To import/ copy Example Source Codesinto the project using Aspose.PDF Examples Wizard, you need to first download the examples by opting  “Also Download Examples Source Code” on Aspose.PDF Maven Project Wizard.

Then follow the steps below on IntelliJ IDEA:

  1. Select File > New - As shown below:

todo:image_alt_text

-OR- Right Click (on project window) => New  - As shown below:

todo:image_alt_text

  1. Select Aspose.PDF Example Option from Menu - As shown below:

todo:image_alt_text

The wizard will refresh / check for the latest available Aspose.PDF for Java API Examples

todo:image_alt_text

  1. Aspose.PDF Examples wizard dialog will appear, where you can select any examples category to create / copy the examples into your project Select any examples category and click Create:

todo:image_alt_text

This will create / copy  the selected category examples into the project under com.aspose.pdf.examples package. Also any required resources for the execution of the examples will be copied to src/main/resources folder - As shown below:

todo:image_alt_text

Congratulations ! You have successfully done the following:

  1. You’ have created Aspose.PDF Maven Project using Aspose.PDF Maven Project Wizard,

  2. You have downloaded Aspose.PDF for Java API - Example Source Codes

  3. You have created / copied Examples Source Codes into your project by using Aspose.PDF Example Wizard.