Aspose.PUB.Convert
24.7.0
See the version list below for details.
dotnet tool install --global Aspose.PUB.Convert --version 24.7.0
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Aspose.PUB.Convert --version 24.7.0
#tool dotnet:?package=Aspose.PUB.Convert&version=24.7.0
nuke :add-package Aspose.PUB.Convert --version 24.7.0
Aspose.PUB for .NET Micro Applications
Aspose.PUB for .NET Micro Applications provides high-level APIs for converting Microsoft Publisher (PUB) documents into various formats, facilitating easy integration into .NET applications.
Explore more about Aspose.PUB .NET API.
Aspose.PUB Convert Micro Application
This application enables efficient conversion of PUB documents into various formats.
Key Features
Supported Input Formats: PUB.
Supported Output Formats:
- PDF (Portable Document Format);
- JPEG/JPG (Joint Photographic Experts Group);
- PNG (Portable Network Graphics);
- BMP (Bitmap Image File);
- TIFF/TIF (Tagged Image File Format);
- GIF (Graphics Interchange Format);
- DOC (Microsoft Word Document);
- DOCX (Microsoft Word Open XML Document);
- XLS (Microsoft Excel Spreadsheet);
- XLSX (Microsoft Excel Open XML Spreadsheet);
- CSV (Comma-Separated Values);
- PPTX (PowerPoint Open XML Presentation);
- XPS (XML Paper Specification);
- EPUB (Electronic Publication);
- TEX (TeX/LaTeX);
- MHTML (MIME Encapsulation of Aggregate HTML);
- HTML (HyperText Markup Language);
- SVG (Scalable Vector Graphics).
Can be used via the command line or integrated into your C# projects as a .NET 6.0/7.0 compatible API.
Licensing
While the Aspose.PUB Convert application itself is free to use, converting documents requires a valid Aspose.PUB license. You can purchase a license or use Aspose.PUB in trial mode for evaluation purposes.
System Requirements
- .NET 6.0/7.0 on Windows, Linux, MacOS;
- Aspose.PUB Convert application installed.
Installation
The Aspose.PUB Convert application can be installed either globally or locally, depending on your project's needs. It is recommended to use the local installation for project-specific use to avoid version conflicts.
Global Installation:
To install Aspose.PUB Convert globally on your machine, use the following command:
dotnet tool install --global Aspose.PUB.Convert
Specify the --version option if you need a specific version of the tool.
Local Installation:
For local installation within a specific project, first, navigate to your project's root directory. Then, execute the following commands:
- Create a tool-manifest if not already present:
dotnet new tool-manifest
- Install Aspose.PUB Convert locally:
dotnet tool install Aspose.PUB.Convert --local
Again, you can specify the --version
option for a specific version.
Updating the Tool:
To update the Aspose.PUB Convert tool to the latest version, use the dotnet tool update
command with either --global
or --local
, matching your installation type.
Uninstalling the Tool:
If you need to uninstall the tool, use the dotnet tool uninstall
command with either --global
or --local
, depending on how the tool was installed.
Usage
Use from command line:
-i, --input [Required]
: Path to the input PUB document.- Example:
--input input.pub
- Example:
-o, --output [Required]
: Path for the converted document.- Example:
--output output.pdf
- Example:
-f, --format [Optional]
: Output document format.- Supported formats: PDF, JPG, PNG, BMP, TIFF, GIF, DOC, DOCX, XLS, XLSX, CSV, PPTX, XPS, EPUB, TEX, MHTML, HTML, SVG.
- Example:
--format pdf
-l, --license [Optional]
: Path to the Aspose.PUB .NET license file.- Example:
--license path_to_license.lic
- Example:
-v, --verbose [Optional]
: Enable verbose output.- Example:
--verbose
- Example:
Aspose.PUB.Convert --input input.pub --output output.pdf --format pdf
#### Integration into C# Projects
The Aspose.PUB Convert application can also be integrated directly into your .NET projects using the command line, enabling programmatic access to PUB conversion capabilities within your C# code.
**Adding the Converter to Your Project:**
To add the Aspose.PUB Convert tool to your Visual Studio project, navigate to your project's root directory and execute the following command:
```bash
dotnet Aspose.PUB.Convert add
This command adds the Aspose.PUB Convert functionality directly into your project, allowing you to use the library's methods and properties through your code. This is particularly useful for developers looking to implement customized PUB conversion processes directly within their applications.
Use from code:
Once added, you can easily call the PUB conversion methods in your project. Here is a simple example of how to use the Aspose.PUB Convert in your code:
using Aspose.Pub.MicroApps.Convert;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
// Initialize convert options
var options = new ConvertOptions
{
// Required: Specify the input document path
InputPath = "input.pub",
// Required: Specify the output document path
OutputPath = "output.pdf",
// Optional: Specify the output format
ToFormat = "pdf"
};
// Execute the conversion task
await ConvertTasks.Create(options).Execute();
}
}
Documentation and Support
Comprehensive documentation is available on the Aspose.PUB Documentation page.
For questions, support, or feedback, please visit Aspose Forums.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.