Algel.ImageToPdf 2.1.0

dotnet tool install --global Algel.ImageToPdf --version 2.1.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Algel.ImageToPdf --version 2.1.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Algel.ImageToPdf&version=2.1.0                
nuke :add-package Algel.ImageToPdf --version 2.1.0                

ImageToPdf

.Net global tool for convert images to PDF document

This tool uses an excellent library for generating pdf files called QuestPDF.

Installation

To install this tool, please execute the following command on your PC:

dotnet tool install Algel.ImageToPdf --global

To update the tool, please use:

dotnet tool update Algel.ImageToPdf --global

And to remove:

dotnet tool uninstall Algel.ImageToPdf --global

Usage

You car run:

algel.imageToPdf -h

to show help:

Description:
  Convert images to single PDF file

Usage:
  Algel.ImageToPdf [options]

Options:
  -f, --file <file> (REQUIRED)  Path to the file (required). Allow multiple files.
  -o, --output <output>         Path to save generated file [default: generated.pdf]
  -w, --watermark <watermark>   Watermark text (optional)
  --header <header>             Page header text (optional)
  --preview                     Show preview without saving [default: False]
  --version                     Show version information
  -?, -h, --help                Show help and usage information

For example, we have a catalog with three images: 1.png, 2.jpg, 3.png Executing the command:

algel.imageToPdf -f 1.png -f 2.jpg -f 3.png

will create a generated.pdf file with three pages that contain the listed images

It can also be simplified:

algel.imageToPdf -f 1.png 2.jpg 3.png

Optionally a watermark can be set:

algel.imageToPdf -f 1.png 2.jpg 3.png -w "my watermark"

It is also possible to preview the created document without saving it to a drive:

algel.imageToPdf -f 1.png 2.jpg 3.png -w "my watermark" --preview

But for this to work, you must first install the QuestPDF Previewer tool

dotnet tool install QuestPDF.Previewer --global
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.1.0 432 5/23/2023
2.0.1 313 5/21/2023
2.0.0 282 5/21/2023
1.0.1 389 10/8/2022
1.0.0 263 10/8/2022