converter

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertImageToPDF

func ConvertImageToPDF(imgPath string) (string, error)

ConvertImageToPDF takes an input image path (must end in .jpg, .jpeg, or .png), reads PAGE_RESOLUTION (pixels) and PAGE_DPI from the environment (defaulting to Remarkable 2’s specs), and invokes ImageMagick’s convert to produce a PDF whose page size is exactly the target pixel resolution, with the image scaled down if larger, or left at its original size if smaller. It writes the output PDF alongside the input (basename + ".pdf") and returns its full path.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL